[IMP] stock: sequence duplication on picking types.
When a picking type is duplicated, the sequence was by default copied into the new picking type. This behaviour has become misleading since the sequence_id is shown only on debug mode. We now simply prevent sequence_id of being copied. TaskID: 2057311 closes odoo/odoo#35908 Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
This commit is contained in:
@@ -28,7 +28,7 @@ class PickingType(models.Model):
|
||||
name = fields.Char('Operation Type', required=True, translate=True)
|
||||
color = fields.Integer('Color')
|
||||
sequence = fields.Integer('Sequence', help="Used to order the 'All Operations' kanban view")
|
||||
sequence_id = fields.Many2one('ir.sequence', 'Reference Sequence')
|
||||
sequence_id = fields.Many2one('ir.sequence', 'Reference Sequence', copy=False)
|
||||
sequence_code = fields.Char('Code', required=True)
|
||||
default_location_src_id = fields.Many2one(
|
||||
'stock.location', 'Default Source Location',
|
||||
|
||||
Reference in New Issue
Block a user