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>
22 lines
1.0 KiB
XML
22 lines
1.0 KiB
XML
<?xml version="1.0"?>
|
|
<odoo>
|
|
|
|
<record id="view_account_payment_form_inherit_payment" model="ir.ui.view">
|
|
<field name="name">view.account.payment.form.inherit.payment</field>
|
|
<field name="model">account.payment</field>
|
|
<field name="inherit_id" ref="account.view_account_payment_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr='//group[2]' position="inside">
|
|
<field name="payment_transaction_id" groups="base.group_no_one" attrs="{'invisible': [('payment_method_code', '!=', 'electronic')]}"/>
|
|
</xpath>
|
|
<field name="payment_method_id" position="after">
|
|
<field name="payment_method_code" invisible="1"/>
|
|
<field name="related_partner_ids" invisible="1"/>
|
|
<field name="payment_token_id" options="{'no_create': True}"
|
|
attrs="{'invisible': [('payment_method_code', '!=', 'electronic')], 'readonly': [('state', '!=', 'draft')]}"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|