From 0875b97e0449962758d65aceaca7c5248ccfe02b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 8 Jan 2009 20:05:04 +0100 Subject: [PATCH] Order inventory lines by product name --- inventory.py | 1 + 1 file changed, 1 insertion(+) diff --git a/inventory.py b/inventory.py index 271356cbfa..96b4ba7cdf 100644 --- a/inventory.py +++ b/inventory.py @@ -226,6 +226,7 @@ class InventoryLine(OSV): ('inventory_product_uniq', 'UNIQUE(inventory, product)', 'Product must be unique by inventory!'), ] + self._order.insert(0, ('product', 'ASC')) def default_unit_digits(self, cursor, user, context=None): return 2