[IMP] improved copy method to do not copy employees related to job.
bzr revid: tpa@tinyerp.com-20131022064625-x6p0hro241dlz118
This commit is contained in:
parent
0a397f1afc
commit
c463ba221e
|
@ -157,6 +157,7 @@ class hr_job(osv.osv):
|
|||
def copy(self, cr, uid, id, default=None, context=None):
|
||||
if default is None:
|
||||
default = {}
|
||||
default.update({'employee_ids': []})
|
||||
job = self.browse(cr, uid, id, context=context)
|
||||
if not default.get('name', False):
|
||||
default.update(name=_("%s (copy)") % (job.name))
|
||||
|
|
Loading…
Reference in New Issue