Odoo Help

0

Need to make a field "Readonly" for perticular user group all other fields of the object should be editable.

By
Narayanamurthy
on 7/24/14, 9:33 AM 476 views

Need  to make a field "Readonly" for perticular user group all other fields of the object should be editable.

i had used "groups='[group_name]'" to make visible for the perticular user group,

but how to make readonly

2

Dhinesh - Technical Consultant, Sodexis Inc

--Dhinesh - Technical Consultant, Sodexis Inc--
3732
| 5 4 9
Pondicherry, India
--Dhinesh - Technical Consultant, Sodexis Inc--

Passionate coder in Python/OpenERP. Knows Django/Flask MVC frameworks. Did code in Java, PHP.

Contact me at: dvdhinesh.mail@gmail.com

Dhinesh - Technical Consultant, Sodexis Inc
On 7/24/14, 9:39 AM

Hi, you can use this in your py file field...

'name': fields.char('Name', size=128, read=['base.group_userA'], write=['base.group_userB'] )

Read will allow the user group to view and Write will allow the user group to edit the field..

More here

 

About This Community

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

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 7/24/14, 9:33 AM
Seen: 476 times
Last updated: 3/16/15, 8:10 AM