From 2fdd2000e604584fa486696ea8fc4bf670f1e95f Mon Sep 17 00:00:00 2001 From: "PSI(OpenERP)" <> Date: Tue, 3 Aug 2010 12:11:46 +0530 Subject: [PATCH] [IMP] hr related modules bzr revid: mra@mra-laptop-20100803064146-1tlbgy3huwxfer4e --- .../report/hr_evaluation_report_view.xml | 2 +- .../report/hr_expense_report_view.xml | 2 +- .../report/available_holidays_view.xml | 4 +- .../report/hr_holidays_report_view.xml | 2 +- addons/hr_payroll/hr_payroll_view.xml | 117 +++++++++--------- .../report/report_emp_salary_structure.py | 2 +- .../report/report_emp_salary_structure.rml | 39 +++--- addons/hr_timesheet/hr_timesheet_view.xml | 2 +- .../report/hr_timesheet_report_view.xml | 2 +- .../report/timesheet_report_view.xml | 2 +- 10 files changed, 87 insertions(+), 87 deletions(-) diff --git a/addons/hr_evaluation/report/hr_evaluation_report_view.xml b/addons/hr_evaluation/report/hr_evaluation_report_view.xml index b4ab2743c0b..bb50e30c9be 100644 --- a/addons/hr_evaluation/report/hr_evaluation_report_view.xml +++ b/addons/hr_evaluation/report/hr_evaluation_report_view.xml @@ -58,7 +58,7 @@ help = "Final Validation Evaluations"/> - + diff --git a/addons/hr_expense/report/hr_expense_report_view.xml b/addons/hr_expense/report/hr_expense_report_view.xml index 71187ef0726..942c7f13316 100644 --- a/addons/hr_expense/report/hr_expense_report_view.xml +++ b/addons/hr_expense/report/hr_expense_report_view.xml @@ -72,7 +72,7 @@ - + diff --git a/addons/hr_holidays/report/available_holidays_view.xml b/addons/hr_holidays/report/available_holidays_view.xml index 205e8ce31ed..0b9f91e37dc 100644 --- a/addons/hr_holidays/report/available_holidays_view.xml +++ b/addons/hr_holidays/report/available_holidays_view.xml @@ -58,9 +58,9 @@ - + - diff --git a/addons/hr_holidays/report/hr_holidays_report_view.xml b/addons/hr_holidays/report/hr_holidays_report_view.xml index e25a7487e51..d38aceeeeb9 100644 --- a/addons/hr_holidays/report/hr_holidays_report_view.xml +++ b/addons/hr_holidays/report/hr_holidays_report_view.xml @@ -62,7 +62,7 @@ - + - @@ -77,7 +76,7 @@ - + All Passports hr.passport @@ -87,12 +86,12 @@ - + hr.hr.employee.view.form2 @@ -208,7 +207,7 @@ - + hr.employee.passport.form hr.employee @@ -221,7 +220,7 @@ - + hr.contract.view.form @@ -274,7 +273,7 @@ - + hr.payroll.structure.tree @@ -310,20 +309,20 @@ - + Salary Structure hr.payroll.structure form - - + hr.holidays.status.inherit @@ -348,7 +347,7 @@ - + hr.payslip.line.tree @@ -434,7 +433,7 @@ - + hr.payslip.form hr.payslip @@ -465,21 +464,21 @@ - + - + - + - + @@ -538,7 +537,7 @@ - + Employee Payslip hr.payslip @@ -547,9 +546,9 @@ - - - + + + hr.allounce.deduction.categoty.form @@ -618,7 +617,7 @@ - + Salary Heads hr.allounce.deduction.categoty @@ -626,13 +625,13 @@ - - + company.contribution.form @@ -716,7 +715,7 @@ - + Company Contributions company.contribution @@ -724,13 +723,13 @@ - - + @@ -776,7 +775,7 @@ - + hr.payroll.advice.tree hr.payroll.advice @@ -790,7 +789,7 @@ - + hr.payroll.advice.form hr.payroll.advice @@ -840,12 +839,12 @@ tree,form - - + hr.payroll.register.tree hr.payroll.register @@ -921,12 +920,12 @@ form tree,form - - + @@ -961,10 +960,10 @@ - + - - + + @@ -993,9 +992,9 @@ hr.contibution.register.line.form @@ -1005,15 +1004,15 @@
- - + + - - + +
- + hr.payslip.line.condition.tree hr.payslip.line.condition @@ -1022,7 +1021,7 @@
- + diff --git a/addons/hr_payroll/report/report_emp_salary_structure.py b/addons/hr_payroll/report/report_emp_salary_structure.py index 8d0b1333dfe..0c63f446c38 100644 --- a/addons/hr_payroll/report/report_emp_salary_structure.py +++ b/addons/hr_payroll/report/report_emp_salary_structure.py @@ -42,7 +42,7 @@ class salary_structure_report(report_sxw.rml_parse): def get_contract(self,emp): curr_date = "'"+time.strftime("%Y-%m-%d")+"'" sql_req= ''' - SELECT c.id as id, c.wage as wage, function as function + SELECT c.id as id, c.wage as wage, struct_id as struct FROM hr_contract c LEFT JOIN hr_employee emp on (c.employee_id=emp.id) LEFT JOIN hr_contract_wage_type cwt on (cwt.id = c.wage_type_id) diff --git a/addons/hr_payroll/report/report_emp_salary_structure.rml b/addons/hr_payroll/report/report_emp_salary_structure.rml index 18211b254f3..d5864beb675 100644 --- a/addons/hr_payroll/report/report_emp_salary_structure.rml +++ b/addons/hr_payroll/report/report_emp_salary_structure.rml @@ -185,14 +185,14 @@ - + - + - - + + @@ -202,8 +202,8 @@ - - + + @@ -218,10 +218,10 @@ - - - - + + + + @@ -230,16 +230,16 @@ - - - - + + + + - - + + + - [[repeatIn(objects,'employee')]] @@ -308,7 +308,7 @@ Designation - [[ cont.function.name or '' ]] + [[ cont.job_id.name or '' ]] Phone No. @@ -427,7 +427,7 @@
- [[repeatIn(cont.function.line_ids,'line')]] + [[repeatIn(cont.struct_id.line_ids,'line')]] @@ -550,3 +550,4 @@ + diff --git a/addons/hr_timesheet/hr_timesheet_view.xml b/addons/hr_timesheet/hr_timesheet_view.xml index d612706257f..9f8100cd184 100644 --- a/addons/hr_timesheet/hr_timesheet_view.xml +++ b/addons/hr_timesheet/hr_timesheet_view.xml @@ -52,7 +52,7 @@ - + diff --git a/addons/hr_timesheet_sheet/report/hr_timesheet_report_view.xml b/addons/hr_timesheet_sheet/report/hr_timesheet_report_view.xml index 8ab227a1870..4515215e4a1 100644 --- a/addons/hr_timesheet_sheet/report/hr_timesheet_report_view.xml +++ b/addons/hr_timesheet_sheet/report/hr_timesheet_report_view.xml @@ -58,7 +58,7 @@ - + diff --git a/addons/hr_timesheet_sheet/report/timesheet_report_view.xml b/addons/hr_timesheet_sheet/report/timesheet_report_view.xml index 0a4aaf1dbf3..cff67ddca5e 100644 --- a/addons/hr_timesheet_sheet/report/timesheet_report_view.xml +++ b/addons/hr_timesheet_sheet/report/timesheet_report_view.xml @@ -76,7 +76,7 @@ - +