Merge pull request #3653 from expsa/fix-bug-accounting

clear cache 2
This commit is contained in:
ahmed-nouri051 2025-06-26 14:29:54 +02:00 committed by GitHub
commit 4f97bf6ae7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -52,7 +52,9 @@ class AccountPayment(models.Model):
if self.payment_type == 'outbound':
self._check_permission('odex25_account_payment_fix.group_posted')
res = super(AccountPayment, self).action_post()
self.env.invalidate_all()
self.env.invalidate_cache()
for payment in self: