Files
odoo_source/addons/payment/views/account_journal_views.xml
T
Romeo Fragomeli 1fcd098af5 [REF] *: BS5: migration
Automated change made by a lot of RegEx to change all think that is
possible to automate.

https://getbootstrap.com/docs/5.1/migration

Task ID: 2766483

Part-of: odoo/odoo#95450
2022-07-07 13:30:24 +02:00

26 lines
1.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_account_journal_form" model="ir.ui.view">
<field name="name">account.journal.form.inherit.payment</field>
<field name="model">account.journal</field>
<field name="inherit_id" ref="account.view_account_journal_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='inbound_payment_method_line_ids']//field[@name='payment_account_id']" position="after">
<field name="payment_acquirer_id" invisible="1"/>
<field name="payment_acquirer_state" invisible="1"/>
<button name="action_open_acquirer_form"
type="object"
string="SETUP"
class="float-end btn-secondary"
attrs="{'invisible': [('payment_acquirer_id', '=', False)]}"
groups="base.group_system"/>
</xpath>
<xpath expr="//field[@name='inbound_payment_method_line_ids']/tree" position="attributes">
<attribute name="decoration-muted">payment_acquirer_state == 'disabled'</attribute>
</xpath>
</field>
</record>
</odoo>