Files
odoo_source/addons/website_payment/data/ir_action_data.xml
T
Valentin Chevalier a7d87a9546 [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>
2022-10-28 09:17:57 +02:00

14 lines
553 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record id="action_stripe_connect_account" model="ir.actions.server">
<field name="name">Connect to Stripe</field>
<field name="model_id" ref="payment.model_payment_provider"/>
<field name="groups_id" eval="[(4, ref('base.group_system'))]"/>
<field name="state">code</field>
<field name="code">
menu_id = env.ref('website.menu_website_website_settings').id
action = env.company._run_payment_onboarding_step(menu_id=menu_id)
</field>
</record>
</odoo>