diff --git a/addons/hr_payroll/hr_payroll.py b/addons/hr_payroll/hr_payroll.py
index 1f1689b531a..ccac759a04f 100644
--- a/addons/hr_payroll/hr_payroll.py
+++ b/addons/hr_payroll/hr_payroll.py
@@ -58,9 +58,9 @@ class hr_payroll_structure(osv.osv):
'name':fields.char('Name', size=256, required=True, readonly=False),
'code':fields.char('Code', size=64, required=True, readonly=False),
# 'line_ids':fields.one2many('hr.payslip.line', 'function_id', 'Salary Structure', required=False),
- 'company_id':fields.many2one('res.company', 'Company', required=False),
+ 'company_id':fields.many2one('res.company', 'Company', required=True),
'note': fields.text('Description'),
- 'parent_id':fields.many2one('hr.payroll.structure', 'Parent Structure'),
+ 'parent_id':fields.many2one('hr.payroll.structure', 'Parent'),
}
_defaults = {
'company_id': lambda self, cr, uid, context: \
@@ -336,8 +336,8 @@ class hr_salary_head(osv.osv):
_name = 'hr.salary.head'
_description = 'Salary Head'
_columns = {
- 'name':fields.char('Salary Head', size=64, required=True, readonly=False),
- 'code':fields.char('Salary Head Code', size=64, required=True, readonly=False),
+ 'name':fields.char('Name', size=64, required=True, readonly=False),
+ 'code':fields.char('Code', size=64, required=True, readonly=False),
'type':fields.many2one('hr.salary.head.type', 'Type', required=True, help="It is used only for the reporting purpose."),
'note': fields.text('Description'),
'user_id':fields.char('User', size=64, required=False, readonly=False),
@@ -1186,7 +1186,7 @@ class hr_payslip_line(osv.osv):
if category_id:
category = self.pool.get('hr.salary.head').browse(cr, uid, category_id)
res.update({
- 'sequence':category.sequence,
+# 'sequence':category.sequence,
'name':category.name,
'code':category.code,
'type':category.type.id
@@ -1208,7 +1208,7 @@ class hr_payslip_line(osv.osv):
'base':fields.char('Formula', size=1024, required=False, readonly=False),
'code':fields.char('Code', size=64, required=False, readonly=False),
'category_id':fields.many2one('hr.salary.head', 'Category', required=True),
- 'type':fields.many2one('hr.salary.head.type', 'Type', required=True),
+ 'type':fields.many2one('hr.salary.head.type', 'Type', required=True, help="Used for the reporting purpose."),
'amount_type':fields.selection([
('per','Percentage (%)'),
('fix','Fixed Amount'),
diff --git a/addons/hr_payroll/hr_payroll_data.xml b/addons/hr_payroll/hr_payroll_data.xml
index 4129b6b92e6..67811d4cc21 100644
--- a/addons/hr_payroll/hr_payroll_data.xml
+++ b/addons/hr_payroll/hr_payroll_data.xml
@@ -16,112 +16,112 @@
HRA
House Rent Allowance
-
+
CA
Conveyance Allowance
-
+
MA
Medical Allowance
-
+
TELA
Telephone Allowance
-
+
LTA
Leave Travel Allowance
-
+
NA
Newspaper Allowance
-
+
TA
Traveling Allowance
-
+
FA
Food Allowance
-
+
DA
Dearness Allowance
-
+
PF
Provident Fund
-
+
PT
Professional Tax
-
+
WF
Welfare
-
+
TDS
Tax Deduct at Source
-
+
LWP
Leave without pay
-
+
FC
Food Coupons
-
+
ESI
Employee's State Insurance
-
+
House Rent Allowance
+
@@ -24,6 +25,7 @@
Conveyance Allowance
+
@@ -35,6 +37,7 @@
Professional Tax
+
@@ -46,6 +49,7 @@
Provident Fund
+
@@ -68,8 +72,7 @@
-
+
-
@@ -397,6 +398,7 @@
id="menu_hr_salary_head"
action="action_hr_salary_head"
parent="payroll_configure"
+ sequence="11"
/>
@@ -537,6 +539,7 @@
id="menu_action_hr_contibution_register_form"
action="action_contibution_register_form"
parent="payroll_configure"
+ sequence="14"
/>
hr.contibution.register.line.form
@@ -594,7 +597,7 @@
-
+
@@ -603,11 +606,10 @@
+
+
-
-
-
@@ -643,7 +645,7 @@
-
+
@@ -677,7 +679,7 @@
-
+