[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
This commit is contained in:
Commandant Custo 2014-09-09 15:02:18 +02:00 committed by Martin Trigaux
parent 4b82cf666f
commit ef5b078b74
1 changed files with 1 additions and 0 deletions

View File

@ -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)