From a441830ebd4f848e4f14952cc7cc3a0e3d6d064e Mon Sep 17 00:00:00 2001 From: Alexandre Fayolle Date: Tue, 3 Mar 2015 14:06:06 +0100 Subject: [PATCH] fix travis (flake8 and pylint) --- .travis.yml | 1 - mrp_bom_product_details/__init__.py | 2 +- mrp_bom_product_details/mrp_bom_product_details.py | 10 ++++++++-- mrp_industrial_design_bom/__openerp__.py | 8 ++++---- mrp_industrial_design_bom/report/__init__.py | 2 +- .../report/bom_structure_industrial_design.py | 11 ++++++----- 6 files changed, 20 insertions(+), 14 deletions(-) diff --git a/.travis.yml b/.travis.yml index cdb0b7158..34d2b8644 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,7 +16,6 @@ install: - $HOME/maintainer-quality-tools/travis/travis_install_nightly ${VERSION} script: - - travis_run_flake8 - travis_run_tests ${VERSION} after_success: diff --git a/mrp_bom_product_details/__init__.py b/mrp_bom_product_details/__init__.py index 1d82e0db7..5cf76c097 100644 --- a/mrp_bom_product_details/__init__.py +++ b/mrp_bom_product_details/__init__.py @@ -20,4 +20,4 @@ # ############################################################################## -import mrp_bom_product_details +from . import mrp_bom_product_details diff --git a/mrp_bom_product_details/mrp_bom_product_details.py b/mrp_bom_product_details/mrp_bom_product_details.py index 07175e77d..8125f33cf 100644 --- a/mrp_bom_product_details/mrp_bom_product_details.py +++ b/mrp_bom_product_details/mrp_bom_product_details.py @@ -27,9 +27,15 @@ 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..015d8c1c1 100644 --- a/mrp_industrial_design_bom/__openerp__.py +++ b/mrp_industrial_design_bom/__openerp__.py @@ -29,11 +29,11 @@ 'category': 'Specific Industry Applications', '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. + 'description': """ 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/__init__.py b/mrp_industrial_design_bom/report/__init__.py index 0be3c550d..a7ad209bd 100644 --- a/mrp_industrial_design_bom/report/__init__.py +++ b/mrp_industrial_design_bom/report/__init__.py @@ -20,4 +20,4 @@ # ############################################################################## -import bom_structure_industrial_design +from . import bom_structure_industrial_design 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..6bcf9e635 100644 --- a/mrp_industrial_design_bom/report/bom_structure_industrial_design.py +++ b/mrp_industrial_design_bom/report/bom_structure_industrial_design.py @@ -59,8 +59,9 @@ class bom_structure(report_sxw.rml_parse): return children -report_sxw.report_sxw('report.industrialdesign.bom.structure', - 'mrp.bom', - 'mrp_industrial_design_bom/report/bom_structure_industrial_design.rml', - parser=bom_structure, - header='internal') +report_sxw.report_sxw( + 'report.industrialdesign.bom.structure', + 'mrp.bom', + 'mrp_industrial_design_bom/report/bom_structure_industrial_design.rml', + parser=bom_structure, + header='internal')