From e48d4bb85f49cebf52484d9f0bd31262c731b454 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Mon, 5 Dec 2016 13:51:58 +0100 Subject: [PATCH] [FIX] account: tax_ids in function prepareCreatedMoveLinesForPersisting For the field "tax_ids", a command must be written in the the returned dictionary. In this way, the ids of the tax will be set on the account move line. opw:689806 --- addons/account/static/src/js/account_reconciliation_widgets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/static/src/js/account_reconciliation_widgets.js b/addons/account/static/src/js/account_reconciliation_widgets.js index 92e6cd6f3da..dbbb55bddb1 100644 --- a/addons/account/static/src/js/account_reconciliation_widgets.js +++ b/addons/account/static/src/js/account_reconciliation_widgets.js @@ -1068,7 +1068,7 @@ var abstractReconciliationLine = Widget.extend({ var amount = line.tax_id ? line.amount_before_tax: line.amount; dict['credit'] = (amount > 0 ? amount : 0); dict['debit'] = (amount < 0 ? -1 * amount : 0); - if (line.tax_id) dict['tax_ids'] = [line.tax_id]; + if (line.tax_id) dict['tax_ids'] = [[4, line.tax_id, null]]; if (line.analytic_account_id) dict['analytic_account_id'] = line.analytic_account_id; return dict; });