account: add round to pay wizard for comparaison
bzr revid: ced-8930837c93b21a205fa48f1ce9f22f10fd61075a
This commit is contained in:
parent
ba31e00dee
commit
bc08263dca
|
@ -63,7 +63,7 @@ def _trans_reconcile(self, cr, uid, data, context):
|
|||
def _wo_check(self, cr, uid, data, context):
|
||||
pool = pooler.get_pool(cr.dbname)
|
||||
invoice = pool.get('account.invoice').browse(cr, uid, data['id'], context)
|
||||
if data['form']['amount'] == invoice.amount_total:
|
||||
if round(data['form']['amount'], 2) == round(invoice.amount_total, 2):
|
||||
return 'reconcile'
|
||||
return 'addendum'
|
||||
|
||||
|
|
Loading…
Reference in New Issue