pedrambiria e756e9e533 [FIX] point_of_sale: show correct discount with extra price attributes
Before this commit, for products with attributes that do not create
variants but do carry additional costs per value, the discount
displayed on the PoS receipt inaccurately represented the price
difference based solely on the list price, excluding these additional
attribute prices. This commit corrects this issue to ensure that the
displayed discount on the PoS receipt and product screen accurately
includes any extra price from such attributes.

Steps to reproduce:
  1. Create an attribute with "never" "Variants Creation Mode"
  2. Add two attribute values
  3. Add this attribute to a product and add an extra price
  4. Enable "Discount on lines" on the user setting
  5. Change the "Discount Policy" of the pricelist that is used in
  the PoS to "Show public price & discount to the customer"
  6. Open a PoS session and add the product with an extra price
  attribute to the order
  7. Add a line discount to the order line and validate the order
  -> The discount amount is based on the listing price of the product

opw-3297713

closes odoo/odoo#131606

X-original-commit: 25f293ee6f601df5b2216d419ec0215710b9fef0
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
Signed-off-by: Pedram Bi Ria (pebr) <pebr@odoo.com>
2023-08-11 10:29:20 +02:00
2023-08-11 07:12:05 +02:00
…
…
…
…
…

Build Status Tech Doc Help Nightly Builds

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, ...

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.

To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials

S
Description
No description provided
Readme LGPL-3.0
3.4 GiB
Languages
Python 49.6%
JavaScript 47.8%
SCSS 2%
CSS 0.3%
HTML 0.2%