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:
Stéphane Bidoul
2012-08-29 12:56:45 +02:00
parent cc632e1c9b
commit a181497d66
+1
View File
@@ -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)