[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:
Goffin Simon
2017-07-05 15:53:00 +02:00
parent 4fe4c228f3
commit 4f88f4dd18
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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'),