Hi,
I am inheriting account.view_move_form and trying to hide the tax_ids field in invoice_line_ids.
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data>
<record id="inherit_account_move_form_spare_parts" model="ir.ui.view">
<field name="name">account.move.inherit</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='invoice_line_ids']/list/field[@name='product_id']" position="after">
<field name="storage_location" width="100px" />
</xpath>
<xpath expr="//field[@name='invoice_line_ids']/list/field[@name='tax_ids']" position="attributes">
<attribute name="optional">hide</attribute>
<attribute name="invisible">1</attribute>
</xpath>
</field>
</record>
</data>
</odoo>
The field is still visible in the invoice lines. What is the correct way to hide the Taxes column by default (or completely hide it) in Odoo 18?
Thanks.
Hello
Please try column_invisible.
Check that this is legal in your country - in many you must show tax rates and/or amounts and which product(s) they apply to.