diff --git a/pending_call.py b/pending_call.py index 74ce429..9d1e855 100644 --- a/pending_call.py +++ b/pending_call.py @@ -8,4 +8,3 @@ class PendingCall(ModelSQL, ModelView): __name__ = "sale.pending_call" date = fields.Date('Date', required=True) - # prospect_trace = fields.Many2One('sale.prospect_trace', 'Prospect trace') diff --git a/prospect_trace.py b/prospect_trace.py index f79fc71..49974df 100644 --- a/prospect_trace.py +++ b/prospect_trace.py @@ -18,8 +18,6 @@ class ProspectTrace(DeactivableMixin, ModelSQL, ModelView): states={'readonly': True}) calls = fields.One2Many('sale.call', 'prospect_trace', 'Calls') - # pending_calls = fields.One2Many( - # 'sale.pending_call', 'prospect_trace', 'Pending calls') pending_call = fields.Many2One('sale.pending_call', 'Pending call') current_interest = fields.Selection( @@ -36,7 +34,6 @@ class ProspectTrace(DeactivableMixin, ModelSQL, ModelView): def default_state(cls): return 'open' - # 'pending_calls' @fields.depends('calls', 'pending_call', 'current_interest', 'state') def on_change_calls(self): if not self.calls: diff --git a/view/pending_call_form.xml b/view/pending_call_form.xml index 02f1678..18f3d21 100644 --- a/view/pending_call_form.xml +++ b/view/pending_call_form.xml @@ -4,7 +4,4 @@ this repository contains the full copyright notices and license terms. --> <form> <label name="date"/> <field name="date"/> - - <!-- <label name="prospect_trace"/> - <field name="prospect_trace"/> --> </form> \ No newline at end of file diff --git a/view/pending_call_tree.xml b/view/pending_call_tree.xml index ee3b9ba..f2a99fd 100644 --- a/view/pending_call_tree.xml +++ b/view/pending_call_tree.xml @@ -3,5 +3,4 @@ this repository contains the full copyright notices and license terms. --> <tree> <field name="date" expand="1"/> - <!-- <field name="prospect_trace" expand="1"/> --> </tree> \ No newline at end of file diff --git a/view/prospect_trace_form.xml b/view/prospect_trace_form.xml index a374ff2..1a18c6c 100644 --- a/view/prospect_trace_form.xml +++ b/view/prospect_trace_form.xml @@ -25,7 +25,7 @@ this repository contains the full copyright notices and license terms. --> </page> </notebook> - <!-- <field name="pending_calls" colspan="6"/> --> + <field name="pending_call" colspan="6"/> <label name="state"/> <field name="state"/> </form> \ No newline at end of file diff --git a/view/prospect_trace_tree.xml b/view/prospect_trace_tree.xml index aab6dcd..e542ed7 100644 --- a/view/prospect_trace_tree.xml +++ b/view/prospect_trace_tree.xml @@ -7,5 +7,5 @@ this repository contains the full copyright notices and license terms. --> <field name="prospect_city" expand="1"/> <field name="current_interest" expand="1"/> <field name="calls" expand="1"/> - <!-- <field name="pending_calls" expand="1"/> --> + <field name="pending_call" expand="1"/> </tree> \ No newline at end of file