mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
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.
18 lines
611 B
Python
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
|