<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Odoo/addons/website/static/src/snippets, 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: remove "add image" button from the normal mode</title>
<updated>2021-05-31T07:44:30+00:00</updated>
<author>
<name>Younn Olivier</name>
<email>yol@odoo.com</email>
</author>
<published>2021-04-29T09:04:41+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=3bae864d1e587e87262c56f1c5f789ac6a6fabc4'/>
<id>3bae864d1e587e87262c56f1c5f789ac6a6fabc4</id>
<content type='text'>
The "Add image" button was shown out of the editor mode when removing
all images from a snippet.

task-2469516

closes odoo/odoo#71424

X-original-commit: c1f4a39071c8f99499a7e1e5214362ac29df8881
Signed-off-by: Quentin Smetz (qsm) &lt;qsm@odoo.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The "Add image" button was shown out of the editor mode when removing
all images from a snippet.

task-2469516

closes odoo/odoo#71424

X-original-commit: c1f4a39071c8f99499a7e1e5214362ac29df8881
Signed-off-by: Quentin Smetz (qsm) &lt;qsm@odoo.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] website: hide cookie bar when entering edit mode</title>
<updated>2021-04-29T09:03:48+00:00</updated>
<author>
<name>Arthur Detroux (ard)</name>
<email>ard@odoo.com</email>
</author>
<published>2021-04-28T09:52:46+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=8c672662c80d0dfaeb06eedfc7136a68734fbdb3'/>
<id>8c672662c80d0dfaeb06eedfc7136a68734fbdb3</id>
<content type='text'>
Previously :
Once a user enabled the cookie bar, it prevented him from dropping
snippets in the main area of the page because the focus was on
the cookie bar. Dropping snippets there has a confusing behavior and
might make the user think the editor is broken.

Reason :
The cookie bar has an oe_structure class and takes over the body
if it's not hidden or dismissed. The oe_structure allows to drop
snippets.

Fix :
Hiding the cookie bar when user enters edit mode to avoid dropping
snippets in it by mistake.

task-2477430

closes odoo/odoo#68938

Signed-off-by: Quentin Smetz (qsm) &lt;qsm@odoo.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously :
Once a user enabled the cookie bar, it prevented him from dropping
snippets in the main area of the page because the focus was on
the cookie bar. Dropping snippets there has a confusing behavior and
might make the user think the editor is broken.

Reason :
The cookie bar has an oe_structure class and takes over the body
if it's not hidden or dismissed. The oe_structure allows to drop
snippets.

Fix :
Hiding the cookie bar when user enters edit mode to avoid dropping
snippets in it by mistake.

task-2477430

closes odoo/odoo#68938

Signed-off-by: Quentin Smetz (qsm) &lt;qsm@odoo.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] website: fix share snippet icons vertical alignment</title>
<updated>2021-04-06T09:52:30+00:00</updated>
<author>
<name>Younn Olivier</name>
<email>yol@odoo.com</email>
</author>
<published>2021-02-09T20:09:46+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=be8801716ac33d8ce8d5f0a4dba7422bde695c04'/>
<id>be8801716ac33d8ce8d5f0a4dba7422bde695c04</id>
<content type='text'>
Icons were not centered in the share snippet.

Part of https://github.com/odoo/odoo/pull/65575
task-2446852</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Icons were not centered in the share snippet.

Part of https://github.com/odoo/odoo/pull/65575
task-2446852</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] website: make images wall editable</title>
<updated>2021-03-09T15:35:10+00:00</updated>
<author>
<name>xO-Tx</name>
<email>mou@odoo.com</email>
</author>
<published>2021-02-24T02:34:11+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=412c6021ffa513a77cace807a41bffa7909e9179'/>
<id>412c6021ffa513a77cace807a41bffa7909e9179</id>
<content type='text'>
The goal of this commit is to make the Images Wall/Gallery snippet
editable to be able to open the media dialog on "double-click"
on images.

Backport from https://github.com/odoo/odoo/pull/66544

closes odoo/odoo#67547

Signed-off-by: Quentin Smetz (qsm) &lt;qsm@odoo.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The goal of this commit is to make the Images Wall/Gallery snippet
editable to be able to open the media dialog on "double-click"
on images.

Backport from https://github.com/odoo/odoo/pull/66544

closes odoo/odoo#67547

Signed-off-by: Quentin Smetz (qsm) &lt;qsm@odoo.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] website: fix image gallery slider index</title>
<updated>2021-03-05T15:23:59+00:00</updated>
<author>
<name>Younn Olivier</name>
<email>yol@odoo.com</email>
</author>
<published>2021-03-05T15:21:06+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=666fc3697bd7d70cfa0dd92f0a401b771196bb27'/>
<id>666fc3697bd7d70cfa0dd92f0a401b771196bb27</id>
<content type='text'>
The gallery slider index was wrongly calculated when the gallery had no
active element, as the jquery method .index() will still return -1 when
no element is found.

task-2472041

closes odoo/odoo#67389

Signed-off-by: Quentin Smetz (qsm) &lt;qsm@odoo.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The gallery slider index was wrongly calculated when the gallery had no
active element, as the jquery method .index() will still return -1 when
no element is found.

task-2472041

closes odoo/odoo#67389

Signed-off-by: Quentin Smetz (qsm) &lt;qsm@odoo.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] website: show thumbnails for img gallery in tabs snippet</title>
<updated>2021-02-22T11:29:49+00:00</updated>
<author>
<name>Andrea Grazioso (agr-odoo)</name>
<email>agr@odoo.com</email>
</author>
<published>2021-02-15T16:25:58+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=eeb6eea90b9d44a42b1cc4f6b6f6c29cc7370d26'/>
<id>eeb6eea90b9d44a42b1cc4f6b6f6c29cc7370d26</id>
<content type='text'>
- Go to the website
- Drag a "Tabs" block on the page, you will have 3 example tabs
- Click on the tab "Contact" and drag in the block "Image Gallery"
- Add multiple images to the image gallery
- Click on one of the other tabs so that the image gallery is hidden
- Save

The image gallery do not have the thumbails anymore.
This occurs because when the carousel-indicator is hidden, jquery is not
able to fetch its real length, so no icons are added.

opw-2438513

closes odoo/odoo#66197

Signed-off-by: Quentin Smetz (qsm) &lt;qsm@odoo.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Go to the website
- Drag a "Tabs" block on the page, you will have 3 example tabs
- Click on the tab "Contact" and drag in the block "Image Gallery"
- Add multiple images to the image gallery
- Click on one of the other tabs so that the image gallery is hidden
- Save

The image gallery do not have the thumbails anymore.
This occurs because when the carousel-indicator is hidden, jquery is not
able to fetch its real length, so no icons are added.

opw-2438513

closes odoo/odoo#66197

Signed-off-by: Quentin Smetz (qsm) &lt;qsm@odoo.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] website, web_editor : image gallery miniatures are not updated</title>
<updated>2021-02-11T15:44:53+00:00</updated>
<author>
<name>Younn Olivier</name>
<email>yol@odoo.com</email>
</author>
<published>2021-02-02T11:33:12+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=a291923a95841c8b1ff9d3bb743f3da03a80dedb'/>
<id>a291923a95841c8b1ff9d3bb743f3da03a80dedb</id>
<content type='text'>
Description of the task :
Make the website ui as consistent as possible by making some layout
quick wins.

Behaviour before the PR is merged :
When changing an image in the image gallery snippet, its miniature
is not updated.

Desired behaviour after PR is merged :
The miniature of an image of the image gallery is updated when the
image is changed.
The snippet options listens to the 'image_changed' event triggered
by the media widget.

task-2438556</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Description of the task :
Make the website ui as consistent as possible by making some layout
quick wins.

Behaviour before the PR is merged :
When changing an image in the image gallery snippet, its miniature
is not updated.

Desired behaviour after PR is merged :
The miniature of an image of the image gallery is updated when the
image is changed.
The snippet options listens to the 'image_changed' event triggered
by the media widget.

task-2438556</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] website, website_sale: preconfigure Dynamic Products w/ 1st option</title>
<updated>2021-01-28T15:11:43+00:00</updated>
<author>
<name>Benoit Socias</name>
<email>bso@odoo.com</email>
</author>
<published>2021-01-28T14:54:13+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=ca6cc2674e1795a5954495d1725cd86a7db8f964'/>
<id>ca6cc2674e1795a5954495d1725cd86a7db8f964</id>
<content type='text'>
Before this commit the Dynamic Products snippet was displaying a message
box instead of its content until its template and product category were
selected.

After this commit the Dynamic Products snippet is automatically
configured on drop with the first available template and the first
available product category. The message box only appears if no product
category exists yet. Also an "All Products" category was added as first
element of the list to make the snippet usable before categories are
defined.

task-2439295
https://github.com/odoo/odoo/pull/64982

closes odoo/odoo#64982

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>
Before this commit the Dynamic Products snippet was displaying a message
box instead of its content until its template and product category were
selected.

After this commit the Dynamic Products snippet is automatically
configured on drop with the first available template and the first
available product category. The message box only appears if no product
category exists yet. Also an "All Products" category was added as first
element of the list to make the snippet usable before categories are
defined.

task-2439295
https://github.com/odoo/odoo/pull/64982

closes odoo/odoo#64982

Signed-off-by: Jérémy Kersten (jke) &lt;jke@openerp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] website: fix popup height</title>
<updated>2021-01-27T14:48:58+00:00</updated>
<author>
<name>Benjamin Vray</name>
<email>bvr@odoo.com</email>
</author>
<published>2020-11-18T14:45:51+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=9cd8c15ed22e3033c654fcfa28f76b79083dcf98'/>
<id>9cd8c15ed22e3033c654fcfa28f76b79083dcf98</id>
<content type='text'>
- The modal content of the popup snippet had a maximum height of 100%
because of a global rule on modals. But, here, the scrollable element
is not the modal so we dont want this rule.

- For the popup to be scrolled correctly we also had to remove the
rule that adds a fixed 100% height on modal-dialog and we added a
min-height of 100% to correctly display the popup in the middle
position.

Part of https://github.com/odoo/odoo/pull/61998
task-2312878</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- The modal content of the popup snippet had a maximum height of 100%
because of a global rule on modals. But, here, the scrollable element
is not the modal so we dont want this rule.

- For the popup to be scrolled correctly we also had to remove the
rule that adds a fixed 100% height on modal-dialog and we added a
min-height of 100% to correctly display the popup in the middle
position.

Part of https://github.com/odoo/odoo/pull/61998
task-2312878</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] website: Warning message on website if dynamic snippet category deleted</title>
<updated>2021-01-22T11:22:12+00:00</updated>
<author>
<name>Nasreddin (bon)</name>
<email>bon@odoo.com</email>
</author>
<published>2021-01-21T10:40:54+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=e452d30f739db39a088248a3109c8c49cff9d49f'/>
<id>e452d30f739db39a088248a3109c8c49cff9d49f</id>
<content type='text'>
Issue

	- Install "Ecommerce" app
	- Go to 'Shop' page and edit it
	- Add a "Dynamic Products" block
	- Click on it to edit it :
	-  Select any template
	-  Select `Desks` as product category
	-  Save
	- Go to "Website -&gt; Configuration -&gt; eCommerce Categories"
	- Delete the "Desks" category
	- Go back to Shop page

	Error : "Record does not exist or has been deleted".

Cause

	The search domain is looking for child categories of dataset.productCategoryId
	(who does not exist anymore in the above case).
	`child_of` do a browse() to fetch the records, and therefore generate
	an error if category not found.

Solution

	Log warning message if unexptected domain and return empty records set instead.

This commit also reverts commit 0de069b8ca9fb005ba5b076984f5677de25889ee that generated the issue.

opw-2440917

closes odoo/odoo#64847

Signed-off-by: LTU-Odoo &lt;IT-Ideas@users.noreply.github.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Issue

	- Install "Ecommerce" app
	- Go to 'Shop' page and edit it
	- Add a "Dynamic Products" block
	- Click on it to edit it :
	-  Select any template
	-  Select `Desks` as product category
	-  Save
	- Go to "Website -&gt; Configuration -&gt; eCommerce Categories"
	- Delete the "Desks" category
	- Go back to Shop page

	Error : "Record does not exist or has been deleted".

Cause

	The search domain is looking for child categories of dataset.productCategoryId
	(who does not exist anymore in the above case).
	`child_of` do a browse() to fetch the records, and therefore generate
	an error if category not found.

Solution

	Log warning message if unexptected domain and return empty records set instead.

This commit also reverts commit 0de069b8ca9fb005ba5b076984f5677de25889ee that generated the issue.

opw-2440917

closes odoo/odoo#64847

Signed-off-by: LTU-Odoo &lt;IT-Ideas@users.noreply.github.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
