From 72bf1b7909d22256b5b9768fdb6891ba84e64ebb Mon Sep 17 00:00:00 2001 From: "ARA(OpenERP)" <> Date: Wed, 29 Sep 2010 13:28:36 +0530 Subject: [PATCH] [IMP] Account voucher: Name get of voucher should return amount with two digits bzr revid: mra@mra-laptop-20100929075836-df6miqdr722w0gs9 --- addons/account_voucher/account_voucher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account_voucher/account_voucher.py b/addons/account_voucher/account_voucher.py index 191d3f8..4230ec5 100644 --- a/addons/account_voucher/account_voucher.py +++ b/addons/account_voucher/account_voucher.py @@ -109,7 +109,7 @@ class account_voucher(osv.osv): def name_get(self, cr, uid, ids, context=None): if not len(ids): return [] - return [(r['id'], (str(r['amount']) or '')) for r in self.read(cr, uid, ids, ['amount'], context, load='_classic_write')] + return [(r['id'], (str("%.2f" % r['amount']) or '')) for r in self.read(cr, uid, ids, ['amount'], context, load='_classic_write')] def fields_view_get(self, cr, uid, view_id=None, view_type=False, context=None, toolbar=False, submenu=False): res = super(account_voucher,self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar, submenu=submenu) -- 1.7.10.4