fix travis (flake8 and pylint)

This commit is contained in:
Alexandre Fayolle
2015-03-03 14:06:06 +01:00
parent cb7b2495be
commit a441830ebd
6 changed files with 20 additions and 14 deletions

View File

@@ -16,7 +16,6 @@ install:
- $HOME/maintainer-quality-tools/travis/travis_install_nightly ${VERSION} - $HOME/maintainer-quality-tools/travis/travis_install_nightly ${VERSION}
script: script:
- travis_run_flake8
- travis_run_tests ${VERSION} - travis_run_tests ${VERSION}
after_success: after_success:

View File

@@ -20,4 +20,4 @@
# #
############################################################################## ##############################################################################
import mrp_bom_product_details from . import mrp_bom_product_details

View File

@@ -27,9 +27,15 @@ 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
), ),
} }

View File

@@ -29,11 +29,11 @@
'category': 'Specific Industry Applications', 'category': 'Specific Industry Applications',
'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
This module adds the fields 'Bubble Number' and 'RefDes' (reference description) to a component in BoM view. 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
} }

View File

@@ -20,4 +20,4 @@
# #
############################################################################## ##############################################################################
import bom_structure_industrial_design from . import bom_structure_industrial_design

View File

@@ -59,8 +59,9 @@ class bom_structure(report_sxw.rml_parse):
return children return children
report_sxw.report_sxw('report.industrialdesign.bom.structure', report_sxw.report_sxw(
'mrp.bom', 'report.industrialdesign.bom.structure',
'mrp_industrial_design_bom/report/bom_structure_industrial_design.rml', 'mrp.bom',
parser=bom_structure, 'mrp_industrial_design_bom/report/bom_structure_industrial_design.rml',
header='internal') parser=bom_structure,
header='internal')