[REM] bi_sql_editor : option_context_field field, as it is now possible to implement that feature with optional='hide' on the field list view

This commit is contained in:
Sylvain LE GAL
2023-12-05 23:11:28 +01:00
committed by thien
parent 301b698a0d
commit fc261058bf
2 changed files with 1 additions and 13 deletions

View File

@@ -169,12 +169,6 @@ class BiSQLView(models.Model):
sequence = fields.Integer(string="sequence")
option_context_field = fields.Boolean(
string="Use Context Field",
help="Check this box if you want to add a context column in the field list view."
" Custom Context will be inserted in the created views.",
)
# Constrains Section
@api.constrains("is_materialized")
def _check_index_materialized(self):

View File

@@ -104,7 +104,6 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
name="cron_id"
attrs="{'invisible': ['|', ('state', 'in', ('draft', 'sql_valid')), ('is_materialized', '=', False)]}"
/>
<field name="option_context_field" />
</group>
</group>
<page name="page_sql" position="after">
@@ -148,12 +147,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<field name="graph_type" />
<field name="is_group_by" optional="hide" />
<field name="tree_visibility" optional="hide" />
<field
name="field_context"
attrs="{
'column_invisible': [('parent.option_context_field', '=', False)],
}"
/>
<field name="field_context" optional="hide" />
</tree>
</field>
</page>