From fa19780371c864bce79908f0fff440d63044553f Mon Sep 17 00:00:00 2001 From: roen-odoo Date: Tue, 14 Mar 2023 10:34:30 +0000 Subject: [PATCH] [FIX] l10n_fr_pos_cert: show old price with taxes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Current behavior: If you apply a discount on a product, the PoS ui will show the old price without taxes. Steps to reproduce: - Install PoS and l10n_fr_pos_cert - Create a product with a price of 100€ and a tax of 20% - Create a pricelist with another price for the product (e.g. 80€) - Open a PoS session - Add the product to the order - Apply the pricelist - It show the old price as 100€ instead of 120€ (100€ + 20% tax) opw-3211796 closes odoo/odoo#116836 X-original-commit: e5549d7a9962d92b1abc79d416c3c47303e06134 Signed-off-by: Heinz Robin (rhe) Signed-off-by: Engels Robin (roen) --- addons/l10n_fr_pos_cert/static/src/xml/OrderReceipt.xml | 2 +- addons/l10n_fr_pos_cert/static/src/xml/Orderline.xml | 2 +- addons/point_of_sale/static/src/js/models.js | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/addons/l10n_fr_pos_cert/static/src/xml/OrderReceipt.xml b/addons/l10n_fr_pos_cert/static/src/xml/OrderReceipt.xml index b9a979ed470..e2efd46a4e5 100644 --- a/addons/l10n_fr_pos_cert/static/src/xml/OrderReceipt.xml +++ b/addons/l10n_fr_pos_cert/static/src/xml/OrderReceipt.xml @@ -16,7 +16,7 @@ Old unit price: - / Units + / Units diff --git a/addons/l10n_fr_pos_cert/static/src/xml/Orderline.xml b/addons/l10n_fr_pos_cert/static/src/xml/Orderline.xml index 254ea4173f0..431f5f878bb 100644 --- a/addons/l10n_fr_pos_cert/static/src/xml/Orderline.xml +++ b/addons/l10n_fr_pos_cert/static/src/xml/Orderline.xml @@ -8,7 +8,7 @@ Old unit price: - / Units + / Units diff --git a/addons/point_of_sale/static/src/js/models.js b/addons/point_of_sale/static/src/js/models.js index 99caed40dfe..6e1eadcd86f 100644 --- a/addons/point_of_sale/static/src/js/models.js +++ b/addons/point_of_sale/static/src/js/models.js @@ -2344,8 +2344,9 @@ export class Orderline extends PosModel { tax: this.get_tax(), product_description: this.get_product().description, product_description_sale: this.get_product().description_sale, - pack_lot_lines: this.get_lot_lines(), - customer_note: this.get_customer_note(), + pack_lot_lines: this.get_lot_lines(), + customer_note: this.get_customer_note(), + taxed_lst_unit_price: this.get_taxed_lst_unit_price(), }; } generate_wrapped_product_name() {