This question has been flagged
2 Replies
2389 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