Skip to content
Snippets Groups Projects
Commit 78619cbe authored by Arnaud Baes's avatar Arnaud Baes
Browse files

[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: default avatarSimon Lejeune (sle) <sle@openerp.com>
parent 9a27710a
No related branches found
No related tags found
No related merge requests found
......@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment