Add default name ordering on referential models
issue7971 review66501002
This commit is contained in:
1 parent
ba6959bb08
commit
16ca779bb9
1 file changed
+5
@@ -2345,6 +2345,11 @@ class PaymentMethod(DeactivableMixin, ModelSQL, ModelView):
|
||||
],
|
||||
depends=['company'])
|
||||
|
||||
@classmethod
|
||||
def __setup__(cls):
|
||||
super().__setup__()
|
||||
cls._order.insert(0, ('name', 'ASC'))
|
||||
|
||||
@classmethod
|
||||
def default_company(cls):
|
||||
return Transaction().context.get('company')
|
||||
|
||||
Reference in new issue
Block a user