85b9f3abfd1d931193df455474f6686037f61578
Create a pricelist with a temporary discount on some product only for today. Go to the shop. The discount is applied on the product. Add the product to the cart. Go to the cart page (review order): the price does not use the discount. Because the query getting the pricelist item is some handwritten SQL, it only works for dates, and not e.g. in the case of datetimes. So the pricelist item encoding the discount is not retrieved, and thus not used. It turns out e.g. in _website_product_id_change it gives a datetime in context, explaining why sometimes the discount is applied, and sometimes not. We use fields.Date.to_date as it should work on all date formats we shall pass. Co-written with @sbbaro opw 2054881 closes odoo/odoo#36453 Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
…
…
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
Then follow the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%