diff --git a/addons/point_of_sale/__openerp__.py b/addons/point_of_sale/__openerp__.py index 21c7bdaab45..6f33f75f65d 100644 --- a/addons/point_of_sale/__openerp__.py +++ b/addons/point_of_sale/__openerp__.py @@ -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: diff --git a/addons/point_of_sale/test/pos_payment_report_date.yml b/addons/point_of_sale/test/pos_payment_report_date.yml new file mode 100644 index 00000000000..15eefcdc6ab --- /dev/null +++ b/addons/point_of_sale/test/pos_payment_report_date.yml @@ -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) \ No newline at end of file