* event, website_event, website_forum, * website_hr_recruitment, website_sale Website access rights were buggy. The editor assets and website editor assets have to be loaded together to work so the previous behavior which only loaded one with the restricted access right was not right. Also, people which had the "Manager" access right for model like event or job only got access to creation and edition of those objects if they had the full access to website access rights. Now the website module creates the two same groups : * group_website_publisher: load all editor assets, give access to page creation for model the user has access (event, job, ...) and edition of those pages * group_website_designer: implies the first one and give access in creation and edition of all pages + access of all website menus The manager access rights for event, product, jobs, etc now implies the group_website_publisher group for the user (so that the manager have the editor assets and editor ui). Note: some python codes use the group_website_publisher for no right reason, this has to be adapted.
45 lines
1.6 KiB
XML
45 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<template id="partner_page" name="Partner Page">
|
|
<t t-call="website.layout">
|
|
<div id="wrap">
|
|
<div class="oe_structure"/>
|
|
<div class="container">
|
|
<div class="row">
|
|
<t t-call="website_partner.partner_detail"></t>
|
|
</div>
|
|
</div>
|
|
<div class="oe_structure"/>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
|
|
<template id="partner_detail" name="Partner Details">
|
|
<t t-call="website.publish_management">
|
|
<t t-set="object" t-value="partner"/>
|
|
<t t-set="publish_edit" t-value="True"/>
|
|
</t>
|
|
<h1 class="col-md-12 text-center" id="partner_name" t-field="partner.display_name"/>
|
|
<div class="col-md-4">
|
|
<div t-field="partner.image" t-options='{"widget": "image", "class": "center-block mb16"}'/>
|
|
<address class="well">
|
|
<div t-field="partner.self" t-options='{
|
|
"widget": "contact",
|
|
"fields": ["address", "website", "phone", "fax", "email"]
|
|
}'/>
|
|
</address>
|
|
<t t-raw="left_column or ''"/>
|
|
</div>
|
|
<div class="col-md-8 mt32">
|
|
<t t-if="partner">
|
|
<div t-field="partner.website_description"/>
|
|
<t groups="website.group_website_publisher">
|
|
<h2 class="css_non_editable_mode_hidden">Short Description for List View</h2>
|
|
<div class="css_non_editable_mode_hidden" t-field="partner.website_short_description"/>
|
|
</t>
|
|
</t>
|
|
<t t-raw="right_column or ''"/>
|
|
</div>
|
|
</template>
|
|
</odoo>
|