diff options
Diffstat (limited to 'addons/payment/models/payment_acquirer.py')
| -rw-r--r-- | addons/payment/models/payment_acquirer.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/payment/models/payment_acquirer.py b/addons/payment/models/payment_acquirer.py index c4b20bac604..c470186e4a8 100644 --- a/addons/payment/models/payment_acquirer.py +++ b/addons/payment/models/payment_acquirer.py @@ -674,7 +674,7 @@ class PaymentTransaction(models.Model): self.payment_id = payment if self.invoice_ids: - self.invoice_ids.filtered(lambda move: move.state == 'draft').post() + self.invoice_ids.filtered(lambda move: move.state == 'draft')._post() (payment.line_ids + self.invoice_ids.line_ids)\ .filtered(lambda line: line.account_id == payment.destination_account_id and not line.reconciled)\ @@ -814,7 +814,7 @@ class PaymentTransaction(models.Model): def _reconcile_after_transaction_done(self): # Validate invoices automatically upon the transaction is posted. invoices = self.mapped('invoice_ids').filtered(lambda inv: inv.state == 'draft') - invoices.post() + invoices._post() # Create & Post the payments. for trans in self: |
