mirror of
https://github.com/NaN-tic/trytond-systemlogics_modula.git
synced 2023-12-14 04:32:53 +01:00
Remove SQL constraint name must be unique
This commit is contained in:
parent
b05d54837f
commit
17e7b21a1e
|
@ -299,9 +299,6 @@ class SystemLogicsModulaEXPOrdiniFile(ModelSQL, ModelView):
|
|||
def __setup__(cls):
|
||||
super(SystemLogicsModulaEXPOrdiniFile, cls).__setup__()
|
||||
t = cls.__table__()
|
||||
cls._sql_constraints += [
|
||||
('name_uniq', Unique(t, t.name), 'Name must be unique.'),
|
||||
]
|
||||
cls._buttons.update({
|
||||
'process': {
|
||||
'invisible': ~Eval('state').in_(['pending', 'failed']),
|
||||
|
|
Loading…
Reference in a new issue