Merge lp:~openerp-dev/openobject-addons/trunk-fix-1021130-duplicatepayroll-jco-tta into lp:openobject-addons

Proposed by Josse Colpaert (OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-fix-1021130-duplicatepayroll-jco-tta
Merge into: lp:openobject-addons
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/trunk-fix-1021130-duplicatepayroll-jco-tta
Reviewer Review Type Date Requested Status
qdp (OpenERP) Pending
Review via email: mp+158360@code.launchpad.net

Description of the change

Removed second definition of payroll structure class. It will avoid recursiveness of copy function.

To post a comment you must log in.

Unmerged revisions

8668. By Josse Colpaert (OpenERP)

[FIX] Only one class hr_payroll_structure in same file

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 2013-03-29 14:37:20 +0000
3+++ hr_payroll/hr_payroll.py 2013-04-11 13:00:33 +0000
4@@ -50,6 +50,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@@ -949,15 +950,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

Subscribers

People subscribed via source and target branches

to all changes: