From 2107896d225ee1044bffb5b1b71fdff34bd8fe6d Mon Sep 17 00:00:00 2001 From: Arthur Maniet Date: Mon, 5 Jan 2015 15:13:20 +0100 Subject: [PATCH] [FIX] account: bank reconciliation widget: a currency amount was not rounded Fixes #4450 --- addons/account/static/src/js/account_widgets.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/account/static/src/js/account_widgets.js b/addons/account/static/src/js/account_widgets.js index 68934e114c7..7d930db40fd 100644 --- a/addons/account/static/src/js/account_widgets.js +++ b/addons/account/static/src/js/account_widgets.js @@ -1447,6 +1447,8 @@ openerp.account = function (instance) { line_created_being_edited[index].amount = Math.round(val.amount*rounding)/rounding; line_created_being_edited[index].amount_str = self.formatCurrency(Math.abs(val.amount), val.currency_id); } + if (val.amount_with_tax) + line_created_being_edited[index].amount_with_tax = Math.round(val.amount_with_tax*rounding)/rounding; }); self.set("line_created_being_edited", line_created_being_edited); self.createdLinesChanged(); // TODO For some reason, previous line doesn't trigger change handler