Skip to content

Commit fb6e673

Browse files
committed
[MIG] website_snippet_filter_views: migration to 17.0
1 parent 836b7ec commit fb6e673

File tree

8 files changed

+70
-34
lines changed

8 files changed

+70
-34
lines changed

website_snippet_filter_views/README.rst

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,29 @@ Website Snippet Filter Views
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
3030

31-
This module add Website > Configuration > Dynamic snippet > Snippet
32-
filter and Website > Configuration Dynamic snippet > Snippet filter
33-
template menus to let website designer to configure dynamic snippets
34-
(like the dynamic carousel) in website.
31+
This module expose following menus
32+
33+
- Website > Configuration > Dynamic snippet > Snippet filter
34+
- Website > Configuration Dynamic snippet > Snippet filter template
35+
36+
This let website designer to configure dynamic snippets (like the
37+
dynamic carousel used to display latests blog posts) in website.
3538

3639
**Table of contents**
3740

3841
.. contents::
3942
:local:
4043

44+
Usage
45+
=====
46+
47+
- Create a shared filter on any model you want to display on website
48+
- Create or reuse a tempalte filter
49+
- Create a snippet filter that use your previous shared filter with
50+
field mappings
51+
- Use dynamic snippet using your new snippet filters and templates
52+
- Make sure model access right/rules are properly configured
53+
4154
Bug Tracker
4255
===========
4356

website_snippet_filter_views/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "Website Snippet Filter Views",
55
"summary": "Add website.snippet.filter backend views",
6-
"version": "14.0.1.0.0",
6+
"version": "17.0.1.0.0",
77
"category": "Website",
88
"website": "https://github.com/OCA/website",
99
"author": "Pierre Verkest <[email protected]>, "
Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
This module add Website \> Configuration \> Dynamic snippet \> Snippet
2-
filter and Website \> Configuration Dynamic snippet \> Snippet filter
3-
template menus to let website designer to configure dynamic snippets
4-
(like the dynamic carousel) in website.
1+
This module expose following menus
2+
* Website > Configuration > Dynamic snippet > Snippet filter
3+
* Website > Configuration Dynamic snippet > Snippet filter template
4+
5+
6+
This let website designer to configure dynamic snippets
7+
(like the dynamic carousel used to display latests blog posts)
8+
in website.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
* Create a shared filter on any model you want to display
2+
on website
3+
* Create or reuse a tempalte filter
4+
* Create a snippet filter that use your previous shared filter with field mappings
5+
* Use dynamic snippet using your new snippet filters and templates
6+
* Make sure model access right/rules are properly configured

website_snippet_filter_views/readme/USEAGE.rst

Lines changed: 0 additions & 6 deletions
This file was deleted.

website_snippet_filter_views/static/description/index.html

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -370,46 +370,61 @@ <h1 class="title">Website Snippet Filter Views</h1>
370370
!! source digest: sha256:d173bc20e11e5303357f68ba060bf755c485d1f2748725c8c0106c61c1de1b63
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372372
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/website/tree/17.0/website_snippet_filter_views"><img alt="OCA/website" src="https://img.shields.io/badge/github-OCA%2Fwebsite-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/website-17-0/website-17-0-website_snippet_filter_views"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/website&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373-
<p>This module add Website &gt; Configuration &gt; Dynamic snippet &gt; Snippet
374-
filter and Website &gt; Configuration Dynamic snippet &gt; Snippet filter
375-
template menus to let website designer to configure dynamic snippets
376-
(like the dynamic carousel) in website.</p>
373+
<p>This module expose following menus</p>
374+
<ul class="simple">
375+
<li>Website &gt; Configuration &gt; Dynamic snippet &gt; Snippet filter</li>
376+
<li>Website &gt; Configuration Dynamic snippet &gt; Snippet filter template</li>
377+
</ul>
378+
<p>This let website designer to configure dynamic snippets (like the
379+
dynamic carousel used to display latests blog posts) in website.</p>
377380
<p><strong>Table of contents</strong></p>
378381
<div class="contents local topic" id="contents">
379382
<ul class="simple">
380-
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-1">Bug Tracker</a></li>
381-
<li><a class="reference internal" href="#credits" id="toc-entry-2">Credits</a><ul>
382-
<li><a class="reference internal" href="#authors" id="toc-entry-3">Authors</a></li>
383-
<li><a class="reference internal" href="#contributors" id="toc-entry-4">Contributors</a></li>
384-
<li><a class="reference internal" href="#maintainers" id="toc-entry-5">Maintainers</a></li>
383+
<li><a class="reference internal" href="#usage" id="toc-entry-1">Usage</a></li>
384+
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-2">Bug Tracker</a></li>
385+
<li><a class="reference internal" href="#credits" id="toc-entry-3">Credits</a><ul>
386+
<li><a class="reference internal" href="#authors" id="toc-entry-4">Authors</a></li>
387+
<li><a class="reference internal" href="#contributors" id="toc-entry-5">Contributors</a></li>
388+
<li><a class="reference internal" href="#maintainers" id="toc-entry-6">Maintainers</a></li>
385389
</ul>
386390
</li>
387391
</ul>
388392
</div>
393+
<div class="section" id="usage">
394+
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
395+
<ul class="simple">
396+
<li>Create a shared filter on any model you want to display on website</li>
397+
<li>Create or reuse a tempalte filter</li>
398+
<li>Create a snippet filter that use your previous shared filter with
399+
field mappings</li>
400+
<li>Use dynamic snippet using your new snippet filters and templates</li>
401+
<li>Make sure model access right/rules are properly configured</li>
402+
</ul>
403+
</div>
389404
<div class="section" id="bug-tracker">
390-
<h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
405+
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
391406
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/website/issues">GitHub Issues</a>.
392407
In case of trouble, please check there if your issue has already been reported.
393408
If you spotted it first, help us to smash it by providing a detailed and welcomed
394409
<a class="reference external" href="https://github.com/OCA/website/issues/new?body=module:%20website_snippet_filter_views%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
395410
<p>Do not contact contributors directly about support or help with technical issues.</p>
396411
</div>
397412
<div class="section" id="credits">
398-
<h1><a class="toc-backref" href="#toc-entry-2">Credits</a></h1>
413+
<h1><a class="toc-backref" href="#toc-entry-3">Credits</a></h1>
399414
<div class="section" id="authors">
400-
<h2><a class="toc-backref" href="#toc-entry-3">Authors</a></h2>
415+
<h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
401416
<ul class="simple">
402417
<li>Pierre Verkest &lt;<a class="reference external" href="mailto:pierreverkest84&#64;gmail.com">pierreverkest84&#64;gmail.com</a>&gt;</li>
403418
</ul>
404419
</div>
405420
<div class="section" id="contributors">
406-
<h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
421+
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
407422
<ul class="simple">
408423
<li>Pierre Verkest &lt;<a class="reference external" href="mailto:pierreverkest84&#64;gmail.com">pierreverkest84&#64;gmail.com</a>&gt;</li>
409424
</ul>
410425
</div>
411426
<div class="section" id="maintainers">
412-
<h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2>
427+
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
413428
<p>This module is maintained by the OCA.</p>
414429
<a class="reference external image-reference" href="https://odoo-community.org">
415430
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />

website_snippet_filter_views/views/snippet_filter.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
<field name="name">Snippet filter</field>
7171
<field name="model">website.snippet.filter</field>
7272
<field name="arch" type="xml">
73-
<tree string="Snippet filter">
73+
<tree>
7474
<field name="name" />
7575
<field name="filter_id" />
7676
<field name="website_id" />

website_snippet_filter_views/views/snippet_filter_template.xml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@
1313
<field name="inherit_id" ref="base.view_view_form" />
1414
<field name="priority">75</field>
1515
<field name="arch" type="xml">
16-
<field name="key" position="before">
16+
<field name="website_id" position="after">
1717
<div class="alert alert-warning" role="alert" colspan="2">
18-
To be availaible as dynamic snippet template key value
19-
must contains <b>'.dynamic_filter_template_'</b>.
18+
To be available as dynamic snippet template key value
19+
must contains <b>'.dynamic_filter_template_&lt;model_name&gt;_'</b>.
20+
<br />
21+
Where &lt;model_name&gt; is the technical model name (with underscores).
2022
</div>
2123
</field>
2224
</field>
@@ -44,7 +46,9 @@
4446
Snippet filter template are used by dynamic snippet to render
4547
any object field on the website.
4648

47-
view key name must contains '.dynamic_filter_template_'
49+
view key name must contains '.dynamic_filter_template_&lt;model_name&gt;_'
50+
51+
where &lt;model_name&gt; is the technical name of the model (with underscores)
4852
</p>
4953
</field>
5054
</record>

0 commit comments

Comments
 (0)