chore: Se asignan atributos pendientes en las vistas
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Camilo Gonzalez 2023-08-07 15:46:18 -05:00
parent c1df0de713
commit a714f4740d
6 changed files with 12 additions and 6 deletions

View File

@ -4,7 +4,7 @@ this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.action.act_window" id="act_pending_call_tree">
<field name="name">Pending pending_call</field>
<field name="name">Pending calls</field>
<field name="res_model">sale.pending_call</field>
</record>

View File

@ -7,6 +7,7 @@ from trytond.pyson import Eval, If
class Prospect(ModelSQL, ModelView):
'Prospecto'
__name__ = 'sale.prospect'
_rec_name = 'name'
name = fields.Char('Name')

View File

@ -6,7 +6,6 @@ from .selections.interest import Interest
class ProspectTrace(ModelSQL, ModelView):
'Seguimiento de un prospecto'
__name__ = 'sale.prospect_trace'
prospect = fields.Many2One('sale.prospect', 'Prospect')
@ -23,6 +22,10 @@ class ProspectTrace(ModelSQL, ModelView):
current_interest = fields.Function(
_interest_field_type, '_get_current_interest')
def get_rec_name(self, name):
if self.prospect:
return '[' + self.id + '] ' + self.prospect.name
@fields.depends('prospect')
def on_change_prospect(self):
if self.prospect:

View File

@ -71,6 +71,8 @@ Verificar estado final de creación de prospecto::
------------------------------------
Asignación de prospectos a operarios
------------------------------------
**Como administrador, quiero poder asignar diferentes seguimientos de prospectos a diferentes operarios, para dividir el trabajo de una manera efectiva y que cada operario tenga sus propias llamadas y que no se mezcle con las de los demás**
TODO

View File

@ -2,10 +2,10 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tree>
<field name="date"/>
<field name="date" expand="1"/>
<field name="interest" expand="1"/>
<field name="call_type" expand="1"/>
<field name="call_result" expand="1"/>
<field name="prospect_trace"/>
<field name="prospect_trace" expand="1"/>
<field name="description" expand="1"/>
</tree>

View File

@ -2,6 +2,6 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tree>
<field name="date"/>
<field name="prospect_trace"/>
<field name="date" expand="1"/>
<field name="prospect_trace" expand="1"/>
</tree>