[IMP] l10n_ch,l10n_fr,l10n_lu,mrp : yml report test added
bzr revid: dhs@tinyerp.com-20100917060408-10ytdjjr1jn4tnn4
This commit is contained in:
parent
799e478d18
commit
1210a7a161
|
@ -94,6 +94,9 @@ TODO :
|
|||
"account_journal_view.xml",
|
||||
"security/ir.model.access.csv",
|
||||
],
|
||||
'test' : [
|
||||
'test/l10n_ch_report.yml',
|
||||
],
|
||||
"active": False,
|
||||
"installable": True,
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue