From 8c513eb7e5160986e1b700b6370b7939d2c089fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Thu, 16 May 2013 11:49:54 +0200 Subject: [PATCH] [FIX] project: correct model given to alias when creating a project. bzr revid: tde@openerp.com-20130516094954-4c6i6ql82xohm12r --- addons/project/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/project/project.py b/addons/project/project.py index 5bc09fcfefe..370cec98970 100644 --- a/addons/project/project.py +++ b/addons/project/project.py @@ -534,7 +534,7 @@ def Project(): if context is None: context = {} # Prevent double project creation when 'use_tasks' is checked + alias management - create_context = dict(context, project_creation_in_progress=True, alias_model_name=self._name) + create_context = dict(context, project_creation_in_progress=True, alias_model_name=vals.get('alias_model', 'project.task')) if vals.get('type', False) not in ('template', 'contract'): vals['type'] = 'contract'