[MERGE] trunk-bug-988165-amp, hr departement copy
lp bug: https://launchpad.net/bugs/988165 fixed bzr revid: abo@openerp.com-20120910170202-tf7qrdusu86dbs1m
This commit is contained in:
commit
9444872152
|
@ -289,8 +289,12 @@ class hr_department(osv.osv):
|
|||
'member_ids': fields.one2many('hr.employee', 'department_id', 'Members', readonly=True),
|
||||
}
|
||||
|
||||
hr_department()
|
||||
|
||||
def copy(self, cr, uid, ids, default=None, context=None):
|
||||
if default is None:
|
||||
default = {}
|
||||
default = default.copy()
|
||||
default['member_ids'] = []
|
||||
return super(hr_department, self).copy(cr, uid, ids, default, context=context)
|
||||
|
||||
class res_users(osv.osv):
|
||||
_name = 'res.users'
|
||||
|
|
Loading…
Reference in New Issue