[IMP] bi_sql_editor : add field context

This commit is contained in:
Sylvain LE GAL
2021-12-16 19:40:56 +01:00
committed by OCA-git-bot
parent edecab16a2
commit c55dc6f287
3 changed files with 36 additions and 4 deletions

View File

@@ -98,6 +98,7 @@ 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">
@@ -160,6 +161,13 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
optional="hide"
attrs="{'invisible': [('field_description', '=', False)]}"
/>
<field
name="field_context"
attrs="{
'invisible': [('field_description', '=', False)],
'column_invisible': [('parent.option_context_field', '=', False)],
}"
/>
</tree>
</field>
</page>