From 5b43b63c4d4a41c2bb96c6c48ca4030d5899e7e3 Mon Sep 17 00:00:00 2001 From: "Jay (Open ERP)" Date: Mon, 15 Jun 2009 12:48:29 +0530 Subject: [PATCH] [FIX] Account : Correction of search method arguements of account.analytic.line lp bug: https://launchpad.net/bugs/387029 fixed bzr revid: jvo@tinyerp.com-20090615071829-3cgnxn60204p72ag --- addons/account/account_analytic_line.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/account_analytic_line.py b/addons/account/account_analytic_line.py index f9e09ba78ab..a6552d490c2 100644 --- a/addons/account/account_analytic_line.py +++ b/addons/account/account_analytic_line.py @@ -50,7 +50,7 @@ class account_analytic_line(osv.osv): _order = 'date' - def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None): + def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False): if context is None: context = {} @@ -61,7 +61,7 @@ class account_analytic_line(osv.osv): args.append(['date','<=',context['to_date']]) return super(account_analytic_line, self).search(cr, uid, args, offset, limit, - order, context=context) + order, context=context, count=count) def _check_company(self, cr, uid, ids): lines = self.browse(cr, uid, ids)