[IMP] Purchase: Remove from tools.translate import _
[odoo/odoo.git] / addons / purchase / test / purchase_report.yml
1 -
2   In order to test the PDF reports defined on a Purchase Order, we will print a Request Quotation report
3
4   !python {model: purchase.order}: |
5     import netsvc, tools, os
6     (data, format) = netsvc.LocalService('report.purchase.quotation').create(cr, uid, [ref('purchase.order_purchase1'),ref('purchase.order_purchase2')], {}, {})
7     if tools.config['test_report_directory']:
8         file(os.path.join(tools.config['test_report_directory'], 'purchase-request_quotation'+format), 'wb+').write(data)
9 -
10   In order to test the PDF reports defined on a Purchase Order, we will print Purchase Order report
11
12   !python {model: purchase.order}: |
13     import netsvc, tools, os
14     (data, format) = netsvc.LocalService('report.purchase.order').create(cr, uid, [ref('purchase.order_purchase1'),ref('purchase.order_purchase2')], {}, {})
15     if tools.config['test_report_directory']:
16         file(os.path.join(tools.config['test_report_directory'], 'purchase-purchase_order_report'+format), 'wb+').write(data)