Allow ordering credentials

issue9909
review322781002
This commit is contained in:
Cédric Krier committed 2020-12-18 00:30:17 +01:00
1 parent 1af67d57af
commit bd291c850f
3 files changed
+8 -4

No files matched your search

+3 -2
View File
@@ -1,11 +1,12 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.model import ModelSQL, ModelView, MatchMixin, fields
from trytond.model import (
ModelSQL, ModelView, MatchMixin, sequence_ordered, fields)
from trytond.pool import PoolMeta
from trytond.pyson import Eval
class CredentialUPS(ModelSQL, ModelView, MatchMixin):
class CredentialUPS(sequence_ordered(), ModelSQL, ModelView, MatchMixin):
'UPS Credential'
__name__ = 'carrier.credential.ups'
+4 -1
View File
@@ -1,9 +1,12 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form>
<form cursor="server">
<label name="company"/>
<field name="company"/>
<label name="sequence"/>
<field name="sequence"/>
<label name="server"/>
<field name="server"/>
<separator string="Credential Information" colspan="4" id="credential_info"/>
+1 -1
View File
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tree>
<tree sequence="sequence">
<field name="company" expand="1"/>
<field name="user_id" expand="2"/>
<field name="server"/>