Hide field in a tree view
Hello, I have Odoo 8.
I have added some fields to sale.order.line model and I added them to the sale.order form view, in which I can create new sale orders.
I want to hide the tree fields if the customer name is 'XYZ'. How can I specify this in the xml view? Because the 'name' of the customer is a attribute of res.partner model, and the 'partner_id' attribute is a field of sale.order. Then, the fields I want to hide are from sale.order.line model.