|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
-
|
|
|
|
|
In order to test the PDF reports defined on a Point Of Sale, we will print a POS Detail Summary report
|
|
|
|
|
In order to test the PDF reports defined on a Point Of Sale, we will print a POS Detail Summary Report
|
|
|
|
|
-
|
|
|
|
|
!python {model: pos.order}: |
|
|
|
|
|
import netsvc, tools, os
|
|
|
|
@ -8,7 +8,7 @@
|
|
|
|
|
file(os.path.join(tools.config['test_report_directory'], 'point_of_sale-details_summary report'+format), 'wb+').write(data)
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
In order to test the PDF reports defined on a Point Of Sale, we will print a POS Invoice report
|
|
|
|
|
In order to test the PDF reports defined on a Point Of Sale, we will print a POS Invoice Report
|
|
|
|
|
-
|
|
|
|
|
!python {model: pos.order}: |
|
|
|
|
|
import netsvc, tools, os
|
|
|
|
@ -17,7 +17,7 @@
|
|
|
|
|
file(os.path.join(tools.config['test_report_directory'], 'point_of_sale-invoice report'+format), 'wb+').write(data)
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
In order to test the PDF reports defined on a Point Of Sale, we will print a POS Lines report
|
|
|
|
|
In order to test the PDF reports defined on a Point Of Sale, we will print a POS Lines Report
|
|
|
|
|
-
|
|
|
|
|
!python {model: pos.order}: |
|
|
|
|
|
import netsvc, tools, os
|
|
|
|
@ -26,7 +26,7 @@
|
|
|
|
|
file(os.path.join(tools.config['test_report_directory'], 'point_of_sale-lines report'+format), 'wb+').write(data)
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
In order to test the PDF reports defined on a Point of Sale, we will print a POS Receipt report
|
|
|
|
|
In order to test the PDF reports defined on a Point of Sale, we will print a POS Receipt Report
|
|
|
|
|
-
|
|
|
|
|
!python {model: pos.order}: |
|
|
|
|
|
import netsvc, tools, os
|
|
|
|
@ -35,7 +35,7 @@
|
|
|
|
|
file(os.path.join(tools.config['test_report_directory'], 'point_of_sale-receipt report'+format), 'wb+').write(data)
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
In order to test the PDF reports defined on a Point of Sale, we will print a POS Receipt With Reimbursement report
|
|
|
|
|
In order to test the PDF reports defined on a Point of Sale, we will print a POS Receipt With Reimbursement Report
|
|
|
|
|
-
|
|
|
|
|
!python {model: pos.order}: |
|
|
|
|
|
import netsvc, tools, os
|
|
|
|
@ -44,10 +44,93 @@
|
|
|
|
|
file(os.path.join(tools.config['test_report_directory'], 'point_of_sale-receipt with reimbursement report'+format), 'wb+').write(data)
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
In order to test the PDF reports defined on a point of sale, we will print a POS Receipt Without Reimbursement report
|
|
|
|
|
In order to test the PDF reports defined on a point of sale, we will print a POS Receipt Without Reimbursement Report
|
|
|
|
|
-
|
|
|
|
|
!python {model: pos.order}: |
|
|
|
|
|
import netsvc, tools, os
|
|
|
|
|
(data, format) = netsvc.LocalService('report.pos.receipt.without.remboursment').create(cr, uid, [ref('point_of_sale.order_pos1'), ref('point_of_sale.order_pos2')], {}, {})
|
|
|
|
|
if tools.config['test_report_directory']:
|
|
|
|
|
file(os.path.join(tools.config['test_report_directory'], 'point_of_sale-receipt without reimbursement report'+format), 'wb+').write(data)
|
|
|
|
|
file(os.path.join(tools.config['test_report_directory'], 'point_of_sale-receipt without reimbursement report'+format), 'wb+').write(data)
|
|
|
|
|
-
|
|
|
|
|
In order to test the PDF reports defined on a Point Of Sale, we will print a POS Payment Report 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)
|
|
|
|
|
-
|
|
|
|
|
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)
|
|
|
|
|
-
|
|
|
|
|
In order to test the PDF reports defined on a Point Of Sale, we will print a Account Statement Report
|
|
|
|
|
-
|
|
|
|
|
!python {model: account.bank.statement}: |
|
|
|
|
|
import netsvc, tools, os, time
|
|
|
|
|
(data, format) = netsvc.LocalService('report.account.statement').create(cr, uid, [ref('point_of_sale.account_bank_statement_st0')], {}, {})
|
|
|
|
|
if tools.config['test_report_directory']:
|
|
|
|
|
file(os.path.join(tools.config['test_report_directory'], 'point_of_sale-account_statement_report'+format), 'wb+').write(data)
|
|
|
|
|
-
|
|
|
|
|
In order to test the PDF reports defined on a Point Of Sale, we will print a POS User Product Report
|
|
|
|
|
-
|
|
|
|
|
!python {model: account.bank.statement}: |
|
|
|
|
|
import netsvc, tools, os, time
|
|
|
|
|
(data, format) = netsvc.LocalService('report.pos.user.product').create(cr, uid, [ref('point_of_sale.account_bank_statement_st0')], {}, {})
|
|
|
|
|
if tools.config['test_report_directory']:
|
|
|
|
|
file(os.path.join(tools.config['test_report_directory'], 'point_of_sale-user_product_report'+format), 'wb+').write(data)
|
|
|
|
|
-
|
|
|
|
|
In order to test the PDF reports defined on a Point Of Sale, we will print a POS All Close Cashbox Of the Day Report
|
|
|
|
|
-
|
|
|
|
|
!python {model: account.bank.statement}: |
|
|
|
|
|
import netsvc, tools, os, time
|
|
|
|
|
(data, format) = netsvc.LocalService('report.all.closed.cashbox.of.the.day').create(cr, uid, [ref('point_of_sale.account_bank_statement_st0')], {}, {})
|
|
|
|
|
if tools.config['test_report_directory']:
|
|
|
|
|
file(os.path.join(tools.config['test_report_directory'], 'point_of_sale-all_closed_cash_box_of_the_day_report'+format), 'wb+').write(data)
|
|
|
|
|
-
|
|
|
|
|
In order to test the PDF reports defined on a Point of Sale, we will print a POS Sales User Report
|
|
|
|
|
-
|
|
|
|
|
!python {model: pos.order}: |
|
|
|
|
|
import netsvc, tools, os, time
|
|
|
|
|
data_dict = {'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')] }}
|
|
|
|
|
(data, format) = netsvc.LocalService('report.pos.sales.user').create(cr, uid, [ref('point_of_sale.order_pos1'), ref('point_of_sale.order_pos2')], data_dict, {})
|
|
|
|
|
if tools.config['test_report_directory']:
|
|
|
|
|
file(os.path.join(tools.config['test_report_directory'], 'point_of_sale-sales_user_report'+format), 'wb+').write(data)
|
|
|
|
|
-
|
|
|
|
|
In order to test the PDF reports defined on a Point of Sale, we will print a POS Sales User Today Report
|
|
|
|
|
-
|
|
|
|
|
!python {model: pos.order}: |
|
|
|
|
|
import netsvc, tools, os, time
|
|
|
|
|
data_dict = {'model':'ir.ui.menu', 'form':{'user_id':[ref('base.user_root')] }}
|
|
|
|
|
(data, format) = netsvc.LocalService('report.pos.sales.user.today').create(cr, uid, [ref('point_of_sale.order_pos1'), ref('point_of_sale.order_pos2')], data_dict, {})
|
|
|
|
|
if tools.config['test_report_directory']:
|
|
|
|
|
file(os.path.join(tools.config['test_report_directory'], 'point_of_sale-sales_user_today_report'+format), 'wb+').write(data)
|
|
|
|
|
-
|
|
|
|
|
In order to test the PDF reports defined on a Point of Sale, we will print a POS Payment Report
|
|
|
|
|
-
|
|
|
|
|
!python {model: pos.order}: |
|
|
|
|
|
import netsvc, tools, os, time
|
|
|
|
|
(data, format) = netsvc.LocalService('report.pos.payment.report').create(cr, uid, [ref('point_of_sale.order_pos1'), ref('point_of_sale.order_pos2')], {}, {})
|
|
|
|
|
if tools.config['test_report_directory']:
|
|
|
|
|
file(os.path.join(tools.config['test_report_directory'], 'point_of_sale-payment_report'+format), 'wb+').write(data)
|
|
|
|
|
-
|
|
|
|
|
In order to test the PDF reports defined on a Point of Sale, we will print a POS Payment User Report
|
|
|
|
|
-
|
|
|
|
|
!python {model: pos.order}: |
|
|
|
|
|
import netsvc, tools, os, time
|
|
|
|
|
data_dict = {'model':'ir.ui.menu', 'form':{'user_id':[ref('base.user_root'),ref('base.user_demo')] }}
|
|
|
|
|
(data, format) = netsvc.LocalService('report.pos.payment.report.user').create(cr, uid, [ref('point_of_sale.order_pos1'), ref('point_of_sale.order_pos2')], data_dict, {})
|
|
|
|
|
if tools.config['test_report_directory']:
|
|
|
|
|
file(os.path.join(tools.config['test_report_directory'], 'point_of_sale-payment_user_report'+format), 'wb+').write(data)
|
|
|
|
|
-
|
|
|
|
|
In order to test the PDF reports defined on a Point of Sale, we will print a POS Today's Sales of Current User Report
|
|
|
|
|
-
|
|
|
|
|
!python {model: pos.order}: |
|
|
|
|
|
import netsvc, tools, os, time
|
|
|
|
|
(data, format) = netsvc.LocalService('report.pos.sales.user.today.current.user').create(cr, uid, [ref('point_of_sale.order_pos1'), ref('point_of_sale.order_pos2')], {}, {})
|
|
|
|
|
if tools.config['test_report_directory']:
|
|
|
|
|
file(os.path.join(tools.config['test_report_directory'], 'point_of_sale-sales_today_current_user_report'+format), 'wb+').write(data)
|