PURPOSE Replace the old event snippet which was a simple template with a javascript file doing a rpc by a new one directly inherited by the dynamic snippet. The old snippet was displaying a list of the upcoming events based on the user's localization. With this commit, it will be completely replaced by the new snippet. The migration will convert the old snippets to avoid versioning and keeping ugly code. The new snippet allows the user to set multiples tags to display only the wanted events on the website. LINKS Task-2489680 PR : odoo/odoo#68644 Related: odoo/upgrade#2406 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
20 lines
763 B
XML
20 lines
763 B
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo><data>
|
|
|
|
<record id="ir_filters_event_list_snippet" model="ir.filters">
|
|
<field name="name">Upcoming Events</field>
|
|
<field name="model_id">event.event</field>
|
|
<field name="user_id" eval="False" />
|
|
<field name="domain">[('date_begin', '>=', context_today())]</field>
|
|
<field name="sort">['date_begin desc']</field>
|
|
</record>
|
|
|
|
<record id="website_snippet_filter_event_list" model="website.snippet.filter">
|
|
<field name="filter_id" ref="website_event.ir_filters_event_list_snippet"/>
|
|
<field name="field_names">name,subtitle</field>
|
|
<field name="limit" eval="16"/>
|
|
<field name="name">Upcoming Events</field>
|
|
</record>
|
|
|
|
</data></odoo>
|