diff --git a/account_payment_order/__manifest__.py b/account_payment_order/__manifest__.py index 8e120e389..c1a6756dc 100644 --- a/account_payment_order/__manifest__.py +++ b/account_payment_order/__manifest__.py @@ -9,7 +9,7 @@ { "name": "Account Payment Order", - "version": "15.0.1.1.0", + "version": "15.0.1.1.1", "license": "AGPL-3", "author": "ACSONE SA/NV, " "Therp BV, " diff --git a/account_payment_order/models/account_payment.py b/account_payment_order/models/account_payment.py index 22f71b2d5..e01f83da8 100644 --- a/account_payment_order/models/account_payment.py +++ b/account_payment_order/models/account_payment.py @@ -20,7 +20,7 @@ class AccountPayment(models.Model): pay.payment_type ).filtered(lambda x: not x.payment_method_id.payment_order_only) ) - to_exclude = self._get_payment_method_codes_to_exclude() + to_exclude = pay._get_payment_method_codes_to_exclude() if to_exclude: pay.available_payment_method_line_ids = ( pay.available_payment_method_line_ids.filtered(