Fix wrong _order in sale.sale
Issue2309 review212001
This commit is contained in:
1 parent
0540ad3580
commit
681c66f5a2
1 file changed
+2
-2
@@ -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')
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user