From 0ddceaf77277c5268b948db097e59bb6d25e134b Mon Sep 17 00:00:00 2001 From: "Divyesh Makwana (Open ERP)" Date: Tue, 22 Nov 2011 17:47:04 +0530 Subject: [PATCH] [FIX] hr_payroll_account : payroll_account: On payslip confirmation it should write the period_id on employee payslip. lp bug: https://launchpad.net/bugs/893469 fixed bzr revid: mdi@tinyerp.com-20111122121704-0wzjivii1mm65mx9 --- addons/hr_payroll_account/hr_payroll_account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_payroll_account/hr_payroll_account.py b/addons/hr_payroll_account/hr_payroll_account.py index 3463713d37d..21e74da992c 100644 --- a/addons/hr_payroll_account/hr_payroll_account.py +++ b/addons/hr_payroll_account/hr_payroll_account.py @@ -171,7 +171,7 @@ class hr_payslip(osv.osv): line_ids.append(adjust_debit) move.update({'line_id': line_ids}) move_id = move_pool.create(cr, uid, move, context=context) - self.write(cr, uid, [slip.id], {'move_id': move_id}, context=context) + self.write(cr, uid, [slip.id], {'move_id': move_id, 'period_id' : period_id}, context=context) if slip.journal_id.entry_posted: move_pool.post(cr, uid, [move_id], context=context) return super(hr_payslip, self).process_sheet(cr, uid, [slip.id], context=context)