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 | etc.
I'm developing a module that links openerp to a warehouse management system (Accellos One). I need to prevent sales orders from being edited while the orders are processed by the warehouse management system.
The module adds two fields to the sales order view. One of these fields is boolean. When this field is set to true, I need to remove the Edit button, When false, it need to be visible.
I can hide the edit button in the view.xml:
<xpath expr='//form[@string="Sale Order"]' position='attributes'> <attribute name="edit">false</attribute> </xpath>
How do I hide the edit button when my filed is set to true?
Many thanks, Tony.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 7/3/13, 3:20 AM|
|Seen: 2316 times|
|Last updated: 3/16/15, 8:10 AM|