[IMP] point_of_sale : yml test report added
bzr revid: jma@tinyerp.com-20100916140017-h651k3095mv24faa
This commit is contained in:
@@ -74,7 +74,8 @@ Main features :
|
||||
],
|
||||
'demo_xml': ['pos_demo.xml','singer_statement_demo.xml','multi_company_stock_data.xml',],
|
||||
'test':['test/pos_test.yml',
|
||||
'test/pos_report.yml'],
|
||||
'test/pos_report.yml',
|
||||
'test/pos_details.yml'],
|
||||
'installable': True,
|
||||
}
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
-
|
||||
In order to test the PDF reports defined on a Point Of Sale, we will print a POS Details report
|
||||
-
|
||||
!python {model: ir.ui.menu}: |
|
||||
import netsvc, tools, os, time
|
||||
(data, format) = netsvc.LocalService('report.pos.details').create(cr, uid, [], {'model':'ir.ui.menu', 'form':{'date_start': time.strftime('%Y-%m-%d'), 'date_end': time.strftime('%Y-%m-%d') }}, {})
|
||||
if tools.config['test_report_directory']:
|
||||
file(os.path.join(tools.config['test_report_directory'], 'point_of_sale- pos details report'+format), 'wb+').write(data)
|
||||
Reference in New Issue
Block a user