[FIX] project: correct model given to alias when creating a project.

bzr revid: tde@openerp.com-20130516094954-4c6i6ql82xohm12r
This commit is contained in:
Thibault Delavallée 2013-05-16 11:49:54 +02:00
parent 71f9cda381
commit 8c513eb7e5
1 changed files with 1 additions and 1 deletions

View File

@ -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'