[FIX] website_payment: fix Stripe Connect onbarding

Before this commit, the payment journal could be not set when starting
Stripe Connect onboarding from the settings of Website.

Now, the payment journal will be set, even if the onboarding was started
from the settings of Website.

closes odoo/odoo#104387

X-original-commit: f51ec823fde7580d078dd4769570d445e60e05bb
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: Valentin Chevalier <vcr@odoo.com>
This commit is contained in:
Valentin Chevalier
2022-10-28 09:17:57 +02:00
parent 1e025adbf3
commit a7d87a9546
@@ -6,9 +6,8 @@
<field name="groups_id" eval="[(4, ref('base.group_system'))]"/>
<field name="state">code</field>
<field name="code">
stripe = env.ref('payment.payment_provider_stripe')
menu_id = env.ref('website.menu_website_website_settings').id
action = stripe.action_stripe_connect_account(menu_id=menu_id)
action = env.company._run_payment_onboarding_step(menu_id=menu_id)
</field>
</record>
</odoo>