[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
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user