<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Odoo/addons/website_sale/models, 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_sale: Display discounted price with included tax</title>
<updated>2021-04-23T07:23:59+00:00</updated>
<author>
<name>Goffin Simon</name>
<email>sig@odoo.com</email>
</author>
<published>2021-04-19T16:15:30+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=a1beb1a4b3d7cc9724f5a9adeb1183c0a89e175f'/>
<id>a1beb1a4b3d7cc9724f5a9adeb1183c0a89e175f</id>
<content type='text'>
Steps to reproduce the bug:

- Let's consider a company in $
- Let's consider two sales taxes T1 (10% included) and T2 (0%)
- Define a fiscal position FP that maps T1 to T2
- Define a product P with T1, price = 11$ and available in the shop
- Define a pricelist PL in € such as 1€ = 2$, show discount to customer and discount P with 50%
- Define a portal user PU with FP and PL
- Log with PU
- Add P in the cart

Bug:

The unit price of P was 2,75€ instead of 2,5€ and the discounted price was 10€ instead of 5€

PS: Before adding P in the cart, the correct unit price and discounted price were displayed.

opw:2472528

closes odoo/odoo#69715

X-original-commit: ea259218196b2d9dc71beffea697025580c6d696
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:

- Let's consider a company in $
- Let's consider two sales taxes T1 (10% included) and T2 (0%)
- Define a fiscal position FP that maps T1 to T2
- Define a product P with T1, price = 11$ and available in the shop
- Define a pricelist PL in € such as 1€ = 2$, show discount to customer and discount P with 50%
- Define a portal user PU with FP and PL
- Log with PU
- Add P in the cart

Bug:

The unit price of P was 2,75€ instead of 2,5€ and the discounted price was 10€ instead of 5€

PS: Before adding P in the cart, the correct unit price and discounted price were displayed.

opw:2472528

closes odoo/odoo#69715

X-original-commit: ea259218196b2d9dc71beffea697025580c6d696
Signed-off-by: Simon Goffin (sig) &lt;sig@openerp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] website_sale : remove the default value from related fields</title>
<updated>2021-03-15T10:59:49+00:00</updated>
<author>
<name>Djamel (otd)</name>
<email>otd@odoo.com</email>
</author>
<published>2021-03-12T15:17:48+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=a7110b616cb26641a546c22ff5ecf6aff073edfb'/>
<id>a7110b616cb26641a546c22ff5ecf6aff073edfb</id>
<content type='text'>
Problem :
In the website settings, there are related fields with a default value.
The ORM will therefore only take the default value ​​and ignore the value of "related".

Solution :
Remove default value from related fields

opw-2467959

closes odoo/odoo#67774

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>
Problem :
In the website settings, there are related fields with a default value.
The ORM will therefore only take the default value ​​and ignore the value of "related".

Solution :
Remove default value from related fields

opw-2467959

closes odoo/odoo#67774

Signed-off-by: Jérémy Kersten (jke) &lt;jke@openerp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] website_sale: Wrong price in the shop</title>
<updated>2021-03-18T11:49:26+00:00</updated>
<author>
<name>Goffin Simon</name>
<email>sig@odoo.com</email>
</author>
<published>2021-03-17T10:02:23+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=4565f92c459f136fc0db79f8145b058e8a8a8972'/>
<id>4565f92c459f136fc0db79f8145b058e8a8a8972</id>
<content type='text'>
Steps to reproduce the issue:

- Let's consider a product P (11€) with a 10% included tax T1
- Let's consider a fiscal position FP that mappes T1 to a tax T2 (0%)
- Let's consider a website that displays prices with tax included
- Let's consider a portal user PU with FP as fiscal postion
- Log with PU
- Go to the shop and filter products to see P

Bug:

The price of P was 11€ instead of 10€

PS: When adding P in the cart, the correct price is displayed.

opw:2472528

closes odoo/odoo#68074

X-original-commit: e7bfadea847012ee956b7bb425688b5f9ccda9cf
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 issue:

- Let's consider a product P (11€) with a 10% included tax T1
- Let's consider a fiscal position FP that mappes T1 to a tax T2 (0%)
- Let's consider a website that displays prices with tax included
- Let's consider a portal user PU with FP as fiscal postion
- Log with PU
- Go to the shop and filter products to see P

Bug:

The price of P was 11€ instead of 10€

PS: When adding P in the cart, the correct price is displayed.

opw:2472528

closes odoo/odoo#68074

X-original-commit: e7bfadea847012ee956b7bb425688b5f9ccda9cf
Signed-off-by: Simon Goffin (sig) &lt;sig@openerp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] website_sale: only show products of the current companies</title>
<updated>2021-03-10T15:15:31+00:00</updated>
<author>
<name>nie</name>
<email>nie@odoo.com</email>
</author>
<published>2021-03-10T10:11:17+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=937e0bd7109ccd4c0e595eaea2f96ea8a737cbfd'/>
<id>937e0bd7109ccd4c0e595eaea2f96ea8a737cbfd</id>
<content type='text'>
Steps:
- Create a second company
- Go to Website &gt; Products &gt; Products
- Create a product for all companies
- Click the "Go to Website" smart button
- Click "Edit in Backend" in the top-right corner
- Change the product's company to the one you're not on
- Go to Visitors &gt; Visitors

Bug:
Access Error:
The requested operation ("read" on "Product" (product.product)) was
rejected because of the following rules:

(Records: Two prod (id=42), User: Mitchell Admin (id=2))

Explanation:
It happens because of the rule `product_comp_rule` which prevents
reading a product from a different company.
This commit filters the visited products on the current companies.

opw:2467138

closes odoo/odoo#67603

X-original-commit: 984adb180ab1a255fac086fd61478141074e8d31
Signed-off-by: Nicolas Lempereur (nle) &lt;nle@odoo.com&gt;
Signed-off-by: backspac &lt;backspac@users.noreply.github.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Steps:
- Create a second company
- Go to Website &gt; Products &gt; Products
- Create a product for all companies
- Click the "Go to Website" smart button
- Click "Edit in Backend" in the top-right corner
- Change the product's company to the one you're not on
- Go to Visitors &gt; Visitors

Bug:
Access Error:
The requested operation ("read" on "Product" (product.product)) was
rejected because of the following rules:

(Records: Two prod (id=42), User: Mitchell Admin (id=2))

Explanation:
It happens because of the rule `product_comp_rule` which prevents
reading a product from a different company.
This commit filters the visited products on the current companies.

opw:2467138

closes odoo/odoo#67603

X-original-commit: 984adb180ab1a255fac086fd61478141074e8d31
Signed-off-by: Nicolas Lempereur (nle) &lt;nle@odoo.com&gt;
Signed-off-by: backspac &lt;backspac@users.noreply.github.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] website_sale: we don't support rounding uom in ecommerce</title>
<updated>2021-03-04T16:12:36+00:00</updated>
<author>
<name>Jeremy Kersten</name>
<email>jke@odoo.com</email>
</author>
<published>2021-03-02T15:05:51+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=f344c4aea642a902ee244390621a35d7b649d923'/>
<id>f344c4aea642a902ee244390621a35d7b649d923</id>
<content type='text'>
We only support int, following #c9edca7896e3096289936f5399a82f08a59b60ce

opw-2456796

closes odoo/odoo#67279

X-original-commit: a05a34366f6dc8c70b39c15c3441beaf6bbb72d2
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>
We only support int, following #c9edca7896e3096289936f5399a82f08a59b60ce

opw-2456796

closes odoo/odoo#67279

X-original-commit: a05a34366f6dc8c70b39c15c3441beaf6bbb72d2
Signed-off-by: Jérémy Kersten (jke) &lt;jke@openerp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] website_sale: send confirmation email when no amount</title>
<updated>2021-01-28T16:40:44+00:00</updated>
<author>
<name>Andrea Grazioso (agr-odoo)</name>
<email>agr@odoo.com</email>
</author>
<published>2021-01-27T16:09:03+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=b54f981908e6c7f67b97ea858c1d093dc09596f5'/>
<id>b54f981908e6c7f67b97ea858c1d093dc09596f5</id>
<content type='text'>
As user access the ecommerce and add to cart a free product (0$ total)
Checkout and Confirm
No email will be sent for confirmation

This occur because the confirmation email is normally sent in the
transaction callback, which is not created when the amount is 0

opw-2440335

closes odoo/odoo#65233

X-original-commit: ed3e69df1564eca3becdc57181608bc0211ca4c5
Signed-off-by: agr-odoo &lt;agr-odoo@users.noreply.github.com&gt;
Signed-off-by: Jorge Pinna Puissant (jpp) &lt;jpp@odoo.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As user access the ecommerce and add to cart a free product (0$ total)
Checkout and Confirm
No email will be sent for confirmation

This occur because the confirmation email is normally sent in the
transaction callback, which is not created when the amount is 0

opw-2440335

closes odoo/odoo#65233

X-original-commit: ed3e69df1564eca3becdc57181608bc0211ca4c5
Signed-off-by: agr-odoo &lt;agr-odoo@users.noreply.github.com&gt;
Signed-off-by: Jorge Pinna Puissant (jpp) &lt;jpp@odoo.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] website_sale: Payment terms in multi companies</title>
<updated>2021-01-26T09:50:35+00:00</updated>
<author>
<name>Goffin Simon</name>
<email>sig@odoo.com</email>
</author>
<published>2021-01-26T09:50:35+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=48ec6f2e4f91e4d1317b246b7017f78746161450'/>
<id>48ec6f2e4f91e4d1317b246b7017f78746161450</id>
<content type='text'>
Steps to reproduce the bug:

- Let's consider two companies C1, C2 and a website W1 in C1
- Set C2 on the payment term Immediate payment
- Go to the shop
- Add a product in the cart

Bug:

A traceback was raised because Immediate was not in company C1

opw:2431705

closes odoo/odoo#65045

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:

- Let's consider two companies C1, C2 and a website W1 in C1
- Set C2 on the payment term Immediate payment
- Go to the shop
- Add a product in the cart

Bug:

A traceback was raised because Immediate was not in company C1

opw:2431705

closes odoo/odoo#65045

Signed-off-by: Simon Goffin (sig) &lt;sig@openerp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] website_sale: Check last sale order ship address before use</title>
<updated>2020-12-21T17:43:18+00:00</updated>
<author>
<name>Andrea Grazioso (agr-odoo)</name>
<email>agr@odoo.com</email>
</author>
<published>2020-12-18T11:11:52+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=f545a385d2b2fde260e552dc3d13ab6f9246759e'/>
<id>f545a385d2b2fde260e552dc3d13ab6f9246759e</id>
<content type='text'>
1. Create a shipping address
2. Place a SO through backend, and choose that specific delivery
address.
3. Archive that address
4. Place an Order through the website

It is defaulting to the previously archived address, and not to the active one.

opw-2411438

closes odoo/odoo#63663

X-original-commit: 3963e5f6d133eb367e5b24976aa4aff1bdd5d066
Signed-off-by: agr-odoo &lt;agr-odoo@users.noreply.github.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
1. Create a shipping address
2. Place a SO through backend, and choose that specific delivery
address.
3. Archive that address
4. Place an Order through the website

It is defaulting to the previously archived address, and not to the active one.

opw-2411438

closes odoo/odoo#63663

X-original-commit: 3963e5f6d133eb367e5b24976aa4aff1bdd5d066
Signed-off-by: agr-odoo &lt;agr-odoo@users.noreply.github.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] website_sale: compare id with id instead of record</title>
<updated>2020-12-05T14:26:23+00:00</updated>
<author>
<name>root</name>
<email>yenthevg@gmail.com</email>
</author>
<published>2020-12-05T14:19:23+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=d9a1b28144523ece2c6fa4329f3ae4b7ff4a38ec'/>
<id>d9a1b28144523ece2c6fa4329f3ae4b7ff4a38ec</id>
<content type='text'>
Before this commit Odoo tries to compare an 'account.fiscal.position' id with an 'account.fiscal.position' record.
This causes a 'Comparing apples and oranges' warning in the logs and is not the right way to do this.
This is a fix for d89fa970e8e5b07f1b9a396e6ee02db7fdd136e4 where this issue was introduced

closes odoo/odoo#62924

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 Odoo tries to compare an 'account.fiscal.position' id with an 'account.fiscal.position' record.
This causes a 'Comparing apples and oranges' warning in the logs and is not the right way to do this.
This is a fix for d89fa970e8e5b07f1b9a396e6ee02db7fdd136e4 where this issue was introduced

closes odoo/odoo#62924

Signed-off-by: Jérémy Kersten (jke) &lt;jke@openerp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] website: ensure websites have snippet filters</title>
<updated>2020-11-27T16:54:00+00:00</updated>
<author>
<name>Romain Derie</name>
<email>rde@odoo.com</email>
</author>
<published>2020-11-19T17:36:48+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=01fafecf98aba5886c5fe836e2a81f2551155f35'/>
<id>01fafecf98aba5886c5fe836e2a81f2551155f35</id>
<content type='text'>
Since the feature was implemented with the default snippets having a website_id
set to the default website, it means that every other websites won't have
snippet filters.

This commit bootstrap filters for every new created website.

Note that in master, multi-website and generic filters are handled with
550d2935bd.

opw-2381423

Closes #62041</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since the feature was implemented with the default snippets having a website_id
set to the default website, it means that every other websites won't have
snippet filters.

This commit bootstrap filters for every new created website.

Note that in master, multi-website and generic filters are handled with
550d2935bd.

opw-2381423

Closes #62041</pre>
</div>
</content>
</entry>
</feed>
