← Back to team overview

openerp-india team mailing list archive

[Bug 1237601] Re: [6.1/7.0/trunk] hr_payroll_account doesn't update all slips in method process_sheet

 

Hello Aristobulo,

I think the code is correct because process_sheet method is a workflow method it will be called when you compute the slip.
There are a two way to generate the payslip and compute it. You can use the employee payslip menu and create payslip then compute it. Here you can only compute the sheet only for one record which is the selected payslip and its pass as a slip.id which is correct, Also we dnt have a facility to compute the multiple payslip together from this menu.

2nd option which is payslip batches. Which has generate payslip button
it will create the payslip and compute it. I have tried with the
multiple payslip there and its also working fine.

Would you please provide the use-case where you have faced the problem?

Thanks and waiting for your reply!

-- 
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


References