From 1d0987e954e376d3f457c61d23978c7782a40c93 Mon Sep 17 00:00:00 2001 From: "Guewen Baconnier @ Camptocamp" Date: Thu, 20 Dec 2012 14:41:45 +0100 Subject: [PATCH] [FIX] standardize the naming of the argument 'uid' instead of 'user' --- account_statement_ext/statement.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/account_statement_ext/statement.py b/account_statement_ext/statement.py index 6bb2743c..b77e77ca 100644 --- a/account_statement_ext/statement.py +++ b/account_statement_ext/statement.py @@ -465,16 +465,16 @@ class AccountBankSatementLine(Model): """ _inherit = "account.bank.statement.line" - def _get_period(self, cr, user, context=None): + def _get_period(self, cr, uid, context=None): """ Return a period from a given date in the context. """ date = context.get('date', None) - periods = self.pool.get('account.period').find(cr, user, dt=date) + periods = self.pool.get('account.period').find(cr, uid, dt=date) return periods and periods[0] or False - def _get_default_account(self, cr, user, context=None): - return self.get_values_for_line(cr, user, context=context)['account_id'] + def _get_default_account(self, cr, uid, context=None): + return self.get_values_for_line(cr, uid, context=context)['account_id'] _columns = { # Set them as required + 64 char instead of 32