[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
This commit is contained in:
parent
f19fb3fa5b
commit
5b43b63c4d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue