Merge lp:~openerp-dev/openobject-addons/6.1-opw-581655-ado into lp:openobject-addons/6.1

Proposed by Rifakat Husen (OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-581655-ado
Merge into: lp:openobject-addons/6.1
Diff against target: 27 lines (+1/-9)
1 file modified
hr_payroll/hr_payroll.py (+1/-9)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-581655-ado
Reviewer Review Type Date Requested Status
Naresh(OpenERP) Pending
Review via email: mp+149519@code.launchpad.net

Description of the change

Solved maximum recursion problem while duplicating salary structure.

To post a comment you must log in.

Unmerged revisions

7057. By Amit Dodiya<email address hidden>

[FIX] Max recurstion depth error while duplicating the salary structure

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hr_payroll/hr_payroll.py'
2--- hr_payroll/hr_payroll.py 2012-01-31 13:36:57 +0000
3+++ hr_payroll/hr_payroll.py 2013-02-20 10:33:25 +0000
4@@ -51,6 +51,7 @@
5 'note': fields.text('Description'),
6 'parent_id':fields.many2one('hr.payroll.structure', 'Parent'),
7 'children_ids':fields.one2many('hr.payroll.structure', 'parent_id', 'Children'),
8+ 'rule_ids':fields.many2many('hr.salary.rule', 'hr_structure_salary_rule_rel', 'struct_id', 'rule_id', 'Salary Rules'),
9 }
10
11 def _get_parent(self, cr, uid, context=None):
12@@ -946,15 +947,6 @@
13
14 hr_payslip_line()
15
16-class hr_payroll_structure(osv.osv):
17-
18- _inherit = 'hr.payroll.structure'
19- _columns = {
20- 'rule_ids':fields.many2many('hr.salary.rule', 'hr_structure_salary_rule_rel', 'struct_id', 'rule_id', 'Salary Rules'),
21- }
22-
23-hr_payroll_structure()
24-
25 class hr_employee(osv.osv):
26 '''
27 Employee