projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
437116f
)
[FIX] hr: call hr_employee super's when unlinking
author
Richard Mathot
<rim@openerp.com>
Fri, 11 Jul 2014 09:30:29 +0000
(11:30 +0200)
committer
Richard Mathot
<rim@openerp.com>
Fri, 11 Jul 2014 09:41:17 +0000
(11:41 +0200)
Also fixes some weird inheritance bugs in upper versions
addons/hr/hr.py
patch
|
blob
|
history
diff --git
a/addons/hr/hr.py
b/addons/hr/hr.py
index
dbb20cc
..
d2a0d11
100644
(file)
--- a/
addons/hr/hr.py
+++ b/
addons/hr/hr.py
@@
-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):