feat: Se hacen vistas a asistente de reasignación por operario, #53
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Camilo Gonzalez 2023-08-27 11:39:33 -05:00
parent 3d77056e6f
commit ed07f5fcbc
3 changed files with 14 additions and 8 deletions

View File

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

View File

@ -159,10 +159,10 @@ this repository contains the full copyright notices and license terms. -->
<field name="type">form</field>
<field name="name">reassign_by_operator_form</field>
</record>
<record model="ir.action.keyword" id="reassign_by_operator_wizard_keyword">
<field name="keyword">form_action</field>
<field name="model">sale.prospect, -1</field>
<field name="action" ref="reassign_by_operator_wizard"/>
</record>
<menuitem
parent="menu_prospects_tree"
sequence="50"
id="menu_reassign_by_operator_wizard"
action="reassign_by_operator_wizard"/>
</data>
</tryton>

View File

@ -2,5 +2,9 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form>
<label name="current_operator"/>
<field name="current_operator"/>
<label name="new_operator"/>
<field name="new_operator"/>
<field name="prospects" colspan="6"/>
</form>