Merge pull request #3650 from expsa/dev_odex25_accounting
Dev odex25 accounting
This commit is contained in:
commit
2fe38c905a
|
|
@ -52,9 +52,10 @@ 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()
|
||||
|
||||
for payment in self:
|
||||
payment.refresh()
|
||||
|
||||
payment.state = 'posted'
|
||||
if payment.analytic_account_id and payment.move_id:
|
||||
for line in payment.move_id.line_ids:
|
||||
|
|
|
|||
Loading…
Reference in New Issue