mirror of
https://github.com/Kalenis/kalenislims.git
synced 2023-12-14 07:13:04 +01:00
lims_industry: component: remove old constraint
This commit is contained in:
parent
9973b5748e
commit
a8534c35b0
1 changed files with 7 additions and 0 deletions
|
@ -378,6 +378,13 @@ class Component(ModelSQL, ModelView):
|
|||
'lims_industry.msg_component_unique'),
|
||||
]
|
||||
|
||||
@classmethod
|
||||
def __register__(cls, module_name):
|
||||
super().__register__(module_name)
|
||||
table = cls.__table_handler__(module_name)
|
||||
table.drop_constraint('type_unique')
|
||||
|
||||
|
||||
@classmethod
|
||||
def create(cls, vlist):
|
||||
TaskTemplate = Pool().get('lims.administrative.task.template')
|
||||
|
|
Loading…
Reference in a new issue