From 59265a5f4a0c4705ca66cd2d48ec66e7b015c67a Mon Sep 17 00:00:00 2001 From: Paramjit Singh Sahota Date: Tue, 11 Dec 2012 15:59:55 +0530 Subject: [PATCH] [IMP] Improved code for Invoice payment: after registering payment, the 'Customer Payment' takes as its name the 'amount' field. It should take the 'number' field instead (something similar to BNK2/2012/0001 if it's a bank payment) The same name should also appear in the breadcrumb. bzr revid: psa@tinyerp.com-20121211102955-yx9eok9q6tdt7ne6 --- 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 ffc7cf1769d..d171dd27319 100644 --- a/addons/account_voucher/account_voucher.py +++ b/addons/account_voucher/account_voucher.py @@ -165,7 +165,7 @@ class account_voucher(osv.osv): if not ids: return [] if context is None: context = {} - return [(r['id'], (str("%.2f" % r['amount']) or '')) for r in self.read(cr, uid, ids, ['amount'], context, load='_classic_write')] + return [(r['id'], (r['number']) or '') for r in self.read(cr, uid, ids, ['number'], context, load='_classic_write')] def fields_view_get(self, cr, uid, view_id=None, view_type=False, context=None, toolbar=False, submenu=False): mod_obj = self.pool.get('ir.model.data')