Revert "[FIX] product, website_sale: order by sequence product.template"

This reverts commit 0a13e5cb8e.

Changing the order of the products in stable version is not accepted.
This commit is contained in:
Goffin Simon
2016-07-06 17:03:18 +02:00
parent 0a13e5cb8e
commit d98eb32272
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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'