summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorced <>2007-08-10 06:55:58 +0000
committerced <>2007-08-10 06:55:58 +0000
commitd442092a8d2ddeaf5ca2612107b826bb6abbe948 (patch)
treefab961648b2a8139ea5bb87cce152461f227fa5f
parentce86d2905ae00ecce0d1a78d9883768655fc23d6 (diff)
Fix override of create in account.analytic.account
Must keep the same variable name for default variable bzr revid: ced-74d3e5a4f856d43c6e19af78482e8308cda33035
-rw-r--r--addons/account/project/project.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/account/project/project.py b/addons/account/project/project.py
index 276bdbda680..9079309d5cf 100644
--- a/addons/account/project/project.py
+++ b/addons/account/project/project.py
@@ -176,11 +176,11 @@ class account_analytic_account(osv.osv):
(check_recursion, 'Error! You can not create recursive account.', ['parent_id'])
]
- def create(self, cr, uid, vals, ctx={}):
+ def create(self, cr, uid, vals, context=None):
parent_id = vals.get('parent_id', 0)
if ('code' not in vals or not vals['code']) and not parent_id:
vals['code'] = self.pool.get('ir.sequence').get(cr, uid, 'account.analytic.account')
- return super(account_analytic_account, self).create(cr, uid, vals, ctx)
+ return super(account_analytic_account, self).create(cr, uid, vals, context=context)
def copy(self, cr, uid, id, default=None, context={}):
if not default: