From b34a1e19af42643fcfe4433c61fb7ae541a5847c Mon Sep 17 00:00:00 2001 From: camilogs Date: Mon, 21 Aug 2023 09:27:48 -0500 Subject: [PATCH] =?UTF-8?q?feat:=20Se=20crea=20asistente=20para=20agendar?= =?UTF-8?q?=20pr=C3=B3xima=20llamada?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- prospect_trace.py | 4 ++-- view/prospect_trace_form.xml | 3 +++ view/schedule_start_form.xml | 1 - 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/prospect_trace.py b/prospect_trace.py index 866b171..b25a20a 100644 --- a/prospect_trace.py +++ b/prospect_trace.py @@ -41,7 +41,7 @@ class ProspectTrace(DeactivableMixin, ModelSQL, ModelView): super(ProspectTrace, cls).__setup__() cls._buttons.update({ 'wizard_schedule': { - 'invisible': Eval('state') == 'open', + 'invisible': Eval('state') == 'with_pending_calls', } }) @@ -52,7 +52,7 @@ class ProspectTrace(DeactivableMixin, ModelSQL, ModelView): @classmethod @ModelView.button_action( 'sale_opportunity_management.schedule_call_wizard') - def wizard_schedule(): + def wizard_schedule(cls, prospect_traces): pass @fields.depends('calls', 'pending_call', 'current_interest', 'state') diff --git a/view/prospect_trace_form.xml b/view/prospect_trace_form.xml index 958fb07..8d083f9 100644 --- a/view/prospect_trace_form.xml +++ b/view/prospect_trace_form.xml @@ -25,6 +25,9 @@ this repository contains the full copyright notices and license terms. --> + +