[ADD] mrp_bom_equivalent

This commit is contained in:
Bhavesh Odedra
2018-02-02 12:58:45 +05:30
committed by Maxime Chambreuil
parent c55d3fe2cd
commit 1f3c4d4f99
9 changed files with 166 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
# Copyright (C) 2018 - TODAY, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class MRPBoMLine(models.Model):
_inherit = 'mrp.bom.line'
use_equivalences = fields.Boolean(
string='Use equivalences'
)
nonequivalent_product_ids = fields.Many2many(
"product.product",
"mrp_bom_line_product_rel",
"bom_line_id",
"product_id",
string="Non-Equivalent Products"
)