Files
odoo_source/addons/payment/wizards/payment_link_wizard_views.xml
T
Valentin Vallaeys (vava) 927a2b38db [FIX] payment: move button label to string attribute
Before this commit, the text of a `CopyClipboardButtonField` could be
edited with a `label` option. But this label was never translated.

After this commit, the field `string` is used instead to rename the
button. This is automatically exported for translatation.

task-3054813

closes odoo/odoo#105560

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-12-15 11:30:50 +01:00

46 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">
<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"
string="Generate and Copy Payment Link"
readonly="1"
widget="CopyClipboardButton"/>
<button string="Close"
class="btn btn-secondary rounded-2"
special="cancel"
data-hotkey="z"/>
</footer>
</form>
</field>
</record>
</odoo>