[FIX] account_reconciliation_widget: fix JS crash when there are not taxes

This commit is contained in:
Alexis de Lattre
2022-08-08 22:58:41 +02:00
parent 5875616665
commit fc104aabc6

View File

@@ -601,6 +601,7 @@ odoo.define("account.ReconciliationRenderer", function (require) {
}
if (fieldName === "tax_ids") {
if (
state.createForm[fieldName] === undefined ||
!state.createForm[fieldName].length ||
state.createForm[fieldName].length > 1
) {