From d98eb32272bb96b39bd1ba833b6e1bcf2c4905f7 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Wed, 6 Jul 2016 17:03:18 +0200 Subject: [PATCH] Revert "[FIX] product, website_sale: order by sequence product.template" This reverts commit 0a13e5cb8e1f31b91aea61bfadaa3a3b09364672. Changing the order of the products in stable version is not accepted. --- addons/product/product.py | 2 +- addons/website_sale/models/product.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/product/product.py b/addons/product/product.py index b9b51d02138..3c2f1de74e6 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -380,7 +380,7 @@ class product_template(osv.osv): _name = "product.template" _inherit = ['mail.thread'] _description = "Product Template" - _order = "sequence, name" + _order = "name" def _is_product_variant(self, cr, uid, ids, name, arg, context=None): return self._is_product_variant_impl(cr, uid, ids, name, arg, context=context) diff --git a/addons/website_sale/models/product.py b/addons/website_sale/models/product.py index 3319e21fddd..bf547b55ac8 100644 --- a/addons/website_sale/models/product.py +++ b/addons/website_sale/models/product.py @@ -81,7 +81,7 @@ class product_public_category(osv.osv): class product_template(osv.Model): _inherit = ["product.template", "website.seo.metadata", 'website.published.mixin', 'rating.mixin'] - _order = 'website_published desc, website_sequence desc, sequence, name' + _order = 'website_published desc, website_sequence desc, name' _name = 'product.template' _mail_post_access = 'read'