Skip to content
Snippets Groups Projects
Commit ef5b078b authored by Sebastien Versaille's avatar Sebastien Versaille Committed by Martin Trigaux
Browse files

[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
parent 4b82cf66
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment