[FIX] website_sale: show correct pre-discount price on website
# Steps to reproduce * install eCommerce and Sales * go to settings and activate `Discounts`, `Pricelists` and set `Display Product Prices` to `Tax Included`. * create a pricelist with a discount, making sure to set (in the configuration tab): * `Discount Policy` to `Show public price & discount to the customer` * `Selectable` to `true` * go to a product's page, select the pricelist you made and add the product to the cart. * go to the shopping cart # The Issue On the shopping cart page, the pre-discount price should be tax-included ,but it is not. opw-3112462 closes odoo/odoo#108935 X-original-commit: f4095614e8a875d66efbbb8c579c73c52b8a1c1c Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
This commit is contained in:
@@ -1461,7 +1461,7 @@
|
||||
<span t-field="line.price_reduce_taxinc" style="white-space: nowrap;" t-options="{'widget': 'monetary', 'display_currency': website_sale_order.currency_id}"/>
|
||||
</t>
|
||||
<t t-if="line.discount">
|
||||
<del t-attf-class="#{'text-danger mr8'}" style="white-space: nowrap;" t-esc="line.price_unit" t-options="{'widget': 'monetary', 'display_currency': website_sale_order.currency_id}" />
|
||||
<del t-attf-class="#{'text-danger mr8'}" style="white-space: nowrap;" t-esc="combination_info['list_price']" t-options="{'widget': 'monetary', 'display_currency': website_sale_order.currency_id}" />
|
||||
</t>
|
||||
<small t-if="not line._is_not_sellable_line() and line.product_id.base_unit_price"
|
||||
class="cart_product_base_unit_price d-block text-muted"
|
||||
|
||||
Reference in New Issue
Block a user