From ef5b078b7441e4dc2ee1f536df401d12ffc828c8 Mon Sep 17 00:00:00 2001 From: Commandant Custo Date: Tue, 9 Sep 2014 15:02:18 +0200 Subject: [PATCH] [IMP] product: Order product.template by name When no order is forced, it's more user-friendly if the products are ordered by alphabetical order. This will mainly be applied: * In the list view in the back-end * In the eCommerce, for products with equal website_sequence --- addons/product/product.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/product/product.py b/addons/product/product.py index 5d16651fe75..feabe13d907 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -410,6 +410,7 @@ class product_template(osv.osv): _name = "product.template" _inherit = ['mail.thread'] _description = "Product Template" + _order = "name" def _get_image(self, cr, uid, ids, name, args, context=None): result = dict.fromkeys(ids, False)