Improved order on invoice

This commit is contained in:
Bertrand Chenal committed 2008-11-26 01:23:26 +01:00
1 parent 4f5cc1a415
commit 548ad09354
1 file changed
+2 -1
+2 -1
View File
@@ -307,7 +307,8 @@ class Invoice(OSV):
('check_account', 'account_different_company'),
('check_account2', 'same_account_on_line'),
]
self._order.insert(0, ('number', 'ASC'))
self._order.insert(0, ('number', 'DESC'))
self._order.insert(1, ('id', 'DESC'))
self._error_messages.update({
'reset_draft': 'You can not reset to draft ' \
'an invoice that have move!',