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.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 7/3/13, 3:20 AM|
|Seen: 1656 times|
|Last updated: 3/16/15, 8:10 AM|