[FIX] project: correct model given to alias when creating a project.
bzr revid: tde@openerp.com-20130516094954-4c6i6ql82xohm12r
This commit is contained in:
parent
71f9cda381
commit
8c513eb7e5
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue