I have two products each one of them inherits product.template module, but when i open the tree view i find all the fields shown whether it belongs to the product or not, so i tried to make them invisible based on a boolean to precise which type of the products it is, here is my code that is not working, i tried :
attrs="{'invisible': [('property_ok','=',False)]}"
attrs="{'column_invisible': [('property_ok','=',False)]}"
Do you have any idea about this?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kirjanpito
- Varastointi
- PoS
- Project
- MRP
Tämä kysymys on merkitty
1
Vastaa
1185
Näkymät
1. Define a boolean field in your product model
property_ok = fields.Boolean(string="
2.<field name="field_name" attrs="{'invisible': [('property_ok', '=', False)]}"/>
Replace field_name with the name of the field you want to make invisible.
Hope it helps
Nautitko keskustelusta? Älä vain lue, vaan osallistu!
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
Rekisteröidy