I have been customizing the inventory module in odoo 16 . There based on the operation type selected i want to hide some columns in the main tree view .
I have tried using column_invisible, invisible, context.get attributes but didn't work
if anyone know about this , please comment below is it possible or not (if possible please give me suggestion as how can i approach that)
<record id="internal_transfer_inherit" model="ir.ui.view">
<field name="name">stock.picking.tree.internal</field>
<field name="model">stock.picking</field>
<field name="inherit_id" ref="stock.vpicktree"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='partner_id']" position="after">
<field name="inbound_ref" optional="show"/>
<field name="lot_number" optional="show"/>
<field name="current_quantity" attrs="{'invisible': [('picking_type_code', '!=', 'internal')]}" optional="show"/>
</xpath>
</field>
</record>
can you please once view my code and give me a proper solution