mirror of
https://github.com/Kalenis/kalenislims.git
synced 2023-12-14 07:13:04 +01:00
lims: planification: remove not_null constraint in dates
This commit is contained in:
parent
83e71ddba1
commit
891bb11547
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue