mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] account_payment_order_return: Fix tests
Don't post the invoice if it is already posted.
See 80c28189ae
This commit is contained in:
@@ -90,7 +90,8 @@ class TestAccountPaymentOrderReturn(common.SavepointCase):
|
||||
)
|
||||
)
|
||||
self.payment = payment_register.save()._create_payments()
|
||||
self.payment.action_post()
|
||||
if self.payment.state != "posted":
|
||||
self.payment.action_post()
|
||||
wizard.populate()
|
||||
# Create payment return
|
||||
payment_return_form = Form(self.env["payment.return"])
|
||||
|
||||
Reference in New Issue
Block a user