diff --git a/account.py b/account.py index 7a84719067..c8004c4ff0 100644 --- a/account.py +++ b/account.py @@ -104,8 +104,7 @@ class Account(ModelSQL, ModelView): def default_mandatory(self, cursor, user, context=None): return False - def on_change_with_currency_digits(self, cursor, user, ids, vals, - context=None): + def on_change_with_currency_digits(self, cursor, user, vals, context=None): currency_obj = self.pool.get('currency.currency') if vals.get('currency'): currency = currency_obj.browse(cursor, user, vals['currency'], diff --git a/line.py b/line.py index aca15894a9..345090639b 100644 --- a/line.py +++ b/line.py @@ -63,8 +63,7 @@ class Line(ModelSQL, ModelView): def default_active(self, cursor, user, context=None): return True - def on_change_with_currency(self, cursor, user, ids, vals, - context=None): + def on_change_with_currency(self, cursor, user, vals, context=None): move_line_obj = self.pool.get('account.move.line') if vals.get('move_line'): move_line = move_line_obj.browse(cursor, user, vals['move_line'], @@ -78,8 +77,7 @@ class Line(ModelSQL, ModelView): res[line.id] = line.move_line.account.company.currency.id return res - def on_change_with_currency_digits(self, cursor, user, ids, vals, - context=None): + def on_change_with_currency_digits(self, cursor, user, vals, context=None): move_line_obj = self.pool.get('account.move.line') if vals.get('move_line'): move_line = move_line_obj.browse(cursor, user, vals['move_line'],