Odoo Help

0

How to make field readonly based on group and status?

By
jamesbale
on 9/30/13, 6:54 AM 2,117 views

I want to make field readony based on group, and status.

Like i have two grops 1. Manager Group 2. User Group

If I give User Group to any user then and Status Done then field will be readonly for this user.

Hope I able to make it clear to understand

Thanks

1

Acespritech

--Acespritech--
837
| 3 2 6
Gandhinagar, India
--Acespritech--

Having 8+ years of OpenERP Experience. We are Specialized in OpenERP/CRM Solutions, software development, Web development, E commerce solutions & other open source solutions.


Skype : acespritech

Email : info@acespritech.com

Acespritech
On 9/30/13, 7:05 AM

Hi,

<field name="filedname" attrs="{'readonly':[('status','=','done')]}" groups="group_user"/>

Thanks,
www.acespritech.com

I want to make field readonly when user have group of User Group and state is Done, but when same user have group of manager then he will edit this field even if status in Done

jamesbale
on 9/30/13, 7:17 AM

Can you please specify which object's field you are talking about? By default it is not OpenERP functionality, if it is done it you need to configure or customize it(based on requirement).

Acespritech
on 9/30/13, 10:58 AM

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

0 follower(s)

Stats

Asked: 9/30/13, 6:54 AM
Seen: 2117 times
Last updated: 3/16/15, 8:10 AM