[FIX]Journal entry for rule which is not in payslip lines is created.
authorKhushboo Bhatt (Open ERP) <kbh@tinyerp.com>
Thu, 21 Jun 2012 06:38:00 +0000 (12:08 +0530)
committerKhushboo Bhatt (Open ERP) <kbh@tinyerp.com>
Thu, 21 Jun 2012 06:38:00 +0000 (12:08 +0530)
bzr revid: kbh@tinyerp.com-20120621063800-0nhf399uaf1nbdmw

addons/hr_payroll_account/hr_payroll_account.py

index a022cac..cfd35c7 100644 (file)
@@ -107,7 +107,7 @@ class hr_payslip(osv.osv):
                 'journal_id': slip.journal_id.id,
                 'period_id': period_id,
             }
-            for line in slip.line_ids:
+            for line in slip.details_by_salary_rule_category:
                 amt = slip.credit_note and -line.total or line.total
                 partner_id = False
                 debit_account_id = line.salary_rule_id.account_debit.id