diff options
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/payment/models/account_invoice.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/payment/models/account_invoice.py b/addons/payment/models/account_invoice.py index 5fbd21c55be..89fdcfd4ce5 100644 --- a/addons/payment/models/account_invoice.py +++ b/addons/payment/models/account_invoice.py @@ -20,7 +20,7 @@ class AccountMove(models.Model): def get_portal_last_transaction(self): self.ensure_one() - return self.transaction_ids.get_last_transaction() + return self.with_context(active_test=False).transaction_ids.get_last_transaction() def _create_payment_transaction(self, vals): '''Similar to self.env['payment.transaction'].create(vals) but the values are filled with the |
