From ed07f5fcbcf7ecc328678e11194aea1a9b0eeec6 Mon Sep 17 00:00:00 2001 From: camilogs Date: Sun, 27 Aug 2023 11:39:33 -0500 Subject: [PATCH] =?UTF-8?q?feat:=20Se=20hacen=20vistas=20a=20asistente=20d?= =?UTF-8?q?e=20reasignaci=C3=B3n=20por=20operario,=20#53?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- prospect.py | 6 ++++-- prospect.xml | 10 +++++----- view/reassign_by_operator_form.xml | 6 +++++- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/prospect.py b/prospect.py index d394a1a..02ae412 100644 --- a/prospect.py +++ b/prospect.py @@ -173,8 +173,10 @@ class ReassignProspectByOperatorStart(ModelView): 'Inicio de reasignación de prospecto por operario' __name__ = 'sale.prospect.reassign_by_operator.start' - current_operator = fields.Many2One('res.user', "Current operator") - new_operator = fields.Many2One('res.user', "New operator") + current_operator = fields.Many2One( + 'res.user', "Current operator", required=True) + new_operator = fields.Many2One( + 'res.user', "New operator", required=True) prospects = fields.One2Many( 'sale.prospect', None, 'Prospects', readonly=True) diff --git a/prospect.xml b/prospect.xml index 2306f8b..33b6303 100644 --- a/prospect.xml +++ b/prospect.xml @@ -159,10 +159,10 @@ this repository contains the full copyright notices and license terms. --> form reassign_by_operator_form - - form_action - sale.prospect, -1 - - + diff --git a/view/reassign_by_operator_form.xml b/view/reassign_by_operator_form.xml index f70e785..205360e 100644 --- a/view/reassign_by_operator_form.xml +++ b/view/reassign_by_operator_form.xml @@ -2,5 +2,9 @@
- +