Files
odoo_source/addons/payment/wizards/payment_link_wizard_views.xml
T
Valentin Vallaeys (vava) 4cf5476c18 [FIX] payment: warning display over full wizard screen
closes odoo/odoo#105892

X-original-commit: 521da3aa78371e33ced0de7f9da8d90a5a2d6498
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: Vallaeys Valentin (vava) <vava@odoo.com>
2022-11-17 21:58:50 +01:00

46 lines
2.1 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">
<div class="alert alert-warning fw-bold"
role="alert"
attrs="{'invisible': [('partner_email', '!=', False)]}">
This partner has no email, which may cause issues with some payment providers.
Setting an email for this partner is advised.
</div>
<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>
<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>