diff options
| author | Andrea Grazioso (agr-odoo) <agr@odoo.com> | 2021-01-21 13:31:15 +0000 |
|---|---|---|
| committer | Andrea Grazioso (agr-odoo) <agr@odoo.com> | 2021-01-21 13:31:15 +0000 |
| commit | 323d2937f1470a85ba9ee5e46595baef426ee3f3 (patch) | |
| tree | 3427f515f5e6282d3d38b41f5812e874f83fe107 /addons/point_of_sale/static/src/js/models.js | |
| parent | cd1823a1066dd9a820afed8427e3a9abc2faade0 (diff) | |
[FIX] point_of_sale: change pricelist remove price extra (variant)
Create a product with variants attributes that NEVER create variants.
Configure Variants to add some extra-prices to some variants.
In POS settings activate "Product Configurator" and
"Advanced Pricelists", add the public pricelist and one that applies 5% to
the product.
Open a session and select the product created (say price = 1$)
Select the attributes, the extra-price is added to the product (say the
total price now is 2$).
Change pricelist from public to 5% and the order line will show our
product = 0.95, not taking the extra-prices into account (so not 1.9,
i.e. 5% of the 2$ that were formerly displayed)
opw-2439445
closes odoo/odoo#64861
Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
Diffstat (limited to 'addons/point_of_sale/static/src/js/models.js')
| -rw-r--r-- | addons/point_of_sale/static/src/js/models.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/point_of_sale/static/src/js/models.js b/addons/point_of_sale/static/src/js/models.js index 72a0a419c77..2fa17771b70 100644 --- a/addons/point_of_sale/static/src/js/models.js +++ b/addons/point_of_sale/static/src/js/models.js @@ -2955,7 +2955,7 @@ exports.Order = Backbone.Model.extend({ return ! line.price_manually_set; }); _.each(lines_to_recompute, function (line) { - line.set_unit_price(line.product.get_price(self.pricelist, line.get_quantity())); + line.set_unit_price(line.product.get_price(self.pricelist, line.get_quantity()) + line.get_price_extra()); self.fix_tax_included_price(line); }); this.trigger('change'); |
