2
0
account-financial-tools/account_move_line_tax_editable/views/account_move.xml
Luis J. Salvatierra 580a8d21c7 [MIG] account_move_line_tax_editable: Migration to 16.0
Update account_move_line_tax_editable/i18n/es.po

Co-authored-by: Yadier-Tecnativa <129773077+Yadier-Tecnativa@users.noreply.github.com>
2023-05-24 09:27:13 +02:00

39 lines
1.5 KiB
XML

<?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']/tree/field[@name='tax_line_id']"
position="before"
>
<field name="is_tax_editable" invisible="1" />
</xpath>
<xpath
expr="//field[@name='line_ids']/tree/field[@name='tax_line_id']"
position="attributes"
>
<attribute name="invisible">0</attribute>
<attribute
name="attrs"
>{'readonly': [('is_tax_editable', '=', False)]}</attribute>
<attribute name="optional">hide</attribute>
</xpath>
<xpath
expr="//field[@name='line_ids']/tree/field[@name='tax_ids']"
position="after"
>
<xpath
expr="//field[@name='line_ids']/tree/field[@name='tax_line_id']"
position="move"
/>
</xpath>
</field>
</record>
</odoo>