Redefine _order instead of duplicate order on id
issue3439 review9951004
This commit is contained in:
1 parent
759b9efa02
commit
9ecffed458
1 file changed
+4
-2
@@ -174,8 +174,10 @@ class Sale(Workflow, ModelSQL, ModelView, TaxableMixin):
|
||||
@classmethod
|
||||
def __setup__(cls):
|
||||
super(Sale, cls).__setup__()
|
||||
cls._order.insert(0, ('sale_date', 'DESC'))
|
||||
cls._order.insert(1, ('id', 'DESC'))
|
||||
cls._order = [
|
||||
('sale_date', 'DESC'),
|
||||
('id', 'DESC'),
|
||||
]
|
||||
cls._error_messages.update({
|
||||
'invalid_method': ('Invalid combination of shipment and '
|
||||
'invoicing methods on sale "%s".'),
|
||||
|
||||
Reference in new issue
Block a user