[MIG] sale_order_add_bom from v10 to v14

This commit is contained in:
Alexis de Lattre
2022-03-29 11:36:59 +02:00
committed by Alexis de Lattre
parent 371229e9e5
commit f6b10a7caa
10 changed files with 33 additions and 31 deletions

View File

@@ -0,0 +1 @@
from . import mrp_bom

View File

@@ -0,0 +1,11 @@
# Copyright 2016-2022 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models, fields
class MrpBom(models.Model):
_inherit = 'mrp.bom'
sale_ok = fields.Boolean(related='product_tmpl_id.sale_ok', store=True)