diff --git a/addons/mrp_operations/test/mrp_operations_report.yml b/addons/mrp_operations/test/mrp_operations_report.yml index c83d077acde..f0a646adf4e 100644 --- a/addons/mrp_operations/test/mrp_operations_report.yml +++ b/addons/mrp_operations/test/mrp_operations_report.yml @@ -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)