Skip to content

Commit

Permalink
temp rebasing PR 449 (cb4ada7)
Browse files Browse the repository at this point in the history
  • Loading branch information
roboadhoc committed Feb 8, 2024
2 parents d1019b8 + cb4ada7 commit 919be67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions account_payment_invoice/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def _compute_payment_state(self):
for rec in self.filtered(lambda x: x.payment_state=='not_paid' and {'pending','authorized'}.intersection(set(x.transaction_ids.mapped('state')))):
rec.payment_state = 'electronic_pending'

def _post(self, soft=True):
res = super()._post(soft=soft)
def action_post(self):
res = super().action_post()
to_pay_moves = self.filtered(
lambda x: x.payment_token_id and x.state == 'posted' and
x.payment_state in ['not_paid', 'electronic_pending'] and x.move_type == 'out_invoice')
Expand Down

0 comments on commit 919be67

Please sign in to comment.