Files
odoo-usability/pos_check_deposit/views/pos_payment_method.xml
2024-12-24 12:50:47 +01:00

37 lines
1.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2022-2024 Akretion France (https://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="pos_payment_method_view_form" model="ir.ui.view">
<field name="model">pos.payment.method</field>
<field name="inherit_id" ref="point_of_sale.pos_payment_method_view_form"/>
<field name="arch" type="xml">
<field name="split_transactions" position="after">
<field name="identify_customer" invisible="not split_transactions"/>
</field>
<field name="receivable_account_id" position="attributes">
<attribute name="invisible">identify_customer</attribute>
</field>
</field>
</record>
<record id="pos_payment_method_view_tree" model="ir.ui.view">
<field name="model">pos.payment.method</field>
<field name="inherit_id" ref="point_of_sale.pos_payment_method_view_tree"/>
<field name="arch" type="xml">
<field name="split_transactions" position="after">
<field name="identify_customer" invisible="not split_transactions" optional="hide"/>
</field>
<field name="receivable_account_id" position="attributes">
<attribute name="invisible">identify_customer</attribute>
</field>
</field>
</record>
</odoo>