mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[FIX] bi_sql_editor : use correct key word 'optional'. (and not 'option') in tree view
This commit is contained in:
@@ -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"""
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user