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

prefetch
This commit is contained in:
ahmed-nouri051 2025-06-26 16:06:04 +02:00 committed by GitHub
commit 15cdfe692d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -54,9 +54,9 @@ class AccountPayment(models.Model):
res = super(AccountPayment, self).action_post()
payments = self.with_prefetch()
for payment in self:
for payment in payments:
#payment.state = 'posted'
if payment.analytic_account_id and payment.move_id and payment.move_id.exist():