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

How to make field readonly based on group and status?

By
jamesbale
on 9/30/13, 6:54 AM 1,830 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--
839
| 3 2 6
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

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

0 follower(s)

Stats

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