[FIX] bi_sql_editor : use correct key word 'optional'. (and not 'option') in tree view

This commit is contained in:
Sylvain LE GAL
2023-12-05 22:14:49 +01:00
committed by thien
parent 875515cdaa
commit 57202eb9f1

View File

@@ -233,12 +233,12 @@ class BiSQLViewField(models.Model):
if self.tree_visibility == "invisible":
visibility_text = 'invisible="1"'
elif self.tree_visibility == "optional_hide":
visibility_text = 'option="hide"'
visibility_text = 'optional="hide"'
elif self.tree_visibility == "optional_show":
visibility_text = 'option="show"'
visibility_text = 'optional="show"'
return (
f"""<field name="{self.name}" {visibility_text} """
f"""<field name="{self.name}" {visibility_text}"""
f""" context="{self.field_context}"/>\n"""
)