diff --git a/addons/l10n_ch/__openerp__.py b/addons/l10n_ch/__openerp__.py index de378528b33..1af2e70ca59 100644 --- a/addons/l10n_ch/__openerp__.py +++ b/addons/l10n_ch/__openerp__.py @@ -94,6 +94,9 @@ TODO : "account_journal_view.xml", "security/ir.model.access.csv", ], + 'test' : [ + 'test/l10n_ch_report.yml', + ], "active": False, "installable": True, } diff --git a/addons/l10n_fr/__openerp__.py b/addons/l10n_fr/__openerp__.py index f96945a8bc8..0de26734781 100644 --- a/addons/l10n_fr/__openerp__.py +++ b/addons/l10n_fr/__openerp__.py @@ -48,8 +48,9 @@ Credits: Sistheo Zeekom CrysaLEAD "security/ir.model.access.csv", "wizard/fr_report_bilan_view.xml", "wizard/fr_report_compute_resultant_view.xml", - + ], + "test": ['test/l10n_fr_report.yml'], "demo_xml" : [], "certificate" : "00435321693876313629", "active": False, diff --git a/addons/l10n_lu/__openerp__.py b/addons/l10n_lu/__openerp__.py index 739f36c9ce4..d1f6ba49905 100644 --- a/addons/l10n_lu/__openerp__.py +++ b/addons/l10n_lu/__openerp__.py @@ -41,6 +41,7 @@ This module installs: 'account.tax.template.csv', 'wizard/print_vat_view.xml' ], + 'test': ['test/l10n_lu_report.yml'], 'demo_xml': ['account.report.report.csv'], 'installable': True, 'active': False, diff --git a/addons/mrp/test/mrp_report.yml b/addons/mrp/test/mrp_report.yml index 5c619e0b09d..6a13d489104 100644 --- a/addons/mrp/test/mrp_report.yml +++ b/addons/mrp/test/mrp_report.yml @@ -8,7 +8,7 @@ file(os.path.join(tools.config['test_report_directory'], 'mrp-bom_order.'+format), 'wb+').write(data) - - In order to test the PDF reports defined on a mrp, we will print a order + In order to test the PDF reports defined on a mrp, we will print an order - !python {model: mrp.production}: | import netsvc, tools, os @@ -17,10 +17,19 @@ file(os.path.join(tools.config['test_report_directory'], 'mrp-production_order.'+format), 'wb+').write(data) - - In order to test the PDF reports defined on a mrp, we will print a (mrp)Product-price order + In order to test the PDF reports defined on a mrp product price, we will print a (mrp)Product Price order - !python {model: product.product}: | import netsvc, tools, os - (data, format) = netsvc.LocalService('report.product.price').create(cr, uid, [ref('product.product_product_0'), ref('product.product_product_pc2'), ref('product.product_product_cpu1'), ref('product.product_product_hdd1'), ref('product.product_product_fan'), ref('product.product_product_cpu1'), ref('product.product_product_ram512')], {}, {}) + (data, format) = netsvc.LocalService('report.product.price').create(cr, uid, [1,2,3,5], {'model':'product.product', 'form':{'number': 1}}, {}) if tools.config['test_report_directory']: - file(os.path.join(tools.config['test_report_directory'], 'mrp-production-price_order.'+format), 'wb+').write(data) + file(os.path.join(tools.config['test_report_directory'], 'mrp_product-price_order.'+format), 'wb+').write(data) + +- + In order to test the PDF reports defined on a mrp workcenter, we will print a (mrp)workcenter +- + !python {model: mrp.workcenter}: | + import netsvc, tools, os, time + (data, format) = netsvc.LocalService('report.mrp.workcenter.load').create(cr, uid, [ref('mrp_workcenter_0'),ref('mrp_workcenter_1')], {'model':'mrp.workcenter', 'form':{'time_unit': 'day', 'measure_unit': 'hours'}}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'mrp_workcenter.'+format), 'wb+').write(data)