projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
66afff1
)
[Fix]: As a project/user, try to create a project from the project field of the task...
author
Tejas Tank
<tta@openerp.com>
Mon, 19 Nov 2012 10:15:18 +0000
(15:45 +0530)
committer
Tejas Tank
<tta@openerp.com>
Mon, 19 Nov 2012 10:15:18 +0000
(15:45 +0530)
bzr revid: tta@openerp.com-
20121119101518
-wgxpkgbtp6ba3dx5
addons/project/project.py
patch
|
blob
|
history
diff --git
a/addons/project/project.py
b/addons/project/project.py
index
9c28fad
..
afe507c
100644
(file)
--- a/
addons/project/project.py
+++ b/
addons/project/project.py
@@
-532,7
+532,7
@@
def Project():
# Prevent double project creation when 'use_tasks' is checked!
context = dict(context, project_creation_in_progress=True)
mail_alias = self.pool.get('mail.alias')
- if not vals.get('alias_id'):
+ if not vals.get('alias_id') and vals.get('name', False):
vals.pop('alias_name', None) # prevent errors during copy()
alias_id = mail_alias.create_unique_alias(cr, uid,
# Using '+' allows using subaddressing for those who don't