Remove ids from on_change* calls

This commit is contained in:
Cédric Krier committed 2010-03-18 18:20:14 +01:00
1 parent 463bd8076a
commit cbcd0bfb8b
2 files changed
+3 -6

No files matched your search

+1 -2
View File
@@ -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'],
+2 -4
View File
@@ -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'],