From 9353d19a7839bca44e7db8fc919499e82529581e Mon Sep 17 00:00:00 2001 From: ced <> Date: Tue, 20 Nov 2007 07:30:23 +0000 Subject: [PATCH] Fix search count Do no more use the context as it is propagated to all sub level. bzr revid: ced-30c42fd467584fd3ce325ee11ed17645585fb720 --- addons/account/account.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/addons/account/account.py b/addons/account/account.py index 177c01ef015..58b00208482 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -126,7 +126,10 @@ class account_account(osv.osv): _name = "account.account" _description = "Account" - def search(self, cr, uid, args, offset=0, limit=None, order=None, context={}): + def search(self, cr, uid, args, offset=0, limit=None, order=None, + context=None, count=False): + if context is None: + context = {} pos = 0 while pos