From cbcd0bfb8ba25a5ee5f52bd6d07c773f00b06141 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 18 Mar 2010 18:20:14 +0100 Subject: [PATCH] Remove ids from on_change* calls --- account.py | 3 +-- line.py | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) 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'],