From bed0a1123320a0988f00e99cb36af80771b60798 Mon Sep 17 00:00:00 2001 From: "Maximilien (malb)" Date: Wed, 13 Dec 2023 09:43:26 +0100 Subject: [PATCH] [FIX] accounting: cheat sheet reconcile Before this commit, when doing the reconciliation of the table present in the cheat sheet, the second reconciliation was wrong because the "Invoice 1" should be reconciled with the twos partials payment. This Pr correct that by changing the find parameter to target the partials also. closes odoo/documentation#6918 Task: 3633468 Signed-off-by: Antoine Vandevenne (anv) --- static/js/reconciliation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/reconciliation.js b/static/js/reconciliation.js index 38158caf2..0b3410df4 100644 --- a/static/js/reconciliation.js +++ b/static/js/reconciliation.js @@ -26,7 +26,7 @@ state = operations[state](); }).appendTo($rec); - var $1 = $rec.find('td:contains("Invoice 1"), td:contains("Payment 1")') + var $1 = $rec.find('td:contains("Invoice 1"), td:contains("Partial payment 1/2"), td:contains("Partial payment 2/2")') .parent() .addClass('invoice1'); var $2 = $rec.find('td:contains("Invoice 2"), td:contains("Payment 2")')