Merge lp:~openerp-dev/openobject-addons/7.0-opw-584846-port-nep into lp:openobject-addons/7.0
Proposed by
Nehal Panchal (OpenERP)
Status: | Work in progress |
---|---|
Proposed branch: | lp:~openerp-dev/openobject-addons/7.0-opw-584846-port-nep |
Merge into: | lp:openobject-addons/7.0 |
Diff against target: |
25 lines (+16/-0) 1 file modified
hr_payroll/hr_payroll.py (+16/-0) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/7.0-opw-584846-port-nep |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Naresh(OpenERP) (community) | Needs Fixing | ||
Review via email: mp+146080@code.launchpad.net |
Description of the change
Hello,
If you delete Payslip Batches, related payslips are not deleted.
This fixes the issue.
Thanks
To post a comment you must log in.
Unmerged revisions
- 8643. By Nehal Panchal (OpenERP)
-
[FIX] hr_payroll : While deleting Paylips Batches, related payslips are not deleted
Hi
@line 17: your are taking id's of payslips from browse_record instance and in the next line you are again browsing the same ids back :) you could simple iterate over batches.slip_ids
also as you have toremove=[] for batches you can have the same for payslips too and delete only those that are in draft state.