From 67bb5d05dfba5c9dab2027db734c7cea3e78fdbf Mon Sep 17 00:00:00 2001 From: Ahmed AlBoori Date: Sat, 2 Mar 2024 06:11:36 +0300 Subject: [PATCH] Use positional argument when applying account receivable rule The ModelView.button decorator is expected first positional argument to be named records so we can not use keyword argument in this case. Closes #13063 (grafted from d860272ff5b1f8e707cc29a358c288e7a83dbe70) --HG-- branch : 7.0 --- modules/account_receivable_rule/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/account_receivable_rule/account.py b/modules/account_receivable_rule/account.py index 16749994e3..36d1cf6a51 100644 --- a/modules/account_receivable_rule/account.py +++ b/modules/account_receivable_rule/account.py @@ -416,4 +416,4 @@ class Statement(metaclass=PoolMeta): for statement in statements: for line in statement.lines: rules.update(line.account.receivable_rules) - Rule.apply(rules=Rule.browse(rules)) + Rule.apply(Rule.browse(rules))