diff --git a/pending_call.xml b/pending_call.xml index af67a3b..86a2ed7 100644 --- a/pending_call.xml +++ b/pending_call.xml @@ -4,7 +4,7 @@ this repository contains the full copyright notices and license terms. --> - Pending pending_call + Pending calls sale.pending_call diff --git a/prospect.py b/prospect.py index 04d3146..4f65a32 100644 --- a/prospect.py +++ b/prospect.py @@ -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') diff --git a/prospect_trace.py b/prospect_trace.py index 23b95e6..4769fbc 100644 --- a/prospect_trace.py +++ b/prospect_trace.py @@ -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: diff --git a/tests/scenario_sale_opportunity_management.rst b/tests/scenario_sale_opportunity_management.rst index fab42e4..477b79a 100644 --- a/tests/scenario_sale_opportunity_management.rst +++ b/tests/scenario_sale_opportunity_management.rst @@ -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 diff --git a/view/call_tree.xml b/view/call_tree.xml index a6c1faa..98f9917 100644 --- a/view/call_tree.xml +++ b/view/call_tree.xml @@ -2,10 +2,10 @@ - + - + \ No newline at end of file diff --git a/view/pending_call_tree.xml b/view/pending_call_tree.xml index eab7a20..45b4a30 100644 --- a/view/pending_call_tree.xml +++ b/view/pending_call_tree.xml @@ -2,6 +2,6 @@ - - + + \ No newline at end of file