lims: planification: remove not_null constraint in dates

This commit is contained in:
Adrián Bernardi 2020-08-20 11:24:29 -03:00
parent 83e71ddba1
commit 891bb11547

View file

@ -124,6 +124,13 @@ class Planification(Workflow, ModelSQL, ModelView):
},
})
@classmethod
def __register__(cls, module_name):
super().__register__(module_name)
table_h = cls.__table_handler__(module_name)
table_h.not_null_action('date_from', action='remove')
table_h.not_null_action('date_to', action='remove')
@staticmethod
def default_state():
return 'draft'