[FIX]l10n_be: use float instead of string for amont in vat_intra reports

bzr revid: mat@openerp.com-20130809122237-sym8vi6a24h0p2fc
This commit is contained in:
Martin Trigaux 2013-08-09 14:22:37 +02:00
parent d471d9af62
commit 7773de66fe
1 changed files with 2 additions and 2 deletions

View File

@ -202,11 +202,11 @@ class partner_vat_intra(osv.osv_memory):
'vatnum': row['vat'][2:].replace(' ','').upper(),
'vat': row['vat'],
'country': row['vat'][:2],
'amount': '%.2f' % amt,
'amount': round(amt,2),
'intra_code': row['intra_code'],
'code': intra_code})
xmldict.update({'dnum': dnum, 'clientnbr': str(seq), 'amountsum': '%.2f' % amount_sum, 'partner_wo_vat': p_count})
xmldict.update({'dnum': dnum, 'clientnbr': str(seq), 'amountsum': round(amount_sum,2), 'partner_wo_vat': p_count})
return xmldict
def create_xml(self, cursor, user, ids, context=None):