Merge lp:~savoirfairelinux-openerp/openobject-addons/6.1-fix-1085522 into lp:openobject-addons/6.1

Status: Needs review
Proposed branch: lp:~savoirfairelinux-openerp/openobject-addons/6.1-fix-1085522
Merge into: lp:openobject-addons/6.1
Diff against target: 12 lines (+1/-1)
1 file modified
hr_payroll_account/hr_payroll_account.py (+1/-1)
To merge this branch: bzr merge lp:~savoirfairelinux-openerp/openobject-addons/6.1-fix-1085522
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+137589@code.launchpad.net

Commit message

[MRG] Generate accounting entry line for all payslip lines

To post a comment you must log in.

Unmerged revisions

7091. By Maxime Chambreuil (http://www.savoirfairelinux.com)

[FIX] Generate accounting entry line for all payslip lines

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hr_payroll_account/hr_payroll_account.py'
2--- hr_payroll_account/hr_payroll_account.py 2011-12-19 16:54:40 +0000
3+++ hr_payroll_account/hr_payroll_account.py 2012-12-03 15:07:22 +0000
4@@ -107,7 +107,7 @@
5 'journal_id': slip.journal_id.id,
6 'period_id': period_id,
7 }
8- for line in slip.line_ids:
9+ for line in slip.details_by_salary_rule_category:
10 amt = slip.credit_note and -line.total or line.total
11 partner_id = False
12 debit_account_id = line.salary_rule_id.account_debit.id