tries1
This commit is contained in:
parent
cfdf033124
commit
9f3706125f
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Reference in New Issue