Fix Pylint warnings

This commit is contained in:
moylop260
2014-11-13 18:13:05 -06:00
committed by Matthieu Dietrich
parent b8bafa68ae
commit 2540f699b4
20 changed files with 41 additions and 42 deletions

View File

@@ -54,7 +54,7 @@ class AccountStatementCompletionRule(Model):
string="Account to set"),
}
def set_account(self, cr, uid, id, st_line, context=None):
def set_account(self, cr, uid, account_id, st_line, context=None):
"""
If line name match regex, update account_id
Then, call the generic st_line method to complete other values.
@@ -69,7 +69,7 @@ class AccountStatementCompletionRule(Model):
name = st_line['name']
res = {}
if name:
rule = self.browse(cr, uid, id, context=context)
rule = self.browse(cr, uid, account_id, context=context)
if re.match(rule.regex, name):
res['account_id'] = rule.account_id.id
return res