[CLN] payment(_stripe): cleanup of ee963d10

closes odoo/odoo#127054

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
Antoine Vandevenne (anv)
2023-07-03 15:37:37 +02:00
parent 56582ee3c0
commit d41b7a1f48
5 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<!-- ONBOARDING STEPS (WITHOUT PANEL)-->
<odoo noupdate="1">
<!-- ONBOARDING STEPS (WITHOUT PANEL) -->
<record id="onboarding_onboarding_step_payment_provider" model="onboarding.onboarding.step">
<field name="title">Online Payments</field>
<field name="sequence">99</field>
</record>
</data>
</odoo>
+1 -1
View File
@@ -1,10 +1,10 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import ir_http
from . import onboarding_step
from . import payment_method
from . import payment_provider
from . import payment_token
from . import payment_transaction
from . import onboarding_onboarding_step
from . import res_company
from . import res_partner
@@ -8,5 +8,5 @@ class OnboardingStep(models.Model):
@api.model
def action_validate_step_payment_provider(self):
"""Override to validate other steps as well."""
return self.action_validate_step("payment.onboarding_onboarding_step_payment_provider")
""" Override of `onboarding` to validate other steps as well. """
return self.action_validate_step('payment.onboarding_onboarding_step_payment_provider')
@@ -12,7 +12,7 @@ class OnboardingController(http.Controller):
@http.route(_onboarding_return_url, type='http', methods=['GET'], auth='user')
def stripe_return_from_onboarding(self, provider_id, menu_id):
"""Redirect the user to the provider form of the onboarded Stripe account.
""" Redirect the user to the provider form of the onboarded Stripe account.
The user is redirected to this route by Stripe after or during (if the user clicks on a
dedicated button) the onboarding.
@@ -134,7 +134,7 @@ class PaymentProvider(models.Model):
self.ensure_one()
if self.state == 'enabled':
self.env["onboarding.onboarding.step"].action_validate_step_payment_provider()
self.env['onboarding.onboarding.step'].action_validate_step_payment_provider()
action = {'type': 'ir.actions.act_window_close'}
else:
# Account creation