Fix wrong _order in sale.sale

Issue2309
review212001
This commit is contained in:
Sharoon Thomas committed 2011-12-21 21:33:26 +05:30
1 parent 0540ad3580
commit 681c66f5a2
1 file changed
+2 -2
+2 -2
View File
@@ -148,8 +148,8 @@ class Sale(ModelWorkflow, ModelSQL, ModelView):
def __init__(self):
super(Sale, self).__init__()
self._order[0] = ('sale_date', 'DESC')
self._order[0] = ('id', 'DESC')
self._order.insert(0, ('sale_date', 'DESC'))
self._order.insert(1, ('id', 'DESC'))
self._constraints += [
('check_method', 'wrong_method')
]