Files
Odoo-18.0-20251222/account_move_line_tax_editable/views/account_move.xml
tocmo0nlord adbe430761
Some checks failed
pre-commit / pre-commit (push) Has been cancelled
tests / Detect unreleased dependencies (push) Has been cancelled
tests / test with OCB (push) Has been cancelled
tests / test with Odoo (push) Has been cancelled
Initial commit: Odoo 18.0-20251222 extra-addons
2026-03-13 20:43:25 +00:00

37 lines
1.5 KiB
XML
Executable File

<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2017 ACSONE SA/NV
Copyright 2022 FactorLibre - Luis J. Salvatierra <luis.salvatierra@factorlibre.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="name">account.move.form (in account_move_line_tax_editable)</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form" />
<field name="arch" type="xml">
<xpath
expr="//field[@name='line_ids']/list/field[@name='tax_line_id']"
position="before"
>
<field name="is_tax_editable" column_invisible="True" />
</xpath>
<xpath
expr="//field[@name='line_ids']/list/field[@name='tax_line_id']"
position="attributes"
>
<attribute name="column_invisible">False</attribute>
<attribute name="readonly">not is_tax_editable</attribute>
<attribute name="optional">hide</attribute>
</xpath>
<xpath
expr="//field[@name='line_ids']/list/field[@name='tax_ids']"
position="after"
>
<xpath
expr="//field[@name='line_ids']/list/field[@name='tax_line_id']"
position="move"
/>
</xpath>
</field>
</record>
</odoo>