mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[FIX] PEP8
This commit is contained in:
@@ -27,9 +27,11 @@ class mrp_bom(orm.Model):
|
|||||||
_inherit = 'mrp.bom'
|
_inherit = 'mrp.bom'
|
||||||
_columns = {
|
_columns = {
|
||||||
'product_standard_price': fields.related(
|
'product_standard_price': fields.related(
|
||||||
'product_id', 'standard_price', type='float', string='Cost Price', readonly=True
|
'product_id', 'standard_price', type='float', string='Cost Price',
|
||||||
|
readonly=True
|
||||||
),
|
),
|
||||||
'product_qty_available': fields.related(
|
'product_qty_available': fields.related(
|
||||||
'product_id', 'qty_available', type='float', string='Quantity On Hand', readonly=True
|
'product_id', 'qty_available', type='float',
|
||||||
|
string='Quantity On Hand', readonly=True
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,9 +30,11 @@
|
|||||||
'depends': ['mrp'],
|
'depends': ['mrp'],
|
||||||
"data": ['mrp_industrial_design.xml'],
|
"data": ['mrp_industrial_design.xml'],
|
||||||
'description': """
|
'description': """
|
||||||
This module adds the fields 'Bubble Number' and 'RefDes' (reference description) to a component in BoM view.
|
This module adds the fields 'Bubble Number' and 'RefDes' (reference
|
||||||
|
description) to a component in BoM view.
|
||||||
|
|
||||||
It also point the BOM Structure report to a new version that uses the new fields.
|
It also point the BOM Structure report to a new version that uses the new
|
||||||
|
fields.
|
||||||
""",
|
""",
|
||||||
'auto_install': False,
|
'auto_install': False,
|
||||||
'installable': False
|
'installable': False
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ class bom_structure(report_sxw.rml_parse):
|
|||||||
|
|
||||||
report_sxw.report_sxw('report.industrialdesign.bom.structure',
|
report_sxw.report_sxw('report.industrialdesign.bom.structure',
|
||||||
'mrp.bom',
|
'mrp.bom',
|
||||||
'mrp_industrial_design_bom/report/bom_structure_industrial_design.rml',
|
'mrp_industrial_design_bom/report/'
|
||||||
|
'bom_structure_industrial_design.rml',
|
||||||
parser=bom_structure,
|
parser=bom_structure,
|
||||||
header='internal')
|
header='internal')
|
||||||
|
|||||||
Reference in New Issue
Block a user