I created a form and entered groups and access rules correctly, but I would like to know how to set a default rule for all new users. Now when I create a user, no rules are applied to him and consequently he has no read access to the model
My security xml:
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record model="ir.module.category" id="myaddon_groups">
<field name="name">My Addon</field>
<field name="description">User access level for My addon</field>
<field name="sequence">20</field>
</record>
<record id="myaddon_user" model="res.groups">
<field name="name">User</field>
<field name="category_id" ref="myaddond_groups"/>
</record>
<record id="myaddon_editor" model="res.groups">
<field name="name">Editor</field>
<field name="category_id" ref="myaddon_groups"/>
<field name="implied_ids" eval="[(4, ref('myaddon_user'))]"/>
</record>
<record id="myaddon_manager" model="res.groups">
<field name="name">Manager</field>
<field name="category_id" ref="myaddond_groups"/>
<field name="implied_ids" eval="[(4, ref('myaddon_user'))]"/>
</record>
<record id="base.default_user" model="res.users">
<field name="groups_id" eval="[(4, ref('myaddon_manager'))]"/>
</record>
<record id="base.group_system" model="res.groups">
<field name="implied_ids" eval="[(4, ref('myaddon.myaddon_manager'))]"/>
</record>