[FIX] account: context argument was missing from method signature

bzr revid: olt@tinyerp.com-20100222150724-o1dltc9hxc5hc3ek
This commit is contained in:
olt@tinyerp.com 2010-02-22 16:07:24 +01:00
parent e70f2f72f1
commit 222ab7cd11
1 changed files with 4 additions and 1 deletions

View File

@ -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))