From cc5639bbace0e2bb87b481de170fc6695451a039 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Mon, 11 Jul 2011 18:05:49 +0200 Subject: [PATCH] [IMP] usaiblity improvements bzr revid: qdp-launchpad@openerp.com-20110711160549-n2rgb060zuo51g65 --- addons/hr_contract/hr_contract_view.xml | 2 +- addons/hr_payroll/hr_payroll.py | 3 +-- addons/hr_payroll/hr_payroll_view.xml | 10 ++++------ 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/addons/hr_contract/hr_contract_view.xml b/addons/hr_contract/hr_contract_view.xml index ec3d21e092a..a341684aa55 100644 --- a/addons/hr_contract/hr_contract_view.xml +++ b/addons/hr_contract/hr_contract_view.xml @@ -163,7 +163,7 @@ - + diff --git a/addons/hr_payroll/hr_payroll.py b/addons/hr_payroll/hr_payroll.py index 5970767690c..cdf6549fedd 100644 --- a/addons/hr_payroll/hr_payroll.py +++ b/addons/hr_payroll/hr_payroll.py @@ -769,7 +769,7 @@ class hr_salary_rule(osv.osv): 'amount_python_compute':fields.text('Python Code'), 'amount_percentage_base':fields.char('Percentage based on',size=1024, required=False, readonly=False, help='result will be affected to a variable'), 'child_ids':fields.one2many('hr.salary.rule', 'parent_rule_id', 'Child Salary Rule'), - 'register_id':fields.many2one('hr.contribution.register', 'Contribution Register', help="Contribution register for the rule"), + 'register_id':fields.many2one('hr.contribution.register', 'Contribution Register', help="Eventual third party involved in the salary payment of the employees."), 'input_ids': fields.one2many('hr.rule.input', 'input_id', 'Inputs'), 'note':fields.text('Description'), } @@ -918,7 +918,6 @@ class hr_payslip_line(osv.osv): 'contract_id':fields.many2one('hr.contract', 'Contract', required=True), 'amount': fields.float('Amount', digits_compute=dp.get_precision('Payroll')), 'quantity': fields.float('Quantity', digits_compute=dp.get_precision('Payroll')), - 'company_contrib': fields.float('Company Contribution', readonly=True, digits_compute=dp.get_precision('Payroll')), 'total': fields.function(_calculate_total, method=True, type='float', string='Total', digits_compute=dp.get_precision('Payroll'),store=True ), } diff --git a/addons/hr_payroll/hr_payroll_view.xml b/addons/hr_payroll/hr_payroll_view.xml index f5fea89f3d9..31802c2d4ce 100644 --- a/addons/hr_payroll/hr_payroll_view.xml +++ b/addons/hr_payroll/hr_payroll_view.xml @@ -44,7 +44,8 @@ - + + @@ -125,7 +126,7 @@ id="menu_hr_employee_function" action="action_view_hr_employee_grade_form" parent="payroll_configure" - sequence="13" + sequence="1" /> @@ -169,10 +170,6 @@ - - - - @@ -491,6 +488,7 @@ Contribution Registers hr.contribution.register form + A contribution register is a third party involved in the salary payment of the employees. It can be the social security, the estate or anyone that collect or inject money on payslips.