From 2ebe698dbd1ca6d5e285b9858079076d55f28413 Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Tue, 5 Oct 2010 13:18:59 +0530 Subject: [PATCH] [FIX] account voucher report: Remove all warnings from genereated by automated test bzr revid: mra@mra-laptop-20101005074859-cbf4uzfwobvlnzpr --- addons/account/report/account_voucher_print.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/addons/account/report/account_voucher_print.py b/addons/account/report/account_voucher_print.py index db43ea0f50a..7901fd31f6a 100644 --- a/addons/account/report/account_voucher_print.py +++ b/addons/account/report/account_voucher_print.py @@ -35,13 +35,11 @@ class report_voucher_move(report_sxw.rml_parse): 'debit':self.debit, 'credit':self.credit, }) - self.user=uid + self.user = uid def convert(self, amount): user_id = self.pool.get('res.users').browse(self.cr, self.user, [self.user])[0] - cur = user_id.company_id.currency_id.name - amt_en = amount_to_text_en.amount_to_text(amount, 'en', cur); - return amt_en + return amount_to_text_en.amount_to_text(amount, 'en', user_id.company_id.currency_id.name) def get_title(self, voucher): title = ''