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:
e9f015e
)
[FIX] hr : Fixes the problem on copy method of hr department object
author
Amit (OpenERP)
<amp@tinyerp.com>
Wed, 25 Apr 2012 07:24:09 +0000
(12:54 +0530)
committer
Amit (OpenERP)
<amp@tinyerp.com>
Wed, 25 Apr 2012 07:24:09 +0000
(12:54 +0530)
lp bug: https://launchpad.net/bugs/988165 fixed
bzr revid: amp@tinyerp.com-
20120425072409
-ohl0xr62lszadhnm
addons/hr/hr.py
patch
|
blob
|
history
diff --git
a/addons/hr/hr.py
b/addons/hr/hr.py
index
bd0c730
..
891da9d
100644
(file)
--- a/
addons/hr/hr.py
+++ b/
addons/hr/hr.py
@@
-283,7
+283,14
@@
class hr_department(osv.osv):
'manager_id': fields.many2one('hr.employee', 'Manager'),
'member_ids': fields.one2many('hr.employee', 'department_id', 'Members', readonly=True),
}
-
+
+ def copy(self, cr, uid, id, default=None, context=None):
+ if default is None:
+ default = {}
+ default = default.copy()
+ default.update({'member_ids': []})
+ return super(hr_department, self).copy(cr, uid, id, default, context=context)
+
hr_department()