diff options
| author | Ravish (Open ERP) <rmu@tinyerp.com> | 2013-05-16 10:44:37 +0530 |
|---|---|---|
| committer | Ravish (Open ERP) <rmu@tinyerp.com> | 2013-05-16 10:44:37 +0530 |
| commit | fa9f18359fccc836a460736d2d07fe9b9ba0463a (patch) | |
| tree | 24f77e99fd00eee9f8ed833b4ad45aee22f628a7 /addons/project_long_term/project_long_term.py | |
| parent | dd81c8f9c340ed78db09f3c9c0b273ad86faa056 (diff) | |
| parent | 1bb278384c4a3e6053a8f9072f4515d2e42d0455 (diff) | |
[merge] with lateset 7.0
bzr revid: rmu@tinyerp.com-20130516051437-1bdcjgxey3efpw31
Diffstat (limited to 'addons/project_long_term/project_long_term.py')
| -rw-r--r-- | addons/project_long_term/project_long_term.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/project_long_term/project_long_term.py b/addons/project_long_term/project_long_term.py index e53ff9ed253..109f0c03c6f 100644 --- a/addons/project_long_term/project_long_term.py +++ b/addons/project_long_term/project_long_term.py @@ -283,9 +283,11 @@ class account_analytic_account(osv.osv): res['value']['use_phases'] = template.use_phases return res + def _trigger_project_creation(self, cr, uid, vals, context=None): - res= super(account_analytic_account, self)._trigger_project_creation(cr, uid, vals, context=context) - return res or vals.get('use_phases') + 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_phases') and not 'project_creation_in_progress' in context) account_analytic_account() |
