From 56769b0dc2319a8f8309fff40d02ec67c05916a4 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Wed, 9 Dec 2015 12:22:02 +0100 Subject: [PATCH] [FIX] PEP8 --- mrp_bom_product_details/mrp_bom_product_details.py | 6 ++++-- mrp_industrial_design_bom/__openerp__.py | 6 ++++-- .../report/bom_structure_industrial_design.py | 3 ++- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/mrp_bom_product_details/mrp_bom_product_details.py b/mrp_bom_product_details/mrp_bom_product_details.py index 07175e77d..7c8ddc692 100644 --- a/mrp_bom_product_details/mrp_bom_product_details.py +++ b/mrp_bom_product_details/mrp_bom_product_details.py @@ -27,9 +27,11 @@ class mrp_bom(orm.Model): _inherit = 'mrp.bom' _columns = { '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_id', 'qty_available', type='float', string='Quantity On Hand', readonly=True + 'product_id', 'qty_available', type='float', + string='Quantity On Hand', readonly=True ), } diff --git a/mrp_industrial_design_bom/__openerp__.py b/mrp_industrial_design_bom/__openerp__.py index c76ca3f36..1c77bc382 100644 --- a/mrp_industrial_design_bom/__openerp__.py +++ b/mrp_industrial_design_bom/__openerp__.py @@ -30,9 +30,11 @@ 'depends': ['mrp'], "data": ['mrp_industrial_design.xml'], '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, 'installable': False diff --git a/mrp_industrial_design_bom/report/bom_structure_industrial_design.py b/mrp_industrial_design_bom/report/bom_structure_industrial_design.py index bf94211b9..5e38fb849 100644 --- a/mrp_industrial_design_bom/report/bom_structure_industrial_design.py +++ b/mrp_industrial_design_bom/report/bom_structure_industrial_design.py @@ -61,6 +61,7 @@ class bom_structure(report_sxw.rml_parse): report_sxw.report_sxw('report.industrialdesign.bom.structure', '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, header='internal')