In backend, we may want to use tags for advanced use cases like reporting, filtering, aggregating in spreadsheet, ... However right now we cannot define tag categories dedicated for 'internal use only'. Similar to eLearning, this commit introduces facility to decide whether or not to show the tag categories on the website. It is based on website.published mixin. is_published field will be used for taht purpose. ACLs are updated accordingly. If the category is hidden from the website then it is used for internal purpose only. In order to make all the events menu together, this commit moves the 'Event Tags Categories' menu after 'Event Stages'. COM PR odoo/odoo#63485 UPG PR odoo/upgrade#2088 Task Id-2300230 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
42 lines
2.1 KiB
XML
42 lines
2.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data noupdate="1">
|
|
<record id="event_event_public" model="ir.rule">
|
|
<field name="name">Event: public/portal: published read</field>
|
|
<field name="model_id" ref="event.model_event_event"/>
|
|
<field name="domain_force">[('website_published', '=', True)]</field>
|
|
<field name="groups" eval="[(4, ref('base.group_public')), (4, ref('base.group_portal'))]"/>
|
|
<field name="perm_read" eval="True"/>
|
|
<field name="perm_write" eval="False"/>
|
|
<field name="perm_create" eval="False"/>
|
|
<field name="perm_unlink" eval="False"/>
|
|
</record>
|
|
|
|
<record id="ir_rule_event_tag_public" model="ir.rule">
|
|
<field name="name">Event Tag: public/portal: color = published and category = published</field>
|
|
<field name="model_id" ref="event.model_event_tag"/>
|
|
<field name="domain_force">[('category_id.website_published', '=', True), ('color', '!=', False), ('color', '!=', 0)]</field>
|
|
<field name="groups" eval="[(4, ref('base.group_public')), (4, ref('base.group_portal'))]"/>
|
|
<field name="perm_read" eval="True"/>
|
|
<field name="perm_write" eval="False"/>
|
|
<field name="perm_create" eval="False"/>
|
|
<field name="perm_unlink" eval="False"/>
|
|
</record>
|
|
|
|
<record id="ir_rule_event_event_ticket_public" model="ir.rule">
|
|
<field name="name">Event Ticket: public/portal: published read</field>
|
|
<field name="model_id" ref="event.model_event_event_ticket"/>
|
|
<field name="domain_force">[('event_id.website_published', '=', True)]</field>
|
|
<field name="groups" eval="[(4, ref('base.group_public')), (4, ref('base.group_portal'))]"/>
|
|
<field name="perm_read" eval="True"/>
|
|
<field name="perm_write" eval="False"/>
|
|
<field name="perm_create" eval="False"/>
|
|
<field name="perm_unlink" eval="False"/>
|
|
</record>
|
|
</data>
|
|
|
|
<record id="event.group_event_manager" model="res.groups">
|
|
<field name="implied_ids" eval="[(4, ref('website.group_website_publisher'))]"/>
|
|
</record>
|
|
</odoo>
|