Duplicating project must reset analytic account code, like duplicating an analytic account does; this is a workaround for bug lp:888315
lp bug: https://launchpad.net/bugs/888315 fixed bzr revid: stephane.bidoul@acsone.eu-20120829105645-vlzhsaihz76t572l
This commit is contained in:
@@ -272,6 +272,7 @@ class project(osv.osv):
|
||||
default = default or {}
|
||||
context['active_test'] = False
|
||||
default['state'] = 'open'
|
||||
default['code'] = False
|
||||
default['line_ids'] = []
|
||||
default['tasks'] = []
|
||||
proj = self.browse(cr, uid, id, context=context)
|
||||
|
||||
Reference in New Issue
Block a user