commit
f187bbf1aa
|
|
@ -57,8 +57,8 @@ class AccountPayment(models.Model):
|
|||
|
||||
|
||||
for payment in self:
|
||||
payment.refresh()
|
||||
#payment.state = 'posted'
|
||||
payment.invalidate_cache()
|
||||
payment.state = 'posted'
|
||||
if payment.analytic_account_id and payment.move_id and payment.move_id.exist():
|
||||
for line in payment.move_id.line_ids:
|
||||
if line.account_id.id == payment.destination_account_id.id:
|
||||
|
|
|
|||
Loading…
Reference in New Issue