<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Odoo/addons/website_blog/tests, 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>[IMP] website_blog: tour query count improvement</title>
<updated>2020-09-18T13:08:20+00:00</updated>
<author>
<name>Jeremy Kersten</name>
<email>jke@odoo.com</email>
</author>
<published>2020-09-18T13:00:03+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=86f065e3571a1339798501156804fda6c57c6989'/>
<id>86f065e3571a1339798501156804fda6c57c6989</id>
<content type='text'>
Disabled livechat in blog query count
if website_livechat is installed before website_blog, the get_livechat_channel_info add
unrelated query for the current test. So we disabled it.

Courstesy of @Xavier-Do for analyse

closes odoo/odoo#58034

Signed-off-by: Xavier Dollé (xdo) &lt;xdo@odoo.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Disabled livechat in blog query count
if website_livechat is installed before website_blog, the get_livechat_channel_info add
unrelated query for the current test. So we disabled it.

Courstesy of @Xavier-Do for analyse

closes odoo/odoo#58034

Signed-off-by: Xavier Dollé (xdo) &lt;xdo@odoo.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] web_editor, *: make media-dialog search odoo media-library</title>
<updated>2020-09-16T07:01:15+00:00</updated>
<author>
<name>Samuel Degueldre</name>
<email>sad@odoo.com</email>
</author>
<published>2020-08-12T10:15:51+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=7a1308b426f94b33e2bd55e5d58e661067e26ff3'/>
<id>7a1308b426f94b33e2bd55e5d58e661067e26ff3</id>
<content type='text'>
*: website, web_unsplash, website_blog

We have recently created an odoo media library that exposes a public API
for searching for open-source media, including dynamic SVGs that can be
used with the dynamic background-shape system to create illustrations
whose colors can be changed by the user. This commit adds the
corresponding client-side functionalty: search for the images in the
media-library, creating a corresponding attachment when selected, as
well as an option to customize the colors of the dynamic SVGs.

In the process, adaptations have been made in the web_unsplash module to
avoid duplicating code and to adapt code that was making assumptions
that are no longer valid.

To make new users more aware of this feature, all default images have
been hidden from the media-dialog, so that the user is prompted so
search for images. Some tests and tours that were relying on having
default images in the media-dialog (eg in website_blog) have been
adapted to match.

task-2316651
Linked to: odoo/iap-apps#235

closes odoo/odoo#56479

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>
*: website, web_unsplash, website_blog

We have recently created an odoo media library that exposes a public API
for searching for open-source media, including dynamic SVGs that can be
used with the dynamic background-shape system to create illustrations
whose colors can be changed by the user. This commit adds the
corresponding client-side functionalty: search for the images in the
media-library, creating a corresponding attachment when selected, as
well as an option to customize the colors of the dynamic SVGs.

In the process, adaptations have been made in the web_unsplash module to
avoid duplicating code and to adapt code that was making assumptions
that are no longer valid.

To make new users more aware of this feature, all default images have
been hidden from the media-dialog, so that the user is prompted so
search for images. Some tests and tours that were relying on having
default images in the media-dialog (eg in website_blog) have been
adapted to match.

task-2316651
Linked to: odoo/iap-apps#235

closes odoo/odoo#56479

Signed-off-by: Jérémy Kersten (jke) &lt;jke@openerp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] website: add missing digest dependency</title>
<updated>2020-08-13T08:26:08+00:00</updated>
<author>
<name>Thibault Delavallée</name>
<email>tde@odoo.com</email>
</author>
<published>2020-08-13T07:08:41+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=f8e0c92bf4fd21eeb12cd4cc2a2f47f1304b23aa'/>
<id>f8e0c92bf4fd21eeb12cd4cc2a2f47f1304b23aa</id>
<content type='text'>
Related to digest update in 13.4 (a595ebfca5ab7041224c661f404138612257bdda).

QUERY COUNT IN BLOG

Local installation of blog still makes those tests use 27 or 28 queries. On
runbot it grows until 32.

Due to dependency change, installation order changes. It may have an effect on
query count in website loading some pages in blog. This is worth checking why
queries are added.
Digest module itself has nothing to do with website. It could either be a side
effect of some computed field, either an installation order change adding more
modules before installing blog, with side-effect of adding queries due to
another module.

As without this fix installing website is not possible, let us merge this one
and investigate further soon.

closes odoo/odoo#55835

Signed-off-by: Thibault Delavallee (tde) &lt;tde@openerp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Related to digest update in 13.4 (a595ebfca5ab7041224c661f404138612257bdda).

QUERY COUNT IN BLOG

Local installation of blog still makes those tests use 27 or 28 queries. On
runbot it grows until 32.

Due to dependency change, installation order changes. It may have an effect on
query count in website loading some pages in blog. This is worth checking why
queries are added.
Digest module itself has nothing to do with website. It could either be a side
effect of some computed field, either an installation order change adding more
modules before installing blog, with side-effect of adding queries due to
another module.

As without this fix installing website is not possible, let us merge this one
and investigate further soon.

closes odoo/odoo#55835

Signed-off-by: Thibault Delavallee (tde) &lt;tde@openerp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] website, website_blog: adapt tests</title>
<updated>2020-06-11T15:26:29+00:00</updated>
<author>
<name>Raphael Collet</name>
<email>rco@odoo.com</email>
</author>
<published>2020-06-10T07:30:45+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=a6c43e0366473f9e920a35d95f1703ba58a20fef'/>
<id>a6c43e0366473f9e920a35d95f1703ba58a20fef</id>
<content type='text'>
closes odoo/odoo#52865

X-original-commit: ae268ec99e25d246593b3996981b4287a0ed3081
Signed-off-by: Raphael Collet (rco) &lt;rco@openerp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
closes odoo/odoo#52865

X-original-commit: ae268ec99e25d246593b3996981b4287a0ed3081
Signed-off-by: Raphael Collet (rco) &lt;rco@openerp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] portal: fix attachments upload as portal</title>
<updated>2020-05-25T09:15:10+00:00</updated>
<author>
<name>std-odoo</name>
<email>std@odoo.com</email>
</author>
<published>2020-05-07T12:52:51+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=38b2c9e8f8e1e7f90e984115ad4a3115926ae2c3'/>
<id>38b2c9e8f8e1e7f90e984115ad4a3115926ae2c3</id>
<content type='text'>
Bugs
====
On e-commerce, the portal user is not able to upload
attachment with his comment, under a product.

On website blog, the portal user is not able to upload attachment with
his comment, in the discussion of the blog.

And, in `website_crm_partner_assign`, portal user is not able to upload
attachment with his comment, under the lead/opp.

Issue
=====
In the create method of the mail message, we check is the user can
read the attachment. If he can't, we raise an error.

But, the method that make the verification doesn't care about the access
token. So, when a portal user want to upload an attachment on a "public"
record (without a token on the record to sudoed it) the error is raised.

The portal user give an token for the attachment, so he should be able
to attach it to the message. This verification is done with
`_portal_post_check_attachments` so we can sudo write the attachment
after the creation of the mail message to bypass the verification.

Task-2214795

closes odoo/odoo#51772

X-original-commit: d59f8f62dbc7771fee51c3593f89f9b6832bb7ec
Signed-off-by: Thibault Delavallee (tde) &lt;tde@openerp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bugs
====
On e-commerce, the portal user is not able to upload
attachment with his comment, under a product.

On website blog, the portal user is not able to upload attachment with
his comment, in the discussion of the blog.

And, in `website_crm_partner_assign`, portal user is not able to upload
attachment with his comment, under the lead/opp.

Issue
=====
In the create method of the mail message, we check is the user can
read the attachment. If he can't, we raise an error.

But, the method that make the verification doesn't care about the access
token. So, when a portal user want to upload an attachment on a "public"
record (without a token on the record to sudoed it) the error is raised.

The portal user give an token for the attachment, so he should be able
to attach it to the message. This verification is done with
`_portal_post_check_attachments` so we can sudo write the attachment
after the creation of the mail message to bypass the verification.

Task-2214795

closes odoo/odoo#51772

X-original-commit: d59f8f62dbc7771fee51c3593f89f9b6832bb7ec
Signed-off-by: Thibault Delavallee (tde) &lt;tde@openerp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] website_blog: be more lax in perf test</title>
<updated>2020-05-05T13:39:58+00:00</updated>
<author>
<name>Jeremy Kersten</name>
<email>jke@odoo.com</email>
</author>
<published>2020-05-05T12:21:46+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=d0946b369476fb12c82107ee7b49e455631d4c2b'/>
<id>d0946b369476fb12c82107ee7b49e455631d4c2b</id>
<content type='text'>
Seems like randomly one request disappear. So 28 vs 29

Closes the eyes, while it is not 30 vs 29 ;)

closes odoo/odoo#50667

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>
Seems like randomly one request disappear. So 28 vs 29

Closes the eyes, while it is not 30 vs 29 ;)

closes odoo/odoo#50667

Signed-off-by: Jérémy Kersten (jke) &lt;jke@openerp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] website: fix mismatch lang code in compute of canonical url</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:33:03+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=02abc57713e1e4d20a8943d4e00f769018856c94'/>
<id>02abc57713e1e4d20a8943d4e00f769018856c94</id>
<content type='text'>
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>
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>
<entry>
<title>[IMP] base: ir_http - don't check the exists in ModelConvert</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:31:18+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=f3df95bad9f84bff7d8c0d542d9d60b0a46af6b5'/>
<id>f3df95bad9f84bff7d8c0d542d9d60b0a46af6b5</id>
<content type='text'>
Http routing and websits module will already do it later and handle the case.

The only ModelConverter used that will be impacted is:
   /web_editor/attachment/&lt;model("ir.attachment"):attachment&gt;
that is a json controller called with eisting data

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>
Http routing and websits module will already do it later and handle the case.

The only ModelConverter used that will be impacted is:
   /web_editor/attachment/&lt;model("ir.attachment"):attachment&gt;
that is a json controller called with eisting data

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>
<entry>
<title>[IMP] website_blog: blog post, replace viewref by is_view_enable</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:27:50+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=841ebee16db305183c91e236a74472385b04ba6e'/>
<id>841ebee16db305183c91e236a74472385b04ba6e</id>
<content type='text'>
is_view_enable is cached

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>
is_view_enable is cached

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>
<entry>
<title>[IMP] website_blog: remove unused code</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:14:44+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=6ae4d132a017f40ab284c234b813157cef625213'/>
<id>6ae4d132a017f40ab284c234b813157cef625213</id>
<content type='text'>
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>
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>
