[FIX] project_issue: incorrect override was causing double project creation
bzr revid: odo@openerp.com-20120823115218-nxbq3gk2d96seccc
This commit is contained in:
parent
1ebf187ddf
commit
816852490e
|
@ -580,8 +580,9 @@ class account_analytic_account(osv.osv):
|
|||
return res
|
||||
|
||||
def _trigger_project_creation(self, cr, uid, vals, context=None):
|
||||
if context is None: context = {}
|
||||
res = super(account_analytic_account, self)._trigger_project_creation(cr, uid, vals, context=context)
|
||||
return res or vals.get('use_issues')
|
||||
return res or (vals.get('use_issues') and not 'project_creation_in_progress' in context)
|
||||
|
||||
account_analytic_account()
|
||||
|
||||
|
|
Loading…
Reference in New Issue