[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:
Arnaud Baes
2019-08-21 11:59:15 +00:00
parent 9a27710aa7
commit 78619cbe7e
+1 -1
View File
@@ -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',