From e17d7994a453f2d783e2f18a25959faa91d8f8db Mon Sep 17 00:00:00 2001 From: younes Date: Thu, 13 Nov 2025 11:22:24 +0100 Subject: [PATCH] [FIX] odex25_account_payment_fix: Fix bug --- .../odex25_account_payment_fix/models/account_payment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odex25_accounting/odex25_account_payment_fix/models/account_payment.py b/odex25_accounting/odex25_account_payment_fix/models/account_payment.py index 0e6bbc8f8..b985cf0a2 100644 --- a/odex25_accounting/odex25_account_payment_fix/models/account_payment.py +++ b/odex25_accounting/odex25_account_payment_fix/models/account_payment.py @@ -66,7 +66,7 @@ class AccountPayment(models.Model): # line.analytic_account_id = payment.analytic_account_id.id # return res def action_post(self): - if self.payment_type == 'outbound': + if self.filtered(lambda p: p.payment_type == 'outbound'): self._check_permission('odex25_account_payment_fix.group_posted') res = super(AccountPayment, self).action_post()