Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
3142 Vues

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)



Avatar
Ignorer
code:
                <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

On Sat, 4 Nov 2023 at 08:51, Cybrosys Techno Solutions Pvt.Ltd <notifications@mail.odoo.com> wrote:
A new answer on How can i make columns in tree view hide based on the condition? has been posted. Click here to access the post : See post ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​

A new answer on How can i make columns in tree view hide based on the condition? has been posted. Click here to access the post :

See post

--
Cybrosys Techno Solutions Pvt.Ltd


Odoo S.A.

+32 81 81 37 00 | info@odoo.com | https://www.odoo.com

Powered by Odoo
Publications associées Réponses Vues Activité
1
août 15
5991
0
juil. 24
955
2
avr. 21
3873
3
sept. 19
11769
0
mars 17
2709