<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Odoo/addons/website_blog/controllers/main.py, branch 14.0</title>
<subtitle>The current checkout of upstream Odoo</subtitle>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/'/>
<entry>
<title>[FIX] website_blog: Traceback on archived blog</title>
<updated>2021-02-04T08:49:28+00:00</updated>
<author>
<name>Goffin Simon</name>
<email>sig@odoo.com</email>
</author>
<published>2021-01-28T11:05:28+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=196d96ef8eaf8aa06e16c9768ed595fca1c315ff'/>
<id>196d96ef8eaf8aa06e16c9768ed595fca1c315ff</id>
<content type='text'>
Steps to reproduce the bug:

- Create a blogpost in the the blog 'travel
- Archive the blog 'travel'
- Open the blogpost

Bug:

A traceback was raised

opw:2444406

closes odoo/odoo#65204

Signed-off-by: Simon Goffin (sig) &lt;sig@openerp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Steps to reproduce the bug:

- Create a blogpost in the the blog 'travel
- Archive the blog 'travel'
- Open the blogpost

Bug:

A traceback was raised

opw:2444406

closes odoo/odoo#65204

Signed-off-by: Simon Goffin (sig) &lt;sig@openerp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] tools.sql, website_*: increment counter with skip lock</title>
<updated>2020-09-28T13:38:28+00:00</updated>
<author>
<name>Jeremy Kersten</name>
<email>jke@odoo.com</email>
</author>
<published>2020-09-25T15:06:36+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=d92e61e89f468c2db2fbd68b2f0d6b36c77f1065'/>
<id>d92e61e89f468c2db2fbd68b2f0d6b36c77f1065</id>
<content type='text'>
*blog, forum, slides

Based on https://github.com/odoo/odoo/pull/48552#discussion_r440061218 suggestion

Add a new method 'increment_skip_lock' in tools.sql to allow to easily
increment a specific field of 1 if the record is not locked.

The method return boolean if at least 1 record has been incremented.

closes odoo/odoo#58534

Signed-off-by: Jérémy Kersten (jke) &lt;jke@openerp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
*blog, forum, slides

Based on https://github.com/odoo/odoo/pull/48552#discussion_r440061218 suggestion

Add a new method 'increment_skip_lock' in tools.sql to allow to easily
increment a specific field of 1 if the record is not locked.

The method return boolean if at least 1 record has been incremented.

closes odoo/odoo#58534

Signed-off-by: Jérémy Kersten (jke) &lt;jke@openerp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] website_[blog, forum]: fix loop in retro compatible routes</title>
<updated>2020-09-28T10:47:31+00:00</updated>
<author>
<name>Jeremy Kersten</name>
<email>jke@odoo.com</email>
</author>
<published>2020-09-28T10:45:41+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=b5e1bafeb42e94b587c245e9e7aa844770a129c6'/>
<id>b5e1bafeb42e94b587c245e9e7aa844770a129c6</id>
<content type='text'>
Purpose of the retro-compatibility route was to redirect the old to the new.
And not redirect to themself and create a loop

closes odoo/odoo#58632

Signed-off-by: Jérémy Kersten (jke) &lt;jke@openerp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Purpose of the retro-compatibility route was to redirect the old to the new.
And not redirect to themself and create a loop

closes odoo/odoo#58632

Signed-off-by: Jérémy Kersten (jke) &lt;jke@openerp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] website_blog, *: add a way to search blog posts</title>
<updated>2020-07-31T07:40:31+00:00</updated>
<author>
<name>DramixDw</name>
<email>rve@odoo.com</email>
</author>
<published>2020-07-08T14:30:27+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=ea009585e1d14041fe19f1e6e190b286e96c0681'/>
<id>ea009585e1d14041fe19f1e6e190b286e96c0681</id>
<content type='text'>
*: website

As there was no way to search a blog post, it could be hard for someone
to find a particular post if there was a lot of blog post for example.

Part of https://github.com/odoo/odoo/pull/52759
task-2267693

Co-authored-by: qsm-odoo &lt;qsm@odoo.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
*: website

As there was no way to search a blog post, it could be hard for someone
to find a particular post if there was a lot of blog post for example.

Part of https://github.com/odoo/odoo/pull/52759
task-2267693

Co-authored-by: qsm-odoo &lt;qsm@odoo.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] website_[blog/shop/forum]: rename routes to remove 'useless' part</title>
<updated>2020-07-22T06:53:37+00:00</updated>
<author>
<name>Jeremy Kersten</name>
<email>jke@odoo.com</email>
</author>
<published>2020-07-22T06:49:30+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=9577dcbc3a2619843378a09f0627aefb3255a10f'/>
<id>9577dcbc3a2619843378a09f0627aefb3255a10f</id>
<content type='text'>
Retro-compatibility routes</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Retro-compatibility routes</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] website_[blog/shop/forum]: rename routes to remove 'useless' part</title>
<updated>2020-07-22T06:53:37+00:00</updated>
<author>
<name>Jeremy Kersten</name>
<email>jke@odoo.com</email>
</author>
<published>2020-07-17T12:37:58+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=01c17707bd216ad16d98766abd06e842044d052a'/>
<id>01c17707bd216ad16d98766abd06e842044d052a</id>
<content type='text'>
Url for a product become:
/shop/productname-id instead of /shop/product/productname-id

Url for a blog post become:
/blog/blogname-1/blogpost-1 instead of /blog/blogname-1/post/blogpost-1

Url for a question on forum become:
/forum/forumname-1/title-1 instead of /forum/forumname-1/question/title-1

task-2295016</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Url for a product become:
/shop/productname-id instead of /shop/product/productname-id

Url for a blog post become:
/blog/blogname-1/blogpost-1 instead of /blog/blogname-1/post/blogpost-1

Url for a question on forum become:
/forum/forumname-1/title-1 instead of /forum/forumname-1/question/title-1

task-2295016</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] website: make pager post compatible</title>
<updated>2020-06-05T15:47:06+00:00</updated>
<author>
<name>DramixDw</name>
<email>rve@odoo.com</email>
</author>
<published>2020-06-05T08:46:02+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=f0420013e07e1205696bdd7af5502b8f9e3fe271'/>
<id>f0420013e07e1205696bdd7af5502b8f9e3fe271</id>
<content type='text'>
As we introduced postlinks, some routes are no longer compatible with
GET requests anymore. Some of those routes were using the pager which
only send GET request. In order to make the pager comptabile, we're
addding a way to use postlinks in the pager.

task-2250385

closes odoo/odoo#52475

Signed-off-by: Jérémy Kersten (jke) &lt;jke@openerp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As we introduced postlinks, some routes are no longer compatible with
GET requests anymore. Some of those routes were using the pager which
only send GET request. In order to make the pager comptabile, we're
addding a way to use postlinks in the pager.

task-2250385

closes odoo/odoo#52475

Signed-off-by: Jérémy Kersten (jke) &lt;jke@openerp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] website_blog: use postlink for the tag cloud</title>
<updated>2020-05-29T15:09:42+00:00</updated>
<author>
<name>DramixDw</name>
<email>rve@odoo.com</email>
</author>
<published>2020-05-19T12:42:41+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=0f2cada32319b3910d6ace6d412cfa94a646c9c7'/>
<id>0f2cada32319b3910d6ace6d412cfa94a646c9c7</id>
<content type='text'>
Refactoring the tag cloud to make it work with post request.
Disallow multi-tag in get for bot indexation.

task-2250385</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Refactoring the tag cloud to make it work with post request.
Disallow multi-tag in get for bot indexation.

task-2250385</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] *: convert to private methods</title>
<updated>2020-05-14T11:59:10+00:00</updated>
<author>
<name>Martin Trigaux</name>
<email>mat@odoo.com</email>
</author>
<published>2020-02-14T10:22:15+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=d9287caf9408bb4ff85ad734cbca08e44321e205'/>
<id>d9287caf9408bb4ff85ad734cbca08e44321e205</id>
<content type='text'>
render, render_template, load, activity_schedule_with_view,
get_website_pages should all be private:
It should not be possible to render an aribtrary template only with
its name or id

Still need to render some qweb views from js so the method
render_template is kept public.
This explains why the website editor still need read access on
ir.ui.view as we want to allow any snippet to be rendered.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
render, render_template, load, activity_schedule_with_view,
get_website_pages should all be private:
It should not be possible to render an aribtrary template only with
its name or id

Still need to render some qweb views from js so the method
render_template is kept public.
This explains why the website editor still need read access on
ir.ui.view as we want to allow any snippet to be rendered.
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] website_blog: update viewed count without update the write_date</title>
<updated>2020-04-27T13:49:01+00:00</updated>
<author>
<name>Jeremy Kersten</name>
<email>jke@odoo.com</email>
</author>
<published>2020-04-23T14:37:00+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=27de8b1478902cf4b7cc7fcd0bd2736bf68ca3d6'/>
<id>27de8b1478902cf4b7cc7fcd0bd2736bf68ca3d6</id>
<content type='text'>
To backport in v13
+ check for optimistic lock

task-2211013

Co-authored-by: Romain Derie &lt;rde@odoo.com&gt;
Co-authored-by: Jeremy Kersten &lt;jke@odoo.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To backport in v13
+ check for optimistic lock

task-2211013

Co-authored-by: Romain Derie &lt;rde@odoo.com&gt;
Co-authored-by: Jeremy Kersten &lt;jke@odoo.com&gt;</pre>
</div>
</content>
</entry>
</feed>
