form view readonly

Asked by Aksana Ivanova

Hello!
I need to make whole form_view readonly, whithout even a possibility to edit ou create a new record, the buttons "Edit" and "Create" could be invisible.
Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Serpent Consulting Services
Solved:
Last query:
Last reply:
Revision history for this message
Best Serpent Consulting Services (serpent-consulting-services) said :
#1

Aksana,

You can do this for tree/form by :

    <form string="NAMEOFFORM" create="false" edit="false" version="7.0">
        ...
    </form>

Thanks.

Revision history for this message
Aksana Ivanova (aksana-ivanova) said :
#2

To Serpent Consulting Services:

I have already tried this, but fogot about version="7.0" -- its working now.

Thank you.

Revision history for this message
Aksana Ivanova (aksana-ivanova) said :
#3

Thanks Serpent Consulting Services, that solved my question.

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#4

Nice to hear that, welcome!