From 95e87db51d6fa35365fe69f09b46604af30f044a Mon Sep 17 00:00:00 2001 From: "rch (Open ERP)" <> Date: Thu, 16 Sep 2010 10:32:08 +0530 Subject: [PATCH 01/14] [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 7abe353b400d11aa82f15b887779f60b0f68e17a Mon Sep 17 00:00:00 2001 From: apa-tiny Date: Thu, 16 Sep 2010 12:39:34 +0530 Subject: [PATCH 02/14] 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 03/14] 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 04/14] 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 @@ -