[IMP] point_of_sale : yml test report added

bzr revid: jma@tinyerp.com-20100916140017-h651k3095mv24faa
This commit is contained in:
JMA (OpenERP)
2010-09-16 19:30:17 +05:30
parent 94457b04eb
commit e4479ffd6a
2 changed files with 10 additions and 1 deletions
+2 -1
View File
@@ -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)