Files
odoo_source/addons/payment/wizards/payment_onboarding_views.xml
T
Thibault Libioulle 2e7cc0d82f [IMP] payment{,_stripe},{,website_}sale: clean up stripe connect code
This commit removes deprecated actions and methods kept after the merge
of PR #79621 in stable.

Follow-up
task-2685160

closes odoo/odoo#84789

Related: odoo/upgrade#3256
Related: odoo/enterprise#25369
Signed-off-by: Thibault Libioulle (tle) <tle@odoo.com>
2022-03-29 08:57:43 +02:00

55 lines
3.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record model="ir.ui.view" id="payment_acquirer_onboarding_wizard_form">
<field name="name">payment.acquirer.onboarding.wizard.form</field>
<field name="model">payment.acquirer.onboarding.wizard</field>
<field name="arch" type="xml">
<form string="Choose a payment method" class="o_onboarding_payment_acquirer_wizard">
<div class="container">
<div class="row align-items-start">
<div class="col col-4" name="left-column">
<group>
<field name="payment_method" widget="radio" nolabel="1"/>
</group>
</div>
<div class="col" name="right-column">
<div attrs="{'invisible': [('payment_method', '!=', 'paypal')]}">
<group>
<field name="paypal_user_type" widget="radio" nolabel="1"/>
<field name="paypal_email_account" attrs="{'required': [('payment_method', '=', 'paypal')]}" string="Email"/>
<field name="paypal_seller_account" attrs="{'invisible': [('paypal_user_type', '=', 'new_user')], 'required': [('paypal_user_type', '!=', 'new_user'), ('payment_method', '=', 'paypal')]}" />
<field name="paypal_pdt_token" password="True" attrs="{'invisible': [('paypal_user_type', '=', 'new_user')], 'required': [('paypal_user_type', '!=', 'new_user'), ('payment_method', '=', 'paypal')]}" />
</group>
<p attrs="{'invisible': [('paypal_user_type', '!=', 'new_user')]}">
<span>Start selling directly without an account; an email will be sent by Paypal to create your new account and collect your payments.</span>
</p>
<p attrs="{'invisible': [('paypal_user_type', '=', 'new_user')]}">
<a href="https://www.odoo.com/documentation/master/applications/finance/payment_acquirers/paypal.html" target="_blank">
<span><i class="fa fa-arrow-right"/> How to configure your PayPal account</span>
</a>
</p>
</div>
<div attrs="{'invisible': [('payment_method', '!=', 'manual')]}">
<group>
<field name="manual_name" attrs="{'required': [('payment_method', '=', 'manual')]}"/>
<field name="journal_name" attrs="{'required': [('payment_method', '=', 'manual')]}"/>
<field name="acc_number" attrs="{'required': [('payment_method', '=', 'manual')]}"/>
<field name="manual_post_msg" attrs="{'required': [('payment_method', '=', 'manual')]}"/>
</group>
</div>
</div>
</div>
</div>
<footer>
<button name="add_payment_methods" string="Apply" class="oe_highlight"
type="object" data-hotkey="q" />
<button special="cancel" data-hotkey="z" string="Cancel" />
</footer>
</form>
</field>
</record>
</odoo>