Files
odoo_source/addons/payment/wizards/payment_link_wizard_views.xml
T
Antoine Vandevenne (anv)andVictor Feyens 573ed74c12 [REF] payment, *: refactor online payments API
This commit replaces the old online payments API of the `payment`
module with the new one and adapts to it all the implementing modules.

See the merge commit for more details.

task-2085989
task-2119838
task-2165982
task-2289255

Co-authored-by: Victor Feyens <vfe@odoo.com>
2021-03-30 09:25:51 +02: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">
<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="description"/>
<field name="amount"/>
<field name="currency_id" invisible="1"/>
<field name="access_token" invisible="1"/>
</group>
</group>
<group>
<field name="link" readonly="1" widget="CopyClipboardChar"/>
</group>
<group attrs="{'invisible':[('partner_email', '!=', False)]}">
<p class="alert alert-warning font-weight-bold" role="alert">This partner has no email, which may cause issues with some payment acquirers. Setting an email for this partner is advised.</p>
</group>
<footer>
<button string="Close" class="btn-primary" special="cancel"/>
</footer>
</form>
</field>
</record>
<record id="action_invoice_order_generate_link" model="ir.actions.act_window">
<field name="name">Generate a Payment Link</field>
<field name="res_model">payment.link.wizard</field>
<field name="view_mode">form</field>
<field name="view_id" ref="payment_link_wizard_view_form"/>
<field name="target">new</field>
<field name="binding_model_id" ref="model_account_move"/>
<field name="binding_view_types">form</field>
</record>
</odoo>