From e9f4a790417353ed218504ace0341808d1835c28 Mon Sep 17 00:00:00 2001 From: "JMA (OpenERP)" Date: Fri, 17 Sep 2010 18:09:17 +0530 Subject: [PATCH] [IMP] auction : yml test for report added bzr revid: jma@tinyerp.com-20100917123917-f04ltijvvpm6dlcu --- addons/auction/test/auction_report.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/addons/auction/test/auction_report.yml b/addons/auction/test/auction_report.yml index 4d5110c03a1..1a73c482a87 100644 --- a/addons/auction/test/auction_report.yml +++ b/addons/auction/test/auction_report.yml @@ -89,4 +89,13 @@ import netsvc, tools, os (data, format) = netsvc.LocalService('report.bids.lots').create(cr, uid, [ref('auction.auction_deposit_10_lot_1'),ref('auction.auction_deposit_10_lot_2')], {}, {}) if tools.config['test_report_directory']: - file(os.path.join(tools.config['test_report_directory'], 'action_lot_report.'+format), 'wb+').write(data) \ No newline at end of file + file(os.path.join(tools.config['test_report_directory'], 'action_lot_report.'+format), 'wb+').write(data) + +- + In order to test the PDF reports defined on a auction, we will print a Auction Buyer list report +- + !python {model: auction.lots}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.buyer.list').create(cr, uid, [ref('auction.auction_deposit_10_lot_1'),ref('auction.auction_deposit_10_lot_2')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'action_auction_buyer_list_report.'+format), 'wb+').write(data) \ No newline at end of file