Fix on which value the value regex is matched

This commit is contained in:
Téo Goddet
2021-10-30 16:36:36 +02:00
parent 3f109516f5
commit 78dbb724d9

View File

@@ -1598,7 +1598,7 @@ odoo.define("account.ReconciliationModel", function (require) {
amount = (line.balance.amount * values.amount) / 100; amount = (line.balance.amount * values.amount) / 100;
break; break;
case "regex": case "regex":
var matching = line.st_line.name.match( var matching = line.st_line.payment_ref.match(
new RegExp(values.amount_string) new RegExp(values.amount_string)
); );
if (matching && matching.length == 2) { if (matching && matching.length == 2) {