summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCommandant Custo <sve@openerp.com>2014-09-09 15:02:18 +0200
committerMartin Trigaux <mat@openerp.com>2014-09-09 16:08:32 +0200
commitef5b078b7441e4dc2ee1f536df401d12ffc828c8 (patch)
treeff84e68667cef3503cde068b4445dc7d003a8ee5
parent4b82cf666f4e75b08899728c429eedc75b206ba4 (diff)
[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
-rw-r--r--addons/product/product.py1
1 files changed, 1 insertions, 0 deletions
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)