Since the generated payment link is not editable, it is hidden behind the wizard copy button. To help the users understand the button, the text on the button can now be edited in the xml with a `label` attribute. task-2683480 closes odoo/odoo#100261 Signed-off-by: Vallaeys Valentin (vava) <vava@odoo.com> Co-authored-by: Valentin Chevalier <vcr@odoo.com>
43 lines
2.0 KiB
XML
43 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<record id="payment_link_wizard_view_form" model="ir.ui.view">
|
|
<field name="name">payment.link.wizard.form</field>
|
|
<field name="model">payment.link.wizard</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Generate Payment Link">
|
|
<group>
|
|
<group>
|
|
<field name="res_id" invisible="1"/>
|
|
<field name="res_model" invisible="1"/>
|
|
<field name="partner_id" invisible="1"/>
|
|
<field name="partner_email" invisible="1"/>
|
|
<field name="amount_max" invisible="1"/>
|
|
<field name="available_provider_ids" invisible="1"/>
|
|
<field name="has_multiple_providers" invisible="1"/>
|
|
<field name="description"/>
|
|
<field name="amount"/>
|
|
<field name="currency_id" invisible="1"/>
|
|
<field name="payment_provider_selection"
|
|
attrs="{'invisible':[('has_multiple_providers', '=', False)]}"/>
|
|
</group>
|
|
</group>
|
|
<group attrs="{'invisible':[('partner_email', '!=', False)]}">
|
|
<p class="alert alert-warning fw-bold" role="alert">This partner has no email, which may cause issues with some payment providers. Setting an email for this partner is advised.</p>
|
|
</group>
|
|
<footer>
|
|
<field name="link"
|
|
readonly="1"
|
|
widget="CopyClipboardButton"
|
|
options="{'label': 'Generate and Copy Payment Link'}"/>
|
|
<button string="Close"
|
|
class="btn btn-secondary rounded-2"
|
|
special="cancel"
|
|
data-hotkey="z"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|