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")
|
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
|
# Constrains Section
|
||||||
@api.constrains("is_materialized")
|
@api.constrains("is_materialized")
|
||||||
def _check_index_materialized(self):
|
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"
|
name="cron_id"
|
||||||
attrs="{'invisible': ['|', ('state', 'in', ('draft', 'sql_valid')), ('is_materialized', '=', False)]}"
|
attrs="{'invisible': ['|', ('state', 'in', ('draft', 'sql_valid')), ('is_materialized', '=', False)]}"
|
||||||
/>
|
/>
|
||||||
<field name="option_context_field" />
|
|
||||||
</group>
|
</group>
|
||||||
</group>
|
</group>
|
||||||
<page name="page_sql" position="after">
|
<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="graph_type" />
|
||||||
<field name="is_group_by" optional="hide" />
|
<field name="is_group_by" optional="hide" />
|
||||||
<field name="tree_visibility" optional="hide" />
|
<field name="tree_visibility" optional="hide" />
|
||||||
<field
|
<field name="field_context" optional="hide" />
|
||||||
name="field_context"
|
|
||||||
attrs="{
|
|
||||||
'column_invisible': [('parent.option_context_field', '=', False)],
|
|
||||||
}"
|
|
||||||
/>
|
|
||||||
</tree>
|
</tree>
|
||||||
</field>
|
</field>
|
||||||
</page>
|
</page>
|
||||||
|
|||||||
Reference in New Issue
Block a user