a6eac0f08e introduced a new `res.groups`
belonging to the "Sharing" category.
As this group has the flag `shared`, it is ignore when generating the
group's user view (and its virtual fields).
When updating `mail` module, the `share` module (which depend on mail)
is not loaded yet. This mean this new group is taken into account when
getting the `res.users` virtual fields.
As this group belong to the same category as the `share.group_share_user`
group but dont have an inheritance link between them (`implied_ids`),
they are generated as `boolean` instead of a single entry `selection`
field. This create a missmatch between the fields and the previously
generated view, which forbid inheritance application.
Force view regeneration, to avoid it.
Also change the group's category as this group is purely technical and
must be hidden anyway.
27 lines
1.1 KiB
XML
27 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data noupdate="0">
|
|
<record model="ir.module.category" id="module_category_share">
|
|
<field name="name">Sharing</field>
|
|
<field name="parent_id" ref="base.module_category_tools"/>
|
|
<field name="sequence">26</field>
|
|
</record>
|
|
|
|
<record id="group_share_user" model="res.groups">
|
|
<field name="name">User</field>
|
|
<field name="comment">
|
|
Members of this groups have access to the sharing wizard, which allows them to invite external users to view or edit some of their documents.</field>
|
|
<field name="category_id" ref="module_category_share"/>
|
|
<field name="users" eval="[(4, ref('base.user_root'))]"/>
|
|
</record>
|
|
|
|
<record id="group_shared" model="res.groups">
|
|
<field name="name">Shared Group</field>
|
|
<field name="comment">
|
|
This group is a template group for shared users, giving basic access needs, the menus for instance.</field>
|
|
<field name="category_id" ref="base.module_category_hidden"/>
|
|
<field name="share">1</field>
|
|
</record>
|
|
</data>
|
|
</openerp>
|