Merge PR #412 into 14.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2021-10-30 16:16:04 +00:00

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) {