develop
Andreas Osim 2025-03-20 15:55:34 +01:00
parent 0a200c2288
commit dc19c3a6a3
2 changed files with 3 additions and 0 deletions

View File

@ -62,6 +62,7 @@ class SaleOrder(models.Model):
assembled = fields.Boolean(string='Zusammengebaut')
line_id = fields.Many2one(comodel_name='res.line', string='Produktionslinie')
assembly_state = fields.Selection(ASSEMBLY_STATES, string="Status PG", track_visibility='onchange', help='Bitte nicht manuell ändern', default='', copy=False)
pg_id = fields.Char(string="PG-Nummer", track_visibility='onchange', help='Bitte nicht manuell ändern', default='', copy=False)
quote_name = fields.Char(compute='_compute_quote_name')
internal_notes = fields.Text()
assembly_notes = fields.Text()

View File

@ -45,6 +45,8 @@
<field name="order_type"/>
<field name="assembly_state" groups="dp_custom.group_allow_change_pg_status"/>
<field name="assembly_state" attrs="{'readonly': True}" groups="!dp_custom.group_allow_change_pg_status"/>
<field name="pg_id" groups="dp_custom.group_allow_change_pg_status"/>
<field name="pg_id" attrs="{'readonly': True}" groups="!dp_custom.group_allow_change_pg_status"/>
<field name="pg9_complete" groups="dp_custom.group_allow_change_pg_status"/>
<!--