Files
manufacture/mrp_operations_start_without_material/models/mrp_bom.py
Pedro M. Baeza 48d327b8ce [IMP] mrp_hook: Provide hooks for _bom_explode method
As we are struggled by the structure of core current code, and
https://github.com/odoo/odoo/pull/8885 hasn't been accepted in v8,
we need to make this hard move to allow a lot of workarounds like
modules not depending this one, but anyway the method itself is
not too much inheritable.
2016-08-07 20:14:38 +07:00

18 lines
611 B
Python

# -*- coding: utf-8 -*-
##############################################################################
# For copyright and license notices, see __openerp__.py file in root directory
##############################################################################
from openerp import models, api
class MrpBom(models.Model):
_inherit = 'mrp.bom'
@api.multi
def _prepare_wc_line(self, wc_use, level=0, factor=1):
res = super(MrpBom, self)._prepare_wc_line(
wc_use, level=level, factor=factor)
res['init_without_material'] = wc_use.init_without_material
return res