From 033ac07014826130127622646f64d3364fbfe89b Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Tue, 4 Jan 2011 18:27:06 +0530 Subject: [PATCH] [REF] account bzr revid: mra@mra-laptop-20110104125706-e012272p1o523oaa --- addons/account/account_analytic_line.py | 1 - addons/account/res_currency.py | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/addons/account/account_analytic_line.py b/addons/account/account_analytic_line.py index b59df303170..54e0af4ee26 100755 --- a/addons/account/account_analytic_line.py +++ b/addons/account/account_analytic_line.py @@ -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, diff --git a/addons/account/res_currency.py b/addons/account/res_currency.py index 6ec404edcf4..8c9c6a8b103 100755 --- a/addons/account/res_currency.py +++ b/addons/account/res_currency.py @@ -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() \ No newline at end of file +res_currency_account() + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file