2021-09-08 14:21:43 +02:00
|
|
|
<?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">
|
2022-11-24 12:55:29 +01:00
|
|
|
<xpath expr="//field[@name='highest_name']/.." position="attributes">
|
|
|
|
<attribute name="invisible">1</attribute>
|
2022-05-26 16:26:12 +02:00
|
|
|
</xpath>
|
|
|
|
<xpath
|
2021-09-08 14:21:43 +02:00
|
|
|
expr="//div[hasclass('oe_title')]//field[@name='name']"
|
|
|
|
position="attributes"
|
|
|
|
>
|
2022-11-24 12:55:29 +01:00
|
|
|
<attribute name="attrs">{'invisible': [('name', '=', '/')]}</attribute>
|
|
|
|
<attribute name="readonly">1</attribute>
|
2022-05-26 16:26:12 +02:00
|
|
|
</xpath>
|
2022-11-24 12:55:29 +01:00
|
|
|
<xpath expr="//div[hasclass('oe_title')]//h1//span" position="attributes">
|
|
|
|
<attribute
|
|
|
|
name="attrs"
|
|
|
|
>{'invisible': ['|', ('state', '!=', 'draft'), ('name', '!=', '/')]}</attribute>
|
2022-05-26 16:26:12 +02:00
|
|
|
</xpath>
|
2021-09-08 14:21:43 +02:00
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
</odoo>
|