Ajuda

0

How can I add group rules for users?

Avatar
Hammad Zahid

I have added group rules for users that the users can only see their own data but I am facing an error. I have written the following code:

 <record id="memes_member_user_rule" model="ir.rule">
            <field name="name">For Users</field>
            <field name="model_id" ref="model_memes_member"/>
            <field name="global" eval="False"/>
            <field name="domain_force">[('parent_id.user_id','=',user.id)]</field>
            <field name="groups" eval="[(4, ref('memes.group_memes_user'))]"/>
        </record>

I am facing the following error:

 raise AttributeError(name)
AttributeError: auto_join
1 Comentário
Avatar
Descartar

Please post full traceback error.

1 Resposta