[IMP] acution : yml report test added

bzr revid: rme@rme-desktop-20100915125220-7yvku6txipfi9xlo
This commit is contained in:
RME
2010-09-15 18:22:20 +05:30
parent 747119c628
commit 346dcab5ed
2 changed files with 20 additions and 1 deletions
+3 -1
View File
@@ -59,7 +59,9 @@
],
'demo_xml': ['auction_demo.xml','board_auction_demo.xml'],
'test': ['test/auction.yml'],
'test': ['test/auction.yml',
'test/auction_report.yml',
],
'installable': True,
'active': False,
+17
View File
@@ -0,0 +1,17 @@
-
In order to test the PDF reports defined on a Action Artist, we will print a Action Artist
-
!python {model: auction.lots}: |
import netsvc, tools, os
(data, format) = netsvc.LocalService('report.auction.artists').create(cr, uid, [ref('auction.auction_deposit_1_lot_1'),ref('auction.auction_deposit_1_lot_2')], {}, {})
if tools.config['test_report_directory']:
file(os.path.join(tools.config['test_report_directory'], 'action_artist_report.'+format), 'wb+').write(data)
-
In order to test the PDF reports defined on a Action Bid, we will print a Action Bid
-
!python {model: auction.lots}: |
import netsvc, tools, os
(data, format) = netsvc.LocalService('report.auction.bids').create(cr, uid, [ref('auction.auction_date_1_bid_3'),ref('auction.auction_date_1_bid_4')], {}, {})
if tools.config['test_report_directory']:
file(os.path.join(tools.config['test_report_directory'], 'action_bid_report.'+format), 'wb+').write(data)