From 4f88f4dd18cb3fd10b5b40d69241a04c36359269 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Wed, 5 Jul 2017 13:27:14 +0200 Subject: [PATCH] [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 --- addons/website_sale/i18n/website_sale.pot | 4 ++-- addons/website_sale/views/templates.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/website_sale/i18n/website_sale.pot b/addons/website_sale/i18n/website_sale.pot index 0a294b0d447..a8be59312fd 100644 --- a/addons/website_sale/i18n/website_sale.pot +++ b/addons/website_sale/i18n/website_sale.pot @@ -1637,12 +1637,12 @@ msgstr "" #. module: website_sale #: model:ir.ui.view,arch_db:website_sale.sort -msgid "Price " +msgid "Catalog price: decreasing order" msgstr "" #. module: website_sale #: model:ir.ui.view,arch_db:website_sale.sort -msgid "Price " +msgid "Catalog price: increasing order" msgstr "" #. module: website_sale diff --git a/addons/website_sale/views/templates.xml b/addons/website_sale/views/templates.xml index 41d4e1ab646..a695837fd7a 100644 --- a/addons/website_sale/views/templates.xml +++ b/addons/website_sale/views/templates.xml @@ -217,8 +217,8 @@