From 43b3abd3e2046bb8db37a24fd68f3549ba4d8121 Mon Sep 17 00:00:00 2001 From: "Claire Bretton (clbr)" Date: Mon, 25 Sep 2023 09:19:28 +0200 Subject: [PATCH] [FIX] account: fix traceback on payment info button Steps to reproduce: 1. Accounting > Invoices > click any unpaid invoice 2. Register Payment (doesn't matter if it's full or not) 3. Click the info (i) button next to the "Paid on" below invoice lines -> Traceback Before the traceback the unreconciliation button available was not refreshing the view, which still appeared with "Paid on". We fix both problems at the same time. task-id:3516681 closes odoo/odoo#136383 Signed-off-by: Habib Ayob (ayh) --- .../src/components/account_payment_field/account_payment.xml | 2 +- .../components/account_payment_field/account_payment_field.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/account/static/src/components/account_payment_field/account_payment.xml b/addons/account/static/src/components/account_payment_field/account_payment.xml index 2fc8b32cee9..d627fd90a47 100644 --- a/addons/account/static/src/components/account_payment_field/account_payment.xml +++ b/addons/account/static/src/components/account_payment_field/account_payment.xml @@ -37,7 +37,7 @@ - + Paid on diff --git a/addons/account/static/src/components/account_payment_field/account_payment_field.js b/addons/account/static/src/components/account_payment_field/account_payment_field.js index 543031fce5a..c28cf1caa73 100644 --- a/addons/account/static/src/components/account_payment_field/account_payment_field.js +++ b/addons/account/static/src/components/account_payment_field/account_payment_field.js @@ -53,10 +53,10 @@ export class AccountPaymentField extends Component { }; } - onInfoClick(ev, idx) { + onInfoClick(ev, line) { this.popover.open(ev.currentTarget, { title: _t("Journal Entry Info"), - ...this.lines[idx], + ...line, _onRemoveMoveReconcile: this.removeMoveReconcile.bind(this), _onOpenMove: this.openMove.bind(this), });