Odoo Help


4 Answers

Solanki Shamji

--Solanki Shamji--

| 5 2 9
Baroda, India
--Solanki Shamji--


Solanki Shamji
7/22/15, 10:13 AM

I think this example will helpful to you

<field name="company_id" groups="base.group_multi_company"> 
<field name="groups_id" eval="[(4, ref('event.group_event_user'))]"/>
7/22/15, 10:17 AM

Thanks for your reply . let me try. how set access like read,write,create,delete.

  Is it possible control from UI like access control and record rules. ?

Instead Editing code. i need in UI just like ACL or Record Rules

Thanks @ Ankit Gauri . But this is not im asking . . asking UI like adding ACL to some group.

Let say. the group should list all fields . i have to assign which field are read only and write only from  UI

1 Comment
Atchuthan - Technical Consultant, Sodexis Inc
7/23/15, 2:03 AM

yes, enable developer mode and edit your form view such that you can change the form view at UI itself

Ankit Gauri
7/23/15, 7:05 AM

hello Sankar

you can make a field readonnly for particular group of user like this in Ui

<record id="view_readonly" model="ir.ui.view">

<field name="name">model.form.readonly manager</field>

<field name="model">model.name</field> 

<field name="groups_id" eval="[(6, 0, [ref(groups')])]"/>

<field name="arch" type="xml">

<field name="field" position="attributes">

<attribute name="readonly" >0</attribute>




it works perfectly i have used in my Ui and make a field readonly for user

Thank you

Ask a Question
Keep Informed
2 follower(s)
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.

Odoo Training Center

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

Test it now