changeset 285ab8fce27d in modules/account_invoice:default
details:
https://hg.tryton.org/modules/account_invoice?cmd=changeset;node=285ab8fce27d
description:
Add default name ordering on referential models
issue7971
review66501002
diffstat:
invoice.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r 92b594a60570 -r 285ab8fce27d invoice.py
--- a/invoice.py Sat Jan 26 01:10:47 2019 +0100
+++ b/invoice.py Wed Jan 30 11:58:25 2019 +0100
@@ -2346,6 +2346,11 @@
depends=['company'])
@classmethod
+ def __setup__(cls):
+ super().__setup__()
+ cls._order.insert(0, ('name', 'ASC'))
+
+ @classmethod
def default_company(cls):
return Transaction().context.get('company')