Skip to content
Snippets Groups Projects
Commit 117a26ba authored by Richard Mathot's avatar Richard Mathot
Browse files

[FIX] hr: call hr_employee super's when unlinking

Also fixes some weird inheritance bugs in upper versions
parent 437116f3
Branches
Tags
No related merge requests found
......@@ -234,6 +234,7 @@ class hr_employee(osv.osv):
resource_ids = []
for employee in self.browse(cr, uid, ids, context=context):
resource_ids.append(employee.resource_id.id)
super(hr_employee, self).unlink(cr, uid, ids, context=context)
return self.pool.get('resource.resource').unlink(cr, uid, resource_ids, context=context)
def onchange_address_id(self, cr, uid, ids, address, context=None):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment