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
=== modified file 'hr_payroll/hr_payroll.py'
--- hr_payroll/hr_payroll.py 2012-01-31 13:36:57 +0000
+++ hr_payroll/hr_payroll.py 2013-02-20 10:33:25 +0000
@@ -51,6 +51,7 @@
51 'note': fields.text('Description'),51 'note': fields.text('Description'),
52 'parent_id':fields.many2one('hr.payroll.structure', 'Parent'),52 'parent_id':fields.many2one('hr.payroll.structure', 'Parent'),
53 'children_ids':fields.one2many('hr.payroll.structure', 'parent_id', 'Children'),53 'children_ids':fields.one2many('hr.payroll.structure', 'parent_id', 'Children'),
54 'rule_ids':fields.many2many('hr.salary.rule', 'hr_structure_salary_rule_rel', 'struct_id', 'rule_id', 'Salary Rules'),
54 }55 }
5556
56 def _get_parent(self, cr, uid, context=None):57 def _get_parent(self, cr, uid, context=None):
@@ -946,15 +947,6 @@
946947
947hr_payslip_line()948hr_payslip_line()
948949
949class hr_payroll_structure(osv.osv):
950
951 _inherit = 'hr.payroll.structure'
952 _columns = {
953 'rule_ids':fields.many2many('hr.salary.rule', 'hr_structure_salary_rule_rel', 'struct_id', 'rule_id', 'Salary Rules'),
954 }
955
956hr_payroll_structure()
957
958class hr_employee(osv.osv):950class hr_employee(osv.osv):
959 '''951 '''
960 Employee952 Employee