Merge pull request #5400 from expsa/kch_dev_odex25_accounting

[FIX] odex25_account_payment_fix: Fix bug
This commit is contained in:
kchyounes19 2025-11-13 11:24:10 +01:00 committed by GitHub
commit 822021a17b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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
# 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()