we can force mandatory to False

This commit is contained in:
2021-02-23 21:36:26 +01:00
parent 2ca7b9a6fc
commit 54bf1c35a7
6 changed files with 35 additions and 2 deletions

View File

@ -73,7 +73,7 @@ class ValueAnnotator(Walk): # pylint: disable=R0903
if value.type == 'calculation':
has_value = False
break
if has_value:
if has_value and 'mandatory' not in vars(variable):
# if has value without any calculation
variable.mandatory = True
if not hasattr(variable, 'value'):