From 6ccc0c702766796a1d49606a1faf2fd027a0725b Mon Sep 17 00:00:00 2001 From: "Anup (OpenERP)" Date: Wed, 15 Sep 2010 17:45:34 +0530 Subject: [PATCH 001/125] [IMP] account : testing for yml report added bzr revid: ach@tinyerp.com-20100915121534-xo7hpvzfluu2rrse --- addons/account/__openerp__.py | 1 + addons/account/test/account_report.yml | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 addons/account/test/account_report.yml diff --git a/addons/account/__openerp__.py b/addons/account/__openerp__.py index c432689de44..9bbddb1e050 100644 --- a/addons/account/__openerp__.py +++ b/addons/account/__openerp__.py @@ -134,6 +134,7 @@ module named account_voucher. 'test/account_use_model.yml', 'test/account_validate_account_move.yml', 'test/account_fiscalyear_close.yml', + 'test/account_report.yml', ], 'installable': True, 'active': False, diff --git a/addons/account/test/account_report.yml b/addons/account/test/account_report.yml new file mode 100644 index 00000000000..ae7424dc968 --- /dev/null +++ b/addons/account/test/account_report.yml @@ -0,0 +1,17 @@ +- + In order to test the PDF reports defined on an invoice, we will print an invoice +- + !python {model: account.invoice}: | + print "aavoyuygugvyuvyug " + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.account.invoice').create(cr, uid, [ref('account.test_invoice_1')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'invoice.'+format), 'wb+').write(data) +- + In order to test the PDF reports defined on a partner, we will print a overdue report +- + !python {model: res.partner}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.account.overdue').create(cr, uid, [ref('base.res_partner_asus'),ref('base.res_partner_agrolait'),ref('base.res_partner_c2c'),ref('base.res_partner_sednacom'),ref('base.res_partner_thymbra'),ref('base.res_partner_desertic_hispafuentes'),ref('base.res_partner_tinyatwork'),ref('base.res_partner_2'),ref('base.res_partner_3'),ref('base.res_partner_4'),ref('base.res_partner_5'),ref('base.res_partner_6'),ref('base.res_partner_maxtor'),ref('base.res_partner_seagate'),ref('base.res_partner_8'),ref('base.res_partner_9'),ref('base.res_partner_10'),ref('base.res_partner_11'),ref('base.res_partner_14'),ref('base.res_partner_15'),ref('base.res_partner_accent')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'overdue.'+format), 'wb+').write(data) \ No newline at end of file From 5e8755475498efbdaf8f9b48f6a14c121bf7f2a9 Mon Sep 17 00:00:00 2001 From: RME Date: Wed, 15 Sep 2010 17:49:56 +0530 Subject: [PATCH 002/125] [IMP] hr_payroll : yml report test added bzr revid: rme@rme-desktop-20100915121956-un2ft2e7e8nvuqbj --- addons/base_module_doc_rst/__terp__.py | 41 -------------------- addons/hr_payroll/__openerp__.py | 1 + addons/hr_payroll/test/hr_payroll_report.yml | 19 +++++++++ 3 files changed, 20 insertions(+), 41 deletions(-) delete mode 100644 addons/base_module_doc_rst/__terp__.py create mode 100644 addons/hr_payroll/test/hr_payroll_report.yml diff --git a/addons/base_module_doc_rst/__terp__.py b/addons/base_module_doc_rst/__terp__.py deleted file mode 100644 index 8a7fe96b6bd..00000000000 --- a/addons/base_module_doc_rst/__terp__.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2004-2009 Tiny SPRL (). -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################## - -{ - 'name': 'Module Technical Guide in Restructured Text ', - 'version': '1.0', - 'category': 'Generic Modules/Base', - 'description': """ - * This module generate the Technical Guides of selected modules in Restructured Text format (RST) - * It uses the Sphinx (http://sphinx.pocoo.org) implementation of RST - * It creates a tarball (.tgz file suffix) containing an index file and one file per module - * Generate Relationship Graph - """, - 'author': 'OpenERP SA', - 'website': 'http://www.openerp.com', - 'depends': ['base'], - 'init_xml': [], - 'update_xml': ['base_module_doc_rst_view.xml', 'base_module_doc_rst_wizard.xml', 'module_report.xml'], - 'demo_xml': [], - 'installable': True, - 'certificate': '', -} - diff --git a/addons/hr_payroll/__openerp__.py b/addons/hr_payroll/__openerp__.py index b7886da2df0..ab814ed80c2 100644 --- a/addons/hr_payroll/__openerp__.py +++ b/addons/hr_payroll/__openerp__.py @@ -60,6 +60,7 @@ 'test/payslip.yml', 'test/payment_advice.yml', 'test/payroll_register.yml', + 'test/hr_payroll_report.yml', ], 'demo_xml': [ 'hr_payroll_demo.xml' diff --git a/addons/hr_payroll/test/hr_payroll_report.yml b/addons/hr_payroll/test/hr_payroll_report.yml new file mode 100644 index 00000000000..4d3fda41de7 --- /dev/null +++ b/addons/hr_payroll/test/hr_payroll_report.yml @@ -0,0 +1,19 @@ +- + In order to test the PDF reports defined on a HR Employee Salary, we will print a HR Employee Salary +- + !python {model: hr.employee}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.salary.structure').create(cr, uid, [ref('hr_payroll.hr_employee_bonamy0')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'hr_emp_salary_report.'+format), 'wb+').write(data) + +- + In order to test the PDF reports defined on a HR Payslip, we will print a HR Payslip +- + !python {model: hr.payslip}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.payslip.pdf').create(cr, uid, [ref('hr_payroll.hr_payslip_salaryslipofbonamyforjune0')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'hr_payslip_report.'+format), 'wb+').write(data) + (data, format) = netsvc.LocalService('report.payslip.pdf').create(cr, uid, [ref('hr_payroll.hr_payslip_salaryslipofbonamyforjune0')], {}, {}) + From 342d27536f000628e768c5f529fe08b02213d612 Mon Sep 17 00:00:00 2001 From: RME Date: Wed, 15 Sep 2010 17:51:50 +0530 Subject: [PATCH 003/125] [FIX] base_module_doc_rst : __openerp__ file added bzr revid: rme@rme-desktop-20100915122150-24iglp5i0rd2kc7l --- addons/base_module_doc_rst/__openerp__.py | 41 +++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 addons/base_module_doc_rst/__openerp__.py diff --git a/addons/base_module_doc_rst/__openerp__.py b/addons/base_module_doc_rst/__openerp__.py new file mode 100644 index 00000000000..8a7fe96b6bd --- /dev/null +++ b/addons/base_module_doc_rst/__openerp__.py @@ -0,0 +1,41 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2009 Tiny SPRL (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + +{ + 'name': 'Module Technical Guide in Restructured Text ', + 'version': '1.0', + 'category': 'Generic Modules/Base', + 'description': """ + * This module generate the Technical Guides of selected modules in Restructured Text format (RST) + * It uses the Sphinx (http://sphinx.pocoo.org) implementation of RST + * It creates a tarball (.tgz file suffix) containing an index file and one file per module + * Generate Relationship Graph + """, + 'author': 'OpenERP SA', + 'website': 'http://www.openerp.com', + 'depends': ['base'], + 'init_xml': [], + 'update_xml': ['base_module_doc_rst_view.xml', 'base_module_doc_rst_wizard.xml', 'module_report.xml'], + 'demo_xml': [], + 'installable': True, + 'certificate': '', +} + From 59d97f99ff944536217ac2ffa93d754e0754941a Mon Sep 17 00:00:00 2001 From: RME Date: Wed, 15 Sep 2010 17:59:58 +0530 Subject: [PATCH 004/125] [IMP] hr_expense : yml report test added bzr revid: rme@rme-desktop-20100915122958-99dz5gqeqppcq6as --- addons/hr_expense/__openerp__.py | 4 +++- addons/hr_expense/test/hr_expense_report.yml | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 addons/hr_expense/test/hr_expense_report.yml diff --git a/addons/hr_expense/__openerp__.py b/addons/hr_expense/__openerp__.py index aa45f4aa888..fe06b0110c2 100644 --- a/addons/hr_expense/__openerp__.py +++ b/addons/hr_expense/__openerp__.py @@ -55,7 +55,9 @@ 'demo_xml': [ 'hr_expense_demo.xml', ], - 'test': ['test/test_hr_expense.yml'], + 'test': ['test/test_hr_expense.yml', + 'test/hr_expense_report.yml', + ], 'installable': True, 'active': False, 'certificate': '0062479841789', diff --git a/addons/hr_expense/test/hr_expense_report.yml b/addons/hr_expense/test/hr_expense_report.yml new file mode 100644 index 00000000000..52a44e0dafb --- /dev/null +++ b/addons/hr_expense/test/hr_expense_report.yml @@ -0,0 +1,8 @@ +- + In order to test the PDF reports defined on a HR Expense, we will print a HR Expense +- + !python {model: hr.expense.expense}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.hr.expense').create(cr, uid, [ref('hr_expense.hr_expense_expense_septemberexpenses0'),ref('hr_expense.hr_expense_expense_septemberexpenses1')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'hr_expense_report.'+format), 'wb+').write(data) \ No newline at end of file From 67fe69cc61a622996d30b34d8a28508ec4071703 Mon Sep 17 00:00:00 2001 From: "DHS (OpenERP)" Date: Wed, 15 Sep 2010 18:04:52 +0530 Subject: [PATCH 005/125] [IMP] lunch,mrp,mrp_operations,mrp_repair : yml report test added bzr revid: dhs@tinyerp.com-20100915123452-odrbked6wcx0wg60 --- addons/lunch/__openerp__.py | 5 ++-- addons/lunch/test/lunch_report.yml | 8 ++++++ addons/mrp/__openerp__.py | 3 ++- addons/mrp/test/mrp_report.yml | 26 +++++++++++++++++++ addons/mrp_operations/__openerp__.py | 2 +- .../test/mrp_operations_report.yml | 17 ++++++++++++ addons/mrp_repair/__openerp__.py | 10 +++---- addons/mrp_repair/test/mrp_repair_report.yml | 8 ++++++ 8 files changed, 69 insertions(+), 10 deletions(-) create mode 100644 addons/lunch/test/lunch_report.yml create mode 100644 addons/mrp/test/mrp_report.yml create mode 100644 addons/mrp_operations/test/mrp_operations_report.yml create mode 100644 addons/mrp_repair/test/mrp_repair_report.yml diff --git a/addons/lunch/__openerp__.py b/addons/lunch/__openerp__.py index ab540ad10d3..2e5c2489339 100644 --- a/addons/lunch/__openerp__.py +++ b/addons/lunch/__openerp__.py @@ -49,9 +49,8 @@ 'report/report_lunch_order_view.xml', ], "demo_xml": ['lunch_demo.xml'], - "test": ['test/test_lunch.yml'], + "test": ['test/test_lunch.yml', 'test/lunch_report.yml'], "installable": True, } -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: - +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file diff --git a/addons/lunch/test/lunch_report.yml b/addons/lunch/test/lunch_report.yml new file mode 100644 index 00000000000..76214dfb599 --- /dev/null +++ b/addons/lunch/test/lunch_report.yml @@ -0,0 +1,8 @@ +- + In order to test the PDF reports defined on a lunch, we will print a lunch order +- + !python {model: lunch.order}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.lunch.order').create(cr, uid, [ref('lunch.lunch_order_0'),ref('lunch.lunch_order_1')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'lunch-lunch_order.'+format), 'wb+').write(data) diff --git a/addons/mrp/__openerp__.py b/addons/mrp/__openerp__.py index f8630065598..c56466501e0 100644 --- a/addons/mrp/__openerp__.py +++ b/addons/mrp/__openerp__.py @@ -92,7 +92,8 @@ 'test/mrp_packs.yml', 'test/mrp_phantom_bom.yml', 'test/mrp_production_order.yml', - + 'test/mrp_report.yml', + ], 'installable': True, 'active': False, diff --git a/addons/mrp/test/mrp_report.yml b/addons/mrp/test/mrp_report.yml new file mode 100644 index 00000000000..5c619e0b09d --- /dev/null +++ b/addons/mrp/test/mrp_report.yml @@ -0,0 +1,26 @@ +- + In order to test the PDF reports defined on a mrp, we will print a bom order +- + !python {model: mrp.bom}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.bom.structure').create(cr, uid, [ref('mrp.mrp_bom_0'),ref('mrp.mrp_bom_1'),ref('mrp.mrp_bom_2'),ref('mrp.mrp_bom_23'),ref('mrp.mrp_bom_1901'),ref('mrp.mrp_bom_assemblysection0'),ref('mrp.mrp_bom_sidepanel0'),ref('mrp.mrp_bom_defaultbomforshelfofcm1'),ref('mrp.mrp_bom_sidepanel3')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'mrp-bom_order.'+format), 'wb+').write(data) + +- + In order to test the PDF reports defined on a mrp, we will print a order +- + !python {model: mrp.production}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.mrp.production.order').create(cr, uid, [ref('mrp.mrp_production_mo1')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'mrp-production_order.'+format), 'wb+').write(data) + +- + In order to test the PDF reports defined on a mrp, we will print a (mrp)Product-price order +- + !python {model: product.product}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.product.price').create(cr, uid, [ref('product.product_product_0'), ref('product.product_product_pc2'), ref('product.product_product_cpu1'), ref('product.product_product_hdd1'), ref('product.product_product_fan'), ref('product.product_product_cpu1'), ref('product.product_product_ram512')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'mrp-production-price_order.'+format), 'wb+').write(data) diff --git a/addons/mrp_operations/__openerp__.py b/addons/mrp_operations/__openerp__.py index d4d5cf98d08..5170cc4c627 100644 --- a/addons/mrp_operations/__openerp__.py +++ b/addons/mrp_operations/__openerp__.py @@ -61,7 +61,7 @@ 'process/mrp_operation_process.xml' ], 'demo_xml': ['mrp_operation_data.xml'], - 'test': ['test/mrp_operations.yml'], + 'test': ['test/mrp_operations.yml', 'test/mrp_operations_report.yml'], 'installable': True, 'active': False, 'certificate': '0056233813133', diff --git a/addons/mrp_operations/test/mrp_operations_report.yml b/addons/mrp_operations/test/mrp_operations_report.yml new file mode 100644 index 00000000000..c83d077acde --- /dev/null +++ b/addons/mrp_operations/test/mrp_operations_report.yml @@ -0,0 +1,17 @@ +- + In order to test the PDF reports defined on a mrp operations, we will print a barcode +- + !python {model: mrp_operations.operation.code}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.mrp.code.barcode').create(cr, uid, [ref('mrp_operations.mrp_op_1'),ref('mrp_operations.mrp_op_2'),ref('mrp_operations.mrp_op_3'),ref('mrp_operations.mrp_op_4'),ref('mrp_operations.mrp_op_5')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'mrp_operations-barcoder.'+format), 'wb+').write(data) + +- + In order to test the PDF reports defined on a mrp operations, we will print a workcenters +- + !python {model: mrp.workcenter}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.mrp.wc.barcode').create(cr, uid, [ref('mrp.mrp_workcenter_0'),ref('mrp.mrp_workcenter_1')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'mrp_ workcenter.'+format), 'wb+').write(data) diff --git a/addons/mrp_repair/__openerp__.py b/addons/mrp_repair/__openerp__.py index c9a4068f925..4313ae1a062 100644 --- a/addons/mrp_repair/__openerp__.py +++ b/addons/mrp_repair/__openerp__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- ############################################################################## -# +# # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (). # @@ -15,7 +15,7 @@ # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# along with this program. If not, see . # ############################################################################## @@ -31,13 +31,13 @@ * Invoicing (products and/or services) * Warranty concept * Repair quotation report - * Notes for the technician and for the final customer + * Notes for the technician and for the final customer """, 'author': 'OpenERP SA', 'depends': ['mrp', 'sale', 'account'], 'update_xml': [ 'security/ir.model.access.csv', - 'mrp_repair_sequence.xml', + 'mrp_repair_sequence.xml', 'wizard/mrp_repair_cancel_view.xml', 'wizard/mrp_repair_make_invoice_view.xml', 'mrp_repair_view.xml', @@ -45,7 +45,7 @@ 'mrp_repair_report.xml', ], 'demo_xml': [], - 'test': ['test/test_mrp_repair.yml'], + 'test': ['test/test_mrp_repair.yml', 'test/mrp_repair_report.yml'], 'installable': True, 'active': False, 'certificate': '0060814381277', diff --git a/addons/mrp_repair/test/mrp_repair_report.yml b/addons/mrp_repair/test/mrp_repair_report.yml new file mode 100644 index 00000000000..b6eb782dcfe --- /dev/null +++ b/addons/mrp_repair/test/mrp_repair_report.yml @@ -0,0 +1,8 @@ +- + In order to test the PDF reports defined on a mrp-repair, we will print a order +- + !python {model: mrp.repair}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.repair.order').create(cr, uid, [ref('mrp_repair.mrp_repair_rma0')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'mrp-repair_order.'+format), 'wb+').write(data) From f27fd64c9bd6e68b2a43d6fdea4db17f93a50933 Mon Sep 17 00:00:00 2001 From: "JMA (OpenERP)" Date: Wed, 15 Sep 2010 18:07:15 +0530 Subject: [PATCH 006/125] [IMP] sale : yml test for report added bzr revid: jma@tinyerp.com-20100915123715-trcmdqutp9i34tcw --- addons/sale/__openerp__.py | 1 + addons/sale/test/sale_report.yml | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 addons/sale/test/sale_report.yml diff --git a/addons/sale/__openerp__.py b/addons/sale/__openerp__.py index 2bcb2f2d88f..eb108373201 100644 --- a/addons/sale/__openerp__.py +++ b/addons/sale/__openerp__.py @@ -80,6 +80,7 @@ 'test/invoice_on_ordered_qty.yml', 'test/invoice_on_shipped_qty.yml', 'test/sale_order_print.yml', + 'test/sale_report.yml', ], 'installable': True, 'active': False, diff --git a/addons/sale/test/sale_report.yml b/addons/sale/test/sale_report.yml new file mode 100644 index 00000000000..6453d52f658 --- /dev/null +++ b/addons/sale/test/sale_report.yml @@ -0,0 +1,8 @@ +- + In order to test the PDF reports defined on a sale order, we will print a report for sale prepare allot +- + !python {model: sale.order}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.sale.order.prepare.allot').create(cr, uid, [ref('sale.order'),ref('sale.order2'),ref('sale.order3')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'sale-sale_prepare_allot.'+format), 'wb+').write(data) \ No newline at end of file From 346dcab5edce3e3f365b936dbbb0d3b841915e10 Mon Sep 17 00:00:00 2001 From: RME Date: Wed, 15 Sep 2010 18:22:20 +0530 Subject: [PATCH 007/125] [IMP] acution : yml report test added bzr revid: rme@rme-desktop-20100915125220-7yvku6txipfi9xlo --- addons/auction/__openerp__.py | 4 +++- addons/auction/test/auction_report.yml | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 addons/auction/test/auction_report.yml diff --git a/addons/auction/__openerp__.py b/addons/auction/__openerp__.py index 69fef0748c4..7105102b385 100644 --- a/addons/auction/__openerp__.py +++ b/addons/auction/__openerp__.py @@ -59,7 +59,9 @@ ], 'demo_xml': ['auction_demo.xml','board_auction_demo.xml'], - 'test': ['test/auction.yml'], + 'test': ['test/auction.yml', + 'test/auction_report.yml', + ], 'installable': True, 'active': False, diff --git a/addons/auction/test/auction_report.yml b/addons/auction/test/auction_report.yml new file mode 100644 index 00000000000..6b4a4fe97ed --- /dev/null +++ b/addons/auction/test/auction_report.yml @@ -0,0 +1,17 @@ +- + In order to test the PDF reports defined on a Action Artist, we will print a Action Artist +- + !python {model: auction.lots}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.auction.artists').create(cr, uid, [ref('auction.auction_deposit_1_lot_1'),ref('auction.auction_deposit_1_lot_2')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'action_artist_report.'+format), 'wb+').write(data) + +- + In order to test the PDF reports defined on a Action Bid, we will print a Action Bid +- + !python {model: auction.lots}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.auction.bids').create(cr, uid, [ref('auction.auction_date_1_bid_3'),ref('auction.auction_date_1_bid_4')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'action_bid_report.'+format), 'wb+').write(data) \ No newline at end of file From 49787ee415ee57a82a114e63184511021f3c03ac Mon Sep 17 00:00:00 2001 From: "JMA (OpenERP)" Date: Wed, 15 Sep 2010 18:29:09 +0530 Subject: [PATCH 008/125] [IMP] stock : yml test for report added bzr revid: jma@tinyerp.com-20100915125909-73pmcxjgii1nhr00 --- addons/stock/__openerp__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/addons/stock/__openerp__.py b/addons/stock/__openerp__.py index e33e347d612..e961c49333a 100644 --- a/addons/stock/__openerp__.py +++ b/addons/stock/__openerp__.py @@ -74,7 +74,12 @@ Thanks to the double entry management, the inventory controlling is powerful and "security/ir.model.access.csv", "board_warehouse_view.xml" ], - 'test': ['test/stock_test.yml'], + 'test': ['test/stock_test.yml', + 'test/stock_inventory_move_report.yml', + 'test/stock_lot_location_report.yml', + 'test/stock_overview_report.yml', + 'test/stock_overviewall_report.yml' + ], 'installable': True, 'active': False, 'certificate': '0055421559965', From 47a8c0f1bb4f285a6cb2179d57c95940ceb57d2c Mon Sep 17 00:00:00 2001 From: "JMA (OpenERP)" Date: Wed, 15 Sep 2010 18:35:05 +0530 Subject: [PATCH 009/125] [IMP] stock : yml test for report added bzr revid: jma@tinyerp.com-20100915130505-j3ye9qdvvrjje6ec --- addons/stock/test/stock_inventory_move_report.yml | 8 ++++++++ addons/stock/test/stock_lot_location_report.yml | 8 ++++++++ addons/stock/test/stock_overview_report.yml | 8 ++++++++ addons/stock/test/stock_overviewall_report.yml | 8 ++++++++ 4 files changed, 32 insertions(+) create mode 100644 addons/stock/test/stock_inventory_move_report.yml create mode 100644 addons/stock/test/stock_lot_location_report.yml create mode 100644 addons/stock/test/stock_overview_report.yml create mode 100644 addons/stock/test/stock_overviewall_report.yml diff --git a/addons/stock/test/stock_inventory_move_report.yml b/addons/stock/test/stock_inventory_move_report.yml new file mode 100644 index 00000000000..a92db995427 --- /dev/null +++ b/addons/stock/test/stock_inventory_move_report.yml @@ -0,0 +1,8 @@ +- + In order to test the PDF reports defined on stock inventory, we will print a Stock Inventory Move report +- + !python {model: stock.inventory}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.stock.inventory.move').create(cr, uid, [ref('stock.stock_inventory_0')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'stock-stock_inventory_move.'+format), 'wb+').write(data) diff --git a/addons/stock/test/stock_lot_location_report.yml b/addons/stock/test/stock_lot_location_report.yml new file mode 100644 index 00000000000..d31bdf620d4 --- /dev/null +++ b/addons/stock/test/stock_lot_location_report.yml @@ -0,0 +1,8 @@ +- + In order to test the PDF reports defined on stock location, we will print a lot location report +- + !python {model: stock.location}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.lot.location').create(cr, uid, [ref('stock.stock_location_components')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'stock-stock_lot_location.'+format), 'wb+').write(data) diff --git a/addons/stock/test/stock_overview_report.yml b/addons/stock/test/stock_overview_report.yml new file mode 100644 index 00000000000..22d75625a63 --- /dev/null +++ b/addons/stock/test/stock_overview_report.yml @@ -0,0 +1,8 @@ +- + In order to test the PDF reports defined on a stock, we will print a Stock Overview report +- + !python {model: stock.location}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.lot.stock.overview').create(cr, uid, [ref('stock.stock_location_14')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'stock-overview'+format), 'wb+').write(data) diff --git a/addons/stock/test/stock_overviewall_report.yml b/addons/stock/test/stock_overviewall_report.yml new file mode 100644 index 00000000000..8f3bb61d044 --- /dev/null +++ b/addons/stock/test/stock_overviewall_report.yml @@ -0,0 +1,8 @@ +- + In order to test the PDF reports defined on a stock, we will print a Stock Overviewall(childs) report +- + !python {model: stock.location}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.lot.stock.overview_all').create(cr, uid, [ref('stock.stock_location_13')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'stock-overviewall'+format), 'wb+').write(data) From b0dfb8e3adc5c36df025970d8e25ff62fa580bc4 Mon Sep 17 00:00:00 2001 From: "Anup (OpenERP)" Date: Wed, 15 Sep 2010 19:55:39 +0530 Subject: [PATCH 010/125] [IMP] auction: added yml for report test bzr revid: ach@tinyerp.com-20100915142539-0ypa4adhrkpi91dz --- addons/account/test/account_report.yml | 1 - addons/auction/test/auction_report.yml | 90 ++++++++++++++++++++++++-- 2 files changed, 86 insertions(+), 5 deletions(-) diff --git a/addons/account/test/account_report.yml b/addons/account/test/account_report.yml index ae7424dc968..a883af0506c 100644 --- a/addons/account/test/account_report.yml +++ b/addons/account/test/account_report.yml @@ -2,7 +2,6 @@ In order to test the PDF reports defined on an invoice, we will print an invoice - !python {model: account.invoice}: | - print "aavoyuygugvyuvyug " import netsvc, tools, os (data, format) = netsvc.LocalService('report.account.invoice').create(cr, uid, [ref('account.test_invoice_1')], {}, {}) if tools.config['test_report_directory']: diff --git a/addons/auction/test/auction_report.yml b/addons/auction/test/auction_report.yml index 6b4a4fe97ed..4adbbae5fe9 100644 --- a/addons/auction/test/auction_report.yml +++ b/addons/auction/test/auction_report.yml @@ -1,5 +1,5 @@ - - In order to test the PDF reports defined on a Action Artist, we will print a Action Artist + In order to test the PDF reports defined on auction, we will print a Action Artist - !python {model: auction.lots}: | import netsvc, tools, os @@ -8,10 +8,92 @@ file(os.path.join(tools.config['test_report_directory'], 'action_artist_report.'+format), 'wb+').write(data) - - In order to test the PDF reports defined on a Action Bid, we will print a Action Bid + In order to test the PDF reports defined on auction, we will print a Action Bid - - !python {model: auction.lots}: | + !python {model: auction.bid}: | import netsvc, tools, os (data, format) = netsvc.LocalService('report.auction.bids').create(cr, uid, [ref('auction.auction_date_1_bid_3'),ref('auction.auction_date_1_bid_4')], {}, {}) if tools.config['test_report_directory']: - file(os.path.join(tools.config['test_report_directory'], 'action_bid_report.'+format), 'wb+').write(data) \ No newline at end of file + file(os.path.join(tools.config['test_report_directory'], 'action_bid_report.'+format), 'wb+').write(data) +- + In order to test the PDF reports defined on auction, we will print a Seller Form Report +- + !python {model: auction.lots}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.seller_form_report').create(cr, uid, [ref('auction.auction_date_1_bid_3'),ref('auction.auction_date_1_bid_4')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'seller_form_report.'+format), 'wb+').write(data) +- + In order to test the PDF reports defined on auction, we will print a lots list Report +- + !python {model: auction.lots}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.lots.list').create(cr, uid, [ref('auction.auction_date_1_bid_3'),ref('auction.auction_date_1_bid_4')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'lots_list_report.'+format), 'wb+').write(data) +- + In order to test the PDF reports defined on auction, we will print a lots inventory Report +- + !python {model: auction.lots}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.lots.list.inventory').create(cr, uid, [ref('auction.auction_date_1_bid_3'),ref('auction.auction_date_1_bid_4')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'lots_inventory_report.'+format), 'wb+').write(data) +- + In order to test the PDF reports defined on auction, we will print a deposit seller Report +- + !python {model: auction.lots}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.deposit.seller').create(cr, uid, [ref('auction.auction_date_1_bid_3'),ref('auction.auction_date_1_bid_4')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'deposit_seller_report.'+format), 'wb+').write(data) +- + In order to test the PDF reports defined on auction, we will print a catalog +- + !python {model: auction.dates}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.auction.cat_flagy').create(cr, uid, [ref('auction.auction_date_2')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'auction-catalog_list.'+format), 'wb+').write(data) +- + In order to test the PDF reports defined on auction, we will print buyer form report +- + !python {model: auction.lots}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.buyer_form_report').create(cr, uid, [ref('auction.auction_date_2')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'auction-buyer_form.'+format), 'wb+').write(data) +- + In order to test the PDF reports defined on auction, we will print bids phones report +- + !python {model: auction.lots}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.bids.phones.details').create(cr, uid, [ref('auction.auction_date_2')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'auction-bids_phones_details.'+format), 'wb+').write(data) +- + In order to test the PDF reports defined on a auction, we will print a Auction Total +- + !python {model: auction.lots}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.auction.total.rml').create(cr, uid, [ref('auction.auction_deposit_2_lot_1'),ref('auction.auction_deposit_2_lot_2')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'action_total_report.'+format), 'wb+').write(data) + +- + In order to test the PDF reports defined on a auction, we will print a Auction Result +- + !python {model: auction.lots}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.auction.result').create(cr, uid, [ref('auction.auction_deposit_3_lot_1'),ref('auction.auction_deposit_3_lot_2')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'action_result_report.'+format), 'wb+').write(data) + +- + In order to test the PDF reports defined on a auction, we will print a Auction Lot +- + !python {model: auction.lots}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.bids.lots').create(cr, uid, [ref('auction.auction_deposit_4_lot_1'),ref('auction.auction_deposit_4_lot_2')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'action_lot_report.'+format), 'wb+').write(data) \ No newline at end of file From e566a9d4a8cfe2e45f3f7aef4cb823f05db28b54 Mon Sep 17 00:00:00 2001 From: "JMA (OpenERP)" Date: Wed, 15 Sep 2010 20:34:37 +0530 Subject: [PATCH 011/125] [IMP] purchase : yml test for purchase & demo data added bzr revid: jma@tinyerp.com-20100915150437-qd4aaem5kkscselt --- addons/purchase/purchase_demo.xml | 58 ++++++++++++++++++++++++ addons/purchase/test/purchase_report.yml | 8 ++++ 2 files changed, 66 insertions(+) create mode 100644 addons/purchase/test/purchase_report.yml diff --git a/addons/purchase/purchase_demo.xml b/addons/purchase/purchase_demo.xml index 1168fd29679..f6c2931a626 100644 --- a/addons/purchase/purchase_demo.xml +++ b/addons/purchase/purchase_demo.xml @@ -1,6 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + 2010/09/15 + New server config + material + + + 150 + 5 + make_to_stock + + + + + 2010/09/15 + [PC1] Basic PC + + + 450 + 2 + 3 + 3 + make_to_stock + + + + + 2010/09/15 + [PC3] Medium PC + + + 900 + 1 + make_to_stock + + + + \ No newline at end of file diff --git a/addons/purchase/test/purchase_report.yml b/addons/purchase/test/purchase_report.yml new file mode 100644 index 00000000000..b98d1f212ac --- /dev/null +++ b/addons/purchase/test/purchase_report.yml @@ -0,0 +1,8 @@ +- + In order to test the PDF reports defined on a Purchase Order, we will print a Request Quotation report +- + !python {model: purchase.order}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.purchase.quotation').create(cr, uid, [ref('purchase.order_purchase1'),ref('purchase.order_purchase2')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'purchase-request_quotation'+format), 'wb+').write(data) From 95e87db51d6fa35365fe69f09b46604af30f044a Mon Sep 17 00:00:00 2001 From: "rch (Open ERP)" <> Date: Thu, 16 Sep 2010 10:32:08 +0530 Subject: [PATCH 012/125] [IMP]: In report 'Print Salary Structure' put currency symbol for appropriate amount type. bzr revid: rch_open_erp-20100916050208-cazwngr05kk0easc --- addons/hr_payroll/report/report_emp_salary_structure.py | 7 ++++++- addons/hr_payroll/report/report_emp_salary_structure.rml | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/addons/hr_payroll/report/report_emp_salary_structure.py b/addons/hr_payroll/report/report_emp_salary_structure.py index 0c63f446c38..d4365a8423b 100644 --- a/addons/hr_payroll/report/report_emp_salary_structure.py +++ b/addons/hr_payroll/report/report_emp_salary_structure.py @@ -36,7 +36,8 @@ class salary_structure_report(report_sxw.rml_parse): 'get_type':self.get_type, 'get_contract':self.get_contract, 'get_line_amount_type':self.get_line_amount_type, - 'get_line_type':self.get_line_type + 'get_line_type':self.get_line_type, + 'get_line_amount_symbol':self.get_line_amount_symbol }) def get_contract(self,emp): @@ -69,6 +70,10 @@ class salary_structure_report(report_sxw.rml_parse): else: return 'Fixed' + def get_line_amount_symbol(self,amount_type): + if amount_type != 'per': + return self.pool.get('res.users').browse(self.cr, self.uid,self.uid).company_id.currency_id.symbol + def get_line_type(self,type): if type == 'allounce': return 'Allowance' diff --git a/addons/hr_payroll/report/report_emp_salary_structure.rml b/addons/hr_payroll/report/report_emp_salary_structure.rml index 11bfee609f0..ee564052af3 100644 --- a/addons/hr_payroll/report/report_emp_salary_structure.rml +++ b/addons/hr_payroll/report/report_emp_salary_structure.rml @@ -441,7 +441,7 @@ [[ get_line_amount_type(line.amount_type) ]] - [[ formatLang(line.amount) or '']][[ employee.company_id.currency_id.symbol]] + [[ formatLang(line.amount) or '']][[ get_line_amount_symbol(line.amount_type) ]] [[ get_line_type(line.type) ]] From e983503c6653585154a7beeba39d90cbc33363a4 Mon Sep 17 00:00:00 2001 From: "Jay (OpenERP)" Date: Thu, 16 Sep 2010 11:10:15 +0530 Subject: [PATCH 013/125] [IMP] Account : Added yml test for aged partner balance report bzr revid: jvo@tinyerp.com-20100916054015-vqg00y3oa2uqglsx --- addons/account/test/account_report.yml | 32 +++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/addons/account/test/account_report.yml b/addons/account/test/account_report.yml index a883af0506c..639e571f674 100644 --- a/addons/account/test/account_report.yml +++ b/addons/account/test/account_report.yml @@ -5,12 +5,38 @@ import netsvc, tools, os (data, format) = netsvc.LocalService('report.account.invoice').create(cr, uid, [ref('account.test_invoice_1')], {}, {}) if tools.config['test_report_directory']: - file(os.path.join(tools.config['test_report_directory'], 'invoice.'+format), 'wb+').write(data) + file(os.path.join(tools.config['test_report_directory'], 'account-invoice.'+format), 'wb+').write(data) + - - In order to test the PDF reports defined on a partner, we will print a overdue report + In order to test the PDF reports defined on a partner, we will print the Overdue Report - !python {model: res.partner}: | import netsvc, tools, os (data, format) = netsvc.LocalService('report.account.overdue').create(cr, uid, [ref('base.res_partner_asus'),ref('base.res_partner_agrolait'),ref('base.res_partner_c2c'),ref('base.res_partner_sednacom'),ref('base.res_partner_thymbra'),ref('base.res_partner_desertic_hispafuentes'),ref('base.res_partner_tinyatwork'),ref('base.res_partner_2'),ref('base.res_partner_3'),ref('base.res_partner_4'),ref('base.res_partner_5'),ref('base.res_partner_6'),ref('base.res_partner_maxtor'),ref('base.res_partner_seagate'),ref('base.res_partner_8'),ref('base.res_partner_9'),ref('base.res_partner_10'),ref('base.res_partner_11'),ref('base.res_partner_14'),ref('base.res_partner_15'),ref('base.res_partner_accent')], {}, {}) if tools.config['test_report_directory']: - file(os.path.join(tools.config['test_report_directory'], 'overdue.'+format), 'wb+').write(data) \ No newline at end of file + file(os.path.join(tools.config['test_report_directory'], 'account-report_overdue.'+format), 'wb+').write(data) + +- + Print the Aged Partner Balance Report +- + !python {model: res.partner}: | + import netsvc, tools, os, time + import datetime + from mx.DateTime import * + start = datetime.date.fromtimestamp(time.mktime(time.strptime(time.strftime('%Y-%m-%d'), "%Y-%m-%d"))) + start = DateTime(int(start.year), int(start.month), int(start.day)) + res = {} + for i in range(5)[::-1]: + stop = start - RelativeDateTime(days=30) + res[str(i)] = { + 'name': (i!=0 and (str((5-(i+1)) * 30) + '-' + str((5-i) * 30)) or ('+'+str(4 * 30))), + 'stop': start.strftime('%Y-%m-%d'), + 'start': (i!=0 and stop.strftime('%Y-%m-%d') or False), + } + start = stop - RelativeDateTime(days=1) + data_dict = {'model': 'ir.ui.menu', 'form': {'initial_balance': 1, 'periods': [], 'page_split': 0, 'date_from': time.strftime('%Y-%m-%d'), 'period_length': 30, 'amount_currency': 0,'query_line' : 'True', 'id': 1,'result_selection': 'customer','direction_selection': 'past'}} + data_dict['form'].update(res) + (data, format) = netsvc.LocalService('report.account.aged_trial_balance').create(cr, uid, [], data_dict, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'account-aged_partner_balance.'+format), 'wb+').write(data) + \ No newline at end of file From a9c3dbcd3d1cea38e62737deb8c85bd5e347a334 Mon Sep 17 00:00:00 2001 From: "RME (OpenERP)" Date: Thu, 16 Sep 2010 11:18:00 +0530 Subject: [PATCH 014/125] [IMP] acution : yml report test added bzr revid: rme@tinyerp.com-20100916054800-jgtvkzc560qiu3eu --- addons/auction/test/auction_report.yml | 33 ++++++++++---------------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/addons/auction/test/auction_report.yml b/addons/auction/test/auction_report.yml index 4adbbae5fe9..4d5110c03a1 100644 --- a/addons/auction/test/auction_report.yml +++ b/addons/auction/test/auction_report.yml @@ -1,5 +1,5 @@ - - In order to test the PDF reports defined on auction, we will print a Action Artist + In order to test the PDF reports defined on auction, we will print a auction artist - !python {model: auction.lots}: | import netsvc, tools, os @@ -8,27 +8,20 @@ file(os.path.join(tools.config['test_report_directory'], 'action_artist_report.'+format), 'wb+').write(data) - - In order to test the PDF reports defined on auction, we will print a Action Bid + In order to test the PDF reports defined on auction, we will print a auction Bid - !python {model: auction.bid}: | import netsvc, tools, os (data, format) = netsvc.LocalService('report.auction.bids').create(cr, uid, [ref('auction.auction_date_1_bid_3'),ref('auction.auction_date_1_bid_4')], {}, {}) if tools.config['test_report_directory']: file(os.path.join(tools.config['test_report_directory'], 'action_bid_report.'+format), 'wb+').write(data) -- - In order to test the PDF reports defined on auction, we will print a Seller Form Report -- - !python {model: auction.lots}: | - import netsvc, tools, os - (data, format) = netsvc.LocalService('report.seller_form_report').create(cr, uid, [ref('auction.auction_date_1_bid_3'),ref('auction.auction_date_1_bid_4')], {}, {}) - if tools.config['test_report_directory']: - file(os.path.join(tools.config['test_report_directory'], 'seller_form_report.'+format), 'wb+').write(data) + - In order to test the PDF reports defined on auction, we will print a lots list Report - !python {model: auction.lots}: | import netsvc, tools, os - (data, format) = netsvc.LocalService('report.lots.list').create(cr, uid, [ref('auction.auction_date_1_bid_3'),ref('auction.auction_date_1_bid_4')], {}, {}) + (data, format) = netsvc.LocalService('report.lots.list').create(cr, uid, [ref('auction.auction_deposit_3_lot_1'),ref('auction.auction_deposit_3_lot_2')], {}, {}) if tools.config['test_report_directory']: file(os.path.join(tools.config['test_report_directory'], 'lots_list_report.'+format), 'wb+').write(data) - @@ -36,7 +29,7 @@ - !python {model: auction.lots}: | import netsvc, tools, os - (data, format) = netsvc.LocalService('report.lots.list.inventory').create(cr, uid, [ref('auction.auction_date_1_bid_3'),ref('auction.auction_date_1_bid_4')], {}, {}) + (data, format) = netsvc.LocalService('report.lots.list.inventory').create(cr, uid, [ref('auction.auction_deposit_4_lot_1'),ref('auction.auction_deposit_4_lot_2')], {}, {}) if tools.config['test_report_directory']: file(os.path.join(tools.config['test_report_directory'], 'lots_inventory_report.'+format), 'wb+').write(data) - @@ -44,7 +37,7 @@ - !python {model: auction.lots}: | import netsvc, tools, os - (data, format) = netsvc.LocalService('report.deposit.seller').create(cr, uid, [ref('auction.auction_date_1_bid_3'),ref('auction.auction_date_1_bid_4')], {}, {}) + (data, format) = netsvc.LocalService('report.deposit.seller').create(cr, uid, [ref('auction.auction_deposit_5_lot_1'),ref('auction.auction_deposit_5_lot_2')], {}, {}) if tools.config['test_report_directory']: file(os.path.join(tools.config['test_report_directory'], 'deposit_seller_report.'+format), 'wb+').write(data) - @@ -52,7 +45,7 @@ - !python {model: auction.dates}: | import netsvc, tools, os - (data, format) = netsvc.LocalService('report.auction.cat_flagy').create(cr, uid, [ref('auction.auction_date_2')], {}, {}) + (data, format) = netsvc.LocalService('report.auction.cat_flagy').create(cr, uid, [ref('auction.auction_date_1'),ref('auction.auction_date_2')], {}, {}) if tools.config['test_report_directory']: file(os.path.join(tools.config['test_report_directory'], 'auction-catalog_list.'+format), 'wb+').write(data) - @@ -60,7 +53,7 @@ - !python {model: auction.lots}: | import netsvc, tools, os - (data, format) = netsvc.LocalService('report.buyer_form_report').create(cr, uid, [ref('auction.auction_date_2')], {}, {}) + (data, format) = netsvc.LocalService('report.buyer_form_report').create(cr, uid, [ref('auction.auction_deposit_6_lot_1'),ref('auction.auction_deposit_6_lot_2')], {}, {}) if tools.config['test_report_directory']: file(os.path.join(tools.config['test_report_directory'], 'auction-buyer_form.'+format), 'wb+').write(data) - @@ -68,7 +61,7 @@ - !python {model: auction.lots}: | import netsvc, tools, os - (data, format) = netsvc.LocalService('report.bids.phones.details').create(cr, uid, [ref('auction.auction_date_2')], {}, {}) + (data, format) = netsvc.LocalService('report.bids.phones.details').create(cr, uid, [ref('auction.auction_deposit_7_lot_1'),ref('auction.auction_deposit_7_lot_2')], {}, {}) if tools.config['test_report_directory']: file(os.path.join(tools.config['test_report_directory'], 'auction-bids_phones_details.'+format), 'wb+').write(data) - @@ -76,7 +69,7 @@ - !python {model: auction.lots}: | import netsvc, tools, os - (data, format) = netsvc.LocalService('report.auction.total.rml').create(cr, uid, [ref('auction.auction_deposit_2_lot_1'),ref('auction.auction_deposit_2_lot_2')], {}, {}) + (data, format) = netsvc.LocalService('report.auction.total.rml').create(cr, uid, [ref('auction.auction_deposit_8_lot_1'),ref('auction.auction_deposit_8_lot_2')], {}, {}) if tools.config['test_report_directory']: file(os.path.join(tools.config['test_report_directory'], 'action_total_report.'+format), 'wb+').write(data) @@ -85,7 +78,7 @@ - !python {model: auction.lots}: | import netsvc, tools, os - (data, format) = netsvc.LocalService('report.auction.result').create(cr, uid, [ref('auction.auction_deposit_3_lot_1'),ref('auction.auction_deposit_3_lot_2')], {}, {}) + (data, format) = netsvc.LocalService('report.auction.result').create(cr, uid, [ref('auction.auction_deposit_9_lot_1'),ref('auction.auction_deposit_9_lot_2')], {}, {}) if tools.config['test_report_directory']: file(os.path.join(tools.config['test_report_directory'], 'action_result_report.'+format), 'wb+').write(data) @@ -94,6 +87,6 @@ - !python {model: auction.lots}: | import netsvc, tools, os - (data, format) = netsvc.LocalService('report.bids.lots').create(cr, uid, [ref('auction.auction_deposit_4_lot_1'),ref('auction.auction_deposit_4_lot_2')], {}, {}) + (data, format) = netsvc.LocalService('report.bids.lots').create(cr, uid, [ref('auction.auction_deposit_10_lot_1'),ref('auction.auction_deposit_10_lot_2')], {}, {}) if tools.config['test_report_directory']: - file(os.path.join(tools.config['test_report_directory'], 'action_lot_report.'+format), 'wb+').write(data) \ No newline at end of file + file(os.path.join(tools.config['test_report_directory'], 'action_lot_report.'+format), 'wb+').write(data) \ No newline at end of file From 7abe353b400d11aa82f15b887779f60b0f68e17a Mon Sep 17 00:00:00 2001 From: apa-tiny Date: Thu, 16 Sep 2010 12:39:34 +0530 Subject: [PATCH 015/125] Repair Order bzr revid: apa@tinyerp.com-20100916070934-cu8c2bls454bkwbr --- addons/mrp_repair/report/order.rml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/addons/mrp_repair/report/order.rml b/addons/mrp_repair/report/order.rml index dae2a25ec0e..d624eae4833 100644 --- a/addons/mrp_repair/report/order.rml +++ b/addons/mrp_repair/report/order.rml @@ -277,7 +277,7 @@ Unit Price - Price([[ o.pricelist_id.currency_id. name ]]) + Price([[ o.pricelist_id.currency_id. name ]]) @@ -307,9 +307,6 @@ - - - Fees Line(s) [[ (o.fees_lines ==[] and removeParentNode('para') ) ]]
[[ repeatIn(o.fees_lines,'fees') ]] From 66d97c275595919d6185d007c87422299f8116fc Mon Sep 17 00:00:00 2001 From: apa-tiny Date: Thu, 16 Sep 2010 12:52:40 +0530 Subject: [PATCH 016/125] planning bzr revid: apa@tinyerp.com-20100916072240-xp48j6fs03ueq0c0 --- addons/project_planning/report/report_planning.rml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/project_planning/report/report_planning.rml b/addons/project_planning/report/report_planning.rml index 8a6fe372661..43dab8eb5b4 100644 --- a/addons/project_planning/report/report_planning.rml +++ b/addons/project_planning/report/report_planning.rml @@ -142,7 +142,7 @@ - [[ repeatIn(o.planning_user_ids , 'u') ]] [[ formatLang(u.user_id.name ]] + [[ repeatIn(o.planning_user_ids , 'u') ]] [[ u.user_id.name ]] [[ formatLang(u.plan_tasks) ]] From 2f273455e3d666fffd52eed28aa0b3dc93bbc685 Mon Sep 17 00:00:00 2001 From: apa-tiny Date: Thu, 16 Sep 2010 14:00:44 +0530 Subject: [PATCH 017/125] account tqax code bzr revid: apa@tinyerp.com-20100916083044-kiino11qtsawkf2c --- addons/account/report/account_tax_code.rml | 179 ++++++++++----------- 1 file changed, 85 insertions(+), 94 deletions(-) diff --git a/addons/account/report/account_tax_code.rml b/addons/account/report/account_tax_code.rml index 35205440993..9c495dd4834 100644 --- a/addons/account/report/account_tax_code.rml +++ b/addons/account/report/account_tax_code.rml @@ -1,32 +1,8 @@ -