Divyesh Makwana(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-893469-mdi into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #893469 in OpenERP Addons: "payroll_account: On payslip confirmation it
should write the period_id on employee payslip."
https://bugs.launchpad.net/openobject-addons/+bug/893469
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-893469-mdi/+merge/83006
Hello Sir,
I have fix the issue: https://bugs.launchpad.net/openobject-addons/+bug/893469
"payroll_account: On payslip confirmation it should write the period_id on
employee payslip".
Thanks and Regards,
Divyesh Makwana(MDI)
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-893469-mdi/+merge/83006
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-893469-mdi.
=== modified file 'hr_payroll_account/hr_payroll_account.py'
--- hr_payroll_account/hr_payroll_account.py 2011-11-17 19:14:55 +0000
+++ hr_payroll_account/hr_payroll_account.py 2011-11-22 12:22:27 +0000
@@ -171,7 +171,7 @@
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)
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp