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