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 @@
- +