From 548ad093540123391c4693c8b494403e013cf714 Mon Sep 17 00:00:00 2001 From: Bertrand Chenal Date: Wed, 26 Nov 2008 01:23:26 +0100 Subject: [PATCH] Improved order on invoice --- invoice.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/invoice.py b/invoice.py index faaf2a88a8..8a7d97ed1e 100644 --- a/invoice.py +++ b/invoice.py @@ -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!',