[IMP] auction : yml test for report added

bzr revid: jma@tinyerp.com-20100917123917-f04ltijvvpm6dlcu
This commit is contained in:
JMA (OpenERP)
2010-09-17 18:09:17 +05:30
parent c87a083bd0
commit e9f4a79041
+10 -1
View File
@@ -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)
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)