0
votes

how to Show a button in form view, when in view mode, and hide in edit and create mode in odoo

1
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question.dot.Py

1 Answers

6
votes

You could use the oe_read_only class, eg.:

<button name="my_action" type="object" string="Do foo" class="oe_read_only"/>