[IMP] payment_demo: enable demo provider by default when installed

task-3557315

closes odoo/odoo#138466

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
Valeriya(vchu)
2023-10-18 18:27:28 +00:00
parent 55a3b661dc
commit e8fcbeab2d
2 changed files with 10 additions and 0 deletions
@@ -3,6 +3,8 @@
<record id="payment.payment_provider_demo" model="payment.provider">
<field name="code">demo</field>
<field name="state">test</field>
<field name="is_published">True</field>
<field name="inline_form_view_id" ref="inline_form"/>
<field name="token_inline_form_view_id" ref="token_inline_form"/>
<field name="express_checkout_form_view_id" ref="express_checkout_form"/>
@@ -13,6 +13,10 @@ registry.category("web_tour.tours").add('onsite_payment_tour', {
wsTourUtils.goToCheckout(),
...wsTourUtils.fillAdressForm(),
wTourUtils.clickOnElement('Example shipping On Site', '.o_delivery_carrier_select:contains("Example shipping On Site")'),
wTourUtils.clickOnElement(
'"Pay on site"',
'input[name="o_payment_radio"][data-payment-method-code="pay_on_site"]',
),
wTourUtils.clickOnElement('pay button', 'button[name="o_payment_submit_button"]:visible:not(:disabled)'),
{
content: "Check if the payment is successful",
@@ -26,6 +30,10 @@ registry.category("web_tour.tours").add('onsite_payment_tour', {
wsTourUtils.goToCheckout(),
...wsTourUtils.fillAdressForm(),
wTourUtils.clickOnElement('"Pay in Store"', '.o_delivery_carrier_select:contains("Example shipping On Site")'),
wTourUtils.clickOnElement(
'"Pay on site"',
'input[name="o_payment_radio"][data-payment-method-code="pay_on_site"]',
),
wTourUtils.clickOnElement('Pay button', 'button[name="o_payment_submit_button"]:visible:not(:disabled)'),
{
content: "Check if the payment is successful",