This commit is contained in:
ahmed-nouri051 2025-06-26 16:20:40 +02:00
parent cfdf033124
commit 9f3706125f
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()
self.env.flush()
for payment in payments:
for payment in self:
#payment.state = 'posted'
if payment.analytic_account_id and payment.move_id and payment.move_id.exist():