Odoo Help

Welcome!

This community 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.

0

Odoo code to create a field readonly to other groups.

By
rodc
on 9/8/16, 11:30 PM 198 views

Hi to all,

I have a editable tree view ,I created a (level 1 group) and (level 2 group)  and I also created (level 1 field) and (level 2 field) , I want to read only the (level 2 field)  when a user from (level 1 group) currently loggin.

If can someone can help me,

Thanks a lot.

0
Emanuel Cino
On 9/9/16, 5:06 AM

In the xml of your view you can add the attribute groups="xml_id_of_your_group" in order to make that field only visible to certain groups.

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 9/8/16, 11:30 PM
Seen: 198 times
Last updated: 9/9/16, 5:06 AM