[MIG] mrp_bom_line_sequence: Migration to 12.0

This commit is contained in:
mreficent
2019-10-14 14:08:21 +02:00
committed by ps-tubtim
parent 18bba1e588
commit 92b7021cdd
7 changed files with 14 additions and 18 deletions

View File

@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from . import mrp

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2019 Eficent Business and IT Consulting Services S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
@@ -9,10 +8,11 @@ class MrpBomLine(models.Model):
_inherit = 'mrp.bom.line'
# re-defines the field to change the default
sequence = fields.Integer(default=9999)
sequence = fields.Integer(default=9999, string='original sequence')
# displays sequence on the stock moves
sequence2 = fields.Integer(help="Shows the sequence in the BOM line.",
string='Sequence',
related='sequence', readonly=False, store=True)
@api.model