Merge pull request #5 from savoirfairelinux/7.0-meta

Update meta
This commit is contained in:
Sandy
2014-10-06 17:11:34 -04:00
5 changed files with 26 additions and 31 deletions

View File

@@ -1,17 +0,0 @@
# Config file .coveragerc
[report]
include =
*/manufacture/*
omit =
*/tests/*
*__init__.py
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain about null context checking
if context is None:

View File

@@ -4,7 +4,9 @@ python:
- "2.7"
env:
- VERSION="7.0"
- VERSION="7.0" ODOO_REPO="odoo/odoo"
- VERSION="7.0" ODOO_REPO="OCA/OCB"
- VERSION="7.0" UNIT_TEST="1"
virtualenv:
system_site_packages: true
@@ -12,12 +14,10 @@ virtualenv:
install:
- git clone https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
- export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
- travis_install_nightly ${VERSION}
- $HOME/maintainer-quality-tools/travis/travis_install_nightly ${VERSION}
- travis_install_nightly
script:
- travis_run_flake8
- travis_run_tests ${VERSION}
- travis_run_tests
after_success:
coveralls

View File

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

View File

@@ -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': True

View File

@@ -59,8 +59,10 @@ 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',
)