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)