Files
odoo_source/addons/pos_self_order
Mahdi Cheikh Rouhou (macr) f51f2d5674 [FIX] pos_self_order: compute price product variants in self order
Issue:
======
When choosing product with attributes that have attributes which have
variant creation mode never it will not take into account the extra
price.

Steps to reproduce the issue:
=============================
- Install pos , restaurant
- Create a product which have `Size` attribute and add some values in
  it, 'S' and 'M'  for example , then add extra prices in each one of
  them. Enable available in POS setting in Sales page of the product.

- Got to point of sala , click on 3 dots in restaurant and open mobile
  menu.
- Added the created product to cart and click review.
- The price shown is the original price of the product and not taking
  into account the extra price of the attribute.

Origin of the issue:
====================
This was not supported before

Solution:
=========
Using the attribute_value_ids value in the line we can calculate the
extra_price of those attributes and add it to the price_unit so we can
get taxed_amount and untaxed_amount correctly.

opw-3511374

closes odoo/odoo#142485

X-original-commit: a54fddd9270b3431a8cde0a6bf30349c5671b0ac
Signed-off-by: David Monnom (moda) <moda@odoo.com>
Signed-off-by: Mahdi Cheikh Rouhou (macr) <macr@odoo.com>
2023-11-20 12:41:32 +00:00
..
…
…