Hi,
I dont have any idea about this ...
I am taking code from odoo forum ,can anybody tell which scenario I can use this code?
if view_type =='form':
doc = etree.XML(result['fields']['order_line']['views']['tree']['arch'])
node = doc.xpath("//field[@name='product_id']")[0]
node.set('invisible','1')
result['fields']['order_line']['views']['tree']['arch'] = etree.tostring(doc)
return result
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilidad
- Inventario
- PoS
- Proyectos
- MRP
Se marcó esta pregunta
3344
Vistas
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Registrarse
account_invoice has similar use. it might give you some ideas.
What is the use? can u explain