openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #25969
[Bug 1237601] [NEW] [6.1/7.0/trunk] hr_payroll_account doesn't update all slips in method process_sheet
Public bug reported:
In method process_sheet after creating all account.moves when
super(hr_payslip, self).process_sheet(...) is invoked [slid.id] is sent
instead of ids, by doing this only the last record of hr.payslip objects
is updated and set to {'paid': True, 'state': 'done'}.
So, if you are working with a list of hr.payslip only the last one is
going to be done, and the rest will be stuck at state: 'draft'.
This is an error.
You can check it in:
[trunk] http://bazaar.launchpad.net/~openerp/openobject-addons/trunk/view/head:/hr_payroll_account/hr_payroll_account.py#L188
[7.0] http://bazaar.launchpad.net/~openerp/openobject-addons/7.0/view/head:/hr_payroll_account/hr_payroll_account.py#L190
[6.1] http://bazaar.launchpad.net/~openerp/openobject-addons/6.1/view/head:/hr_payroll_account/hr_payroll_account.py#L188
** Affects: openobject-addons
Importance: Undecided
Status: New
** Tags: batch hr payroll payslip
** Patch added: "Patch to fix ids param"
https://bugs.launchpad.net/bugs/1237601/+attachment/3869723/+files/hr_payroll_account.diff
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1237601
Title:
[6.1/7.0/trunk] hr_payroll_account doesn't update all slips in method
process_sheet
Status in OpenERP Addons (modules):
New
Bug description:
In method process_sheet after creating all account.moves when
super(hr_payslip, self).process_sheet(...) is invoked [slid.id] is
sent instead of ids, by doing this only the last record of hr.payslip
objects is updated and set to {'paid': True, 'state': 'done'}.
So, if you are working with a list of hr.payslip only the last one is
going to be done, and the rest will be stuck at state: 'draft'.
This is an error.
You can check it in:
[trunk] http://bazaar.launchpad.net/~openerp/openobject-addons/trunk/view/head:/hr_payroll_account/hr_payroll_account.py#L188
[7.0] http://bazaar.launchpad.net/~openerp/openobject-addons/7.0/view/head:/hr_payroll_account/hr_payroll_account.py#L190
[6.1] http://bazaar.launchpad.net/~openerp/openobject-addons/6.1/view/head:/hr_payroll_account/hr_payroll_account.py#L188
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1237601/+subscriptions
Follow ups
References