Files
odoo_source/addons/share/views/share.xml
T
Denis Ledoux a6eac0f08e [FIX] share: share feature compatibility with Odoo 8.0
Since rev. 1ce0b70a02, ir.ui.menu
was readable for employees and portal users only

Since rev. 74aa7406bf, the navigation menus
were displayed for employees and portal users only.

Therefore, when sharing a record with the share feature, nothing was
displayed when following the link.

This rev. introduces a new group "Shared group", implied for all shared groups
created through the share feature.
Read access to menus is given to this group
The possibility to display the webclient navigation menus as well.
2015-02-06 14:01:59 +01:00

22 lines
1.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- vim:fdn=3:
-->
<openerp>
<data>
<template id="assets_backend" name="share assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<link rel="stylesheet" href="/share/static/src/css/share.css"/>
<script type="text/javascript" src="/share/static/src/js/share.js"></script>
</xpath>
</template>
<template id="webclient_bootstrap" name="Webclient Bootstrap - Share" inherit_id="web.webclient_bootstrap">
<xpath expr="//nav[@id='oe_main_menu_navbar']" position="attributes">
<attribute name="groups">base.group_user,base.group_portal,share.group_shared</attribute>
</xpath>
<xpath expr="//div[@class='openerp openerp_webclient_container']//div" position="attributes">
<attribute name="groups">base.group_user,base.group_portal,share.group_shared</attribute>
</xpath>
</template>
</data>
</openerp>