From a181497d66286f250cb56e4306c7a568e5f475ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Wed, 29 Aug 2012 12:56:45 +0200 Subject: [PATCH] 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 --- addons/project/project.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/project/project.py b/addons/project/project.py index 5e1b80cccb3..c2c2e8f5d15 100644 --- a/addons/project/project.py +++ b/addons/project/project.py @@ -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)