Skip to Content
Menu
This question has been flagged
11987 Views

I want to remove the tax column from the quote/ sale tree view.

The only way i have found to get the tax column label to go away is the following:

            <xpath expr="//page[@string='Order Lines']/field[@name='order_line']/tree[@string='Sales Order Lines']//field[@name='tax_id']" position="replace">
                <field name="tax_id" widget="many2many_tags" domain="[('parent_id','=',False),('type_tax_use','&lt;&gt;','purchase')]"
                invisible="1" nolabel="1"/>
            </xpath>

I would like the change to be conditional like this, but it does not seem to work, am I doing something wrong or is this not supported yet?

<xpath expr="//page[@string='Order Lines']/field[@name='order_line']/tree[@string='Sales Order Lines']//field[@name='tax_id']" position="attributes">
     <attribute name="attrs">{'invisible': [('prod_type','=','itemized'),'nolabel': [('prod_type','=','itemized')]]}</attribute>
                </xpath>
Avatar
Discard