In odoo v8, I want some fields to be shown only in view mode but when the user clicks on edit or create, then those fields should be invisible (Only visible in view mode).
There is an openerp class called oe_read_only
.
This will allow you to view the field only when reading the form not in edit mode of the form.
Sample Code:
<field name="name" class="oe_read_only"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With