[IMP] set number instead of amount in breadcum.
bzr revid: jar@tinyerp.com-20140421052858-aoko0dogh3gz0s17
This commit is contained in:
parent
3452694885
commit
0c38696de3
|
@ -189,7 +189,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')
|
||||
|
|
Loading…
Reference in New Issue