mirror of
https://github.com/bringout/oca-ocb-mrp.git
synced 2026-04-26 00:52:05 +02:00
Initial commit: Mrp packages
This commit is contained in:
commit
50d736b3bd
739 changed files with 538193 additions and 0 deletions
|
|
@ -0,0 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import mrp_report_bom_structure
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import api, models
|
||||
|
||||
|
||||
class ReportBomStructure(models.AbstractModel):
|
||||
_inherit = 'report.mrp.report_bom_structure'
|
||||
|
||||
@api.model
|
||||
def _is_buy_route(self, rules, product, bom):
|
||||
return super()._is_buy_route(rules, product, bom) and (not bom or bom.type != 'subcontract')
|
||||
Loading…
Add table
Add a link
Reference in a new issue