From 222ab7cd116bfbee0f4f7b0bb80bd8239a89e863 Mon Sep 17 00:00:00 2001 From: "olt@tinyerp.com" <> Date: Mon, 22 Feb 2010 16:07:24 +0100 Subject: [PATCH] [FIX] account: context argument was missing from method signature bzr revid: olt@tinyerp.com-20100222150724-o1dltc9hxc5hc3ek --- addons/account/account_move_line.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py index 9470c6fc01e..8355cf6be3c 100644 --- a/addons/account/account_move_line.py +++ b/addons/account/account_move_line.py @@ -283,7 +283,10 @@ class account_move_line(osv.osv): result.append((line.id, line.name)) return result - def _balance_search(self, cursor, user, obj, name, args): + def _balance_search(self, cursor, user, obj, name, args, domain=None, context=None): + if context is None: + context = {} + if not len(args): return [] where = ' and '.join(map(lambda x: '(abs(sum(debit-credit))'+x[1]+str(x[2])+')',args))