Skip to content
Advertisement

how to remove or hide rows in odoo tree if field is 0

I have a tree where in the “jumlah” column there is a value of 0, so I want the rows that in the “jumlah” column have 0 not to be displayed in the tree. here’s a picture of the tree I have. kolom jumlah

and here is the xml view of the table above

JavaScript

edited: sorry I still don’t really understand, I have given the domain to ir.actions.window with a reference to the view that will be filtered, but the number 0 is still there

Advertisement

Answer

for this tree view, you will have an action window

JavaScript

in that action add domain

JavaScript

But this will not let you see those records at all you will not have the option to see them or not see them as long as the view is called from this action. Use other method provided if you want to have the option to view or not depending on the filter

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement