[IMP] acution : yml report test added
bzr revid: rme@rme-desktop-20100915125220-7yvku6txipfi9xlo
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
Reference in New Issue
Block a user