lims_industry: component: remove old constraint

This commit is contained in:
Adrián Bernardi 2021-06-07 11:04:21 -03:00
parent 9973b5748e
commit a8534c35b0

View file

@ -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')