[FIX] mrp_operations : YML corrected

bzr revid: ach@tinyerp.com-20100917130647-qqxt5imw4tqgbfrb
This commit is contained in:
Anup (OpenERP)
2010-09-17 18:36:47 +05:30
parent 739687936a
commit 14f4df40dc
@@ -1,17 +1,17 @@
-
In order to test the PDF reports defined on a mrp operations, we will print a barcode
In order to test the PDF reports defined on a MRP Operations, we will print a Barcode Report
-
!python {model: mrp_operations.operation.code}: |
import netsvc, tools, os
(data, format) = netsvc.LocalService('report.mrp.code.barcode').create(cr, uid, [ref('mrp_operations.mrp_op_1'),ref('mrp_operations.mrp_op_2'),ref('mrp_operations.mrp_op_3'),ref('mrp_operations.mrp_op_4'),ref('mrp_operations.mrp_op_5')], {}, {})
if tools.config['test_report_directory']:
file(os.path.join(tools.config['test_report_directory'], 'mrp_operations-barcoder.'+format), 'wb+').write(data)
file(os.path.join(tools.config['test_report_directory'], 'mrp_operations-barcode_report.'+format), 'wb+').write(data)
-
In order to test the PDF reports defined on a mrp operations, we will print a workcenters
In order to test the PDF reports defined on a MRP Operations, we will print Workcenter's Barcode Report
-
!python {model: mrp.workcenter}: |
import netsvc, tools, os
(data, format) = netsvc.LocalService('report.mrp.wc.barcode').create(cr, uid, [ref('mrp.mrp_workcenter_0'),ref('mrp.mrp_workcenter_1')], {}, {})
if tools.config['test_report_directory']:
file(os.path.join(tools.config['test_report_directory'], 'mrp_ workcenter.'+format), 'wb+').write(data)
file(os.path.join(tools.config['test_report_directory'], 'mrp_operations-workcenter_barcode_report.'+format), 'wb+').write(data)