diff options
| author | Anup (OpenERP) <ach@tinyerp.com> | 2010-09-17 12:52:11 +0530 |
|---|---|---|
| committer | Anup (OpenERP) <ach@tinyerp.com> | 2010-09-17 12:52:11 +0530 |
| commit | f183f4863ffc87f42e0d7bf39a1e2637ab4e45e7 (patch) | |
| tree | e2e9ad167fe52bc9802bb1bced2cd3ee5c8f986f | |
| parent | 86803a81d422602274f92c1fbf4bb743f084648b (diff) | |
[FIX] purchase : YML and __openerp__.py files corrected
bzr revid: ach@tinyerp.com-20100917072211-jx7waxcmzjgppj4b
| -rw-r--r-- | addons/purchase/__openerp__.py | 1 | ||||
| -rw-r--r-- | addons/purchase/test/purchase_report.yml | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/addons/purchase/__openerp__.py b/addons/purchase/__openerp__.py index c7b4de7decc..7af6dbceff0 100644 --- a/addons/purchase/__openerp__.py +++ b/addons/purchase/__openerp__.py @@ -60,6 +60,7 @@ 'test/purchase_from_picking.yml', 'purchase_unit_test.xml', 'test/procurement_buy.yml', + 'test/purchase_report.yml', ], 'demo': ['purchase_demo.xml'], 'installable': True, diff --git a/addons/purchase/test/purchase_report.yml b/addons/purchase/test/purchase_report.yml index b98d1f212ac..bbc15b1e936 100644 --- a/addons/purchase/test/purchase_report.yml +++ b/addons/purchase/test/purchase_report.yml @@ -6,3 +6,11 @@ (data, format) = netsvc.LocalService('report.purchase.quotation').create(cr, uid, [ref('purchase.order_purchase1'),ref('purchase.order_purchase2')], {}, {}) if tools.config['test_report_directory']: file(os.path.join(tools.config['test_report_directory'], 'purchase-request_quotation'+format), 'wb+').write(data) +- + In order to test the PDF reports defined on a Purchase Order, we will print Purchase Order report +- + !python {model: purchase.order}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.purchase.order').create(cr, uid, [ref('purchase.order_purchase1'),ref('purchase.order_purchase2')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'purchase-purchase_order_report'+format), 'wb+').write(data)
\ No newline at end of file |
