Files
account-financial-tools/account_move_name_sequence/views/account_move_views.xml
Andrea Gidalti f44e61f61a [IMP] account_move_name_sequence: apply guidelines to name view files
Update name of view files to follow guidelines.
2024-04-22 19:59:31 -06:00

30 lines
1.1 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2021 Akretion France (http://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="view_move_form" model="ir.ui.view">
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='highest_name']/.." position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath
expr="//div[hasclass('oe_title')]//field[@name='name']"
position="attributes"
>
<attribute name="invisible">name == '/'</attribute>
<attribute name="readonly">1</attribute>
</xpath>
<xpath expr="//div[hasclass('oe_title')]//h1//span" position="attributes">
<attribute name="invisible">state != 'draft' or name != '/'</attribute>
</xpath>
</field>
</record>
</odoo>