mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[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:
@@ -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):
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user