Skip to Content
Menu
This question has been flagged
2 Replies
2445 Views

<field name="groups" eval="[(4,ref('base.group_user'))]"/>

why we use eval and 4 and as well as ref.

im new in odoo ..

and also tell me what is difference between domain_force and domain ?

Avatar
Discard
Best Answer

<field name="groups" eval="[(4,ref('base.group_user'))]"/>

Here "groups" is a many2many field.

when we need to link any new record using xml at that time we use this.

"groups" means field's name and

[(4,ref('base.group_user'))] means we are linking that record to our many2many field.

Avatar
Discard
Best Answer

Hello,

You can check this answer  ....

Hope this could helps ...

Avatar
Discard
Related Posts Replies Views Activity
1
Aug 23
12542
1
Aug 23
11036
1
Jul 23
7218
4
Apr 23
8675
2
Feb 23
17588