[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:
parent
4b82cf666f
commit
ef5b078b74
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue