Skip to Content
Menu
This question has been flagged

Can someone help me with creating an access rule that filters companies and doesn't prevent the user of creating companies? The problem is when I create a new user with the same settings as an admin user and don't create a company and add it to the user.

The user should be able to create its own companies.

My access rule that's causing access error "Document: res.company operation: read":

<odoo>    
    <data noupdate="0"> <record id="hr_izracun_place.company_access_rule" model="ir.rule"> <field name="name">Prikaz družb uporabnika</field> <field name="model_id" ref="base.model_res_company"/> <field name="domain_force"> [('create_uid', 'in', [user.id])] </field> </record> </data> </odoo>

I've tried with the domain [('create_uid', 'in', [user.id, 1])], but it also doesn't work.


 

Avatar
Discard

Samo what all access you have given to this rule?

Author

It has all... read, write, create, unlink and it's global.

Related Posts Replies Views Activity
0
Jul 17
3518
2
Nov 24
25064
2
May 24
5510
3
Mar 24
4961
0
Mar 24
261