Merge lp:~openerp-dev/openobject-addons/trunk-bug-1085787-rma into lp:openobject-addons
Proposed by
Randhir Mayatra (OpenERP)
Status: | Rejected |
---|---|
Rejected by: | Victor Tabuenca (OpenERP) |
Proposed branch: | lp:~openerp-dev/openobject-addons/trunk-bug-1085787-rma |
Merge into: | lp:openobject-addons |
Diff against target: |
12 lines (+1/-1) 1 file modified
hr/hr.py (+1/-1) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1085787-rma |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Victor Tabuenca (OpenERP) (community) | Disapprove | ||
Review via email: mp+137781@code.launchpad.net |
Description of the change
Hello Sir,
I have fix the problem of delete employee in hr.
Thank you.
To post a comment you must log in.
Unmerged revisions
- 8193. By Randhir Mayatra (OpenERP)
-
[FIX] solve the error while delete employee in hr
Looking to the method's code: cascade' )
- I think it doesn't make sense to test the existence of the required field 'resource_id') and,
- the definition of the field 'resource_id' ('ondelete=
In my opinion, unlinking the resource should be enough (just let the RDBS to do its job).
Although the patch kind of fixes the bug, because it returns before the call to unlink an employee already deleted by the RDBS (calling super is the cause of the traceback), I think it's more appropriate to fix the method's code in a more suitable manner.
I reject the proposal.