[IMP] point_of_sale : yml test report added

bzr revid: jma@tinyerp.com-20100917045055-iboip65l02zg6i2m
This commit is contained in:
JMA (OpenERP) 2010-09-17 10:20:55 +05:30
parent 0f70b04e5b
commit 02a9c6f837
2 changed files with 10 additions and 1 deletions

View File

@ -75,7 +75,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_details.yml'],
'test/pos_details.yml',
'test/pos_payment_report_date.yml'],
'installable': True,
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -0,0 +1,8 @@
-
In order to test the PDF reports defined on a Point Of Sale, we will print a POS Sales Lines report
-
!python {model: ir.ui.menu}: |
import netsvc, tools, os, time
(data, format) = netsvc.LocalService('report.pos.payment.report.date').create(cr, uid, [1], {'model':'ir.ui.menu', 'form':{'date_start': time.strftime('%Y-%m-%d'), 'date_end': time.strftime('%Y-%m-%d'), 'user_id': [ref('base.user_root')] }}, {})
if tools.config['test_report_directory']:
file(os.path.join(tools.config['test_report_directory'], 'point_of_sale- pos sales lines report'+format), 'wb+').write(data)