[REF] account
bzr revid: mra@mra-laptop-20110104125706-e012272p1o523oaa
This commit is contained in:
parent
4c002629ee
commit
033ac07014
|
@ -51,7 +51,6 @@ class account_analytic_line(osv.osv):
|
|||
context = {}
|
||||
if context.get('from_date',False):
|
||||
args.append(['date', '>=', context['from_date']])
|
||||
|
||||
if context.get('to_date',False):
|
||||
args.append(['date','<=', context['to_date']])
|
||||
return super(account_analytic_line, self).search(cr, uid, args, offset, limit,
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
from osv import osv
|
||||
|
||||
"""Inherit res.currency to handle accounting date values when converting currencies"""
|
||||
|
||||
class res_currency_account(osv.osv):
|
||||
_inherit = "res.currency"
|
||||
|
||||
|
@ -41,4 +42,6 @@ class res_currency_account(osv.osv):
|
|||
rate = float(tot2)/float(tot1)
|
||||
return rate
|
||||
|
||||
res_currency_account()
|
||||
res_currency_account()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
Loading…
Reference in New Issue