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
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
2789
Views
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
account_invoice has similar use. it might give you some ideas.
What is the use? can u explain