[FIX] odex25_account_payment_fix: Fix bug

This commit is contained in:
younes 2025-11-13 11:22:24 +01:00
parent abbab6ece5
commit e17d7994a4
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class AccountPayment(models.Model):
# line.analytic_account_id = payment.analytic_account_id.id # line.analytic_account_id = payment.analytic_account_id.id
# return res # return res
def action_post(self): 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') self._check_permission('odex25_account_payment_fix.group_posted')
res = super(AccountPayment, self).action_post() res = super(AccountPayment, self).action_post()