[FIX] website_sale: Sort by catalog price in the shop
When sorting by price (increasing or decreasing) in the shop, the products were sorted according to the catalog price(list_price) and not according to the price(which takes the pricelist into account). So a better name is given in this patch. Reason: The field "price" is a computed and not stored field. Then it's not possible to order the products with it in the orm. opw:750997
This commit is contained in:
@@ -1637,12 +1637,12 @@ msgstr ""
|
||||
|
||||
#. module: website_sale
|
||||
#: model:ir.ui.view,arch_db:website_sale.sort
|
||||
msgid "Price <i class=\"fa fa-arrow-down\" aria-hidden=\"true\"/>"
|
||||
msgid "Catalog price: decreasing order"
|
||||
msgstr ""
|
||||
|
||||
#. module: website_sale
|
||||
#: model:ir.ui.view,arch_db:website_sale.sort
|
||||
msgid "Price <i class=\"fa fa-arrow-up\" aria-hidden=\"true\"/>"
|
||||
msgid "Catalog price: increasing order"
|
||||
msgstr ""
|
||||
|
||||
#. module: website_sale
|
||||
|
||||
@@ -217,8 +217,8 @@
|
||||
|
||||
<template id="sort" inherit_id="website_sale.products" active="True" customize_show="True" name="Show Sort by">
|
||||
<xpath expr="//div[@class='products_pager']/div/t[@t-call][last()]" position="after">
|
||||
<t t-set="list_price_desc_label">Price <i class="fa fa-arrow-up" aria-hidden="true"/></t>
|
||||
<t t-set="list_price_asc_label">Price <i class="fa fa-arrow-down" aria-hidden="true"/></t>
|
||||
<t t-set="list_price_desc_label">Catalog price: decreasing order</t>
|
||||
<t t-set="list_price_asc_label">Catalog price: increasing order</t>
|
||||
<t t-set="name_asc_label">Name</t>
|
||||
<t t-set="website_sale_sortable" t-value="[
|
||||
(list_price_desc_label, 'list_price desc'),
|
||||
|
||||
Reference in New Issue
Block a user