Browse Source

Merge pull request #239 from Eficent/10.0-fix-bi_sql_editor-query-draft

[10.0][FIX] bi_sql_editor: Query should only be modified in draft mode
pull/245/head
Jordi Ballester Alomar 6 years ago
committed by GitHub
parent
commit
214aefbe8f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      bi_sql_editor/views/view_bi_sql_view.xml

4
bi_sql_editor/views/view_bi_sql_view.xml

@ -56,7 +56,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<group> <group>
<group> <group>
<group> <group>
<field name="technical_name"/>
<field name="technical_name" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
<field name="view_name"/> <field name="view_name"/>
<field name="view_order"/> <field name="view_order"/>
<field name="is_materialized"/> <field name="is_materialized"/>
@ -69,7 +69,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
</group> </group>
<notebook> <notebook>
<page string="SQL Query"> <page string="SQL Query">
<field name="query" nolabel="1" colspan="4"/>
<field name="query" nolabel="1" colspan="4" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
</page> </page>
<page string="SQL Fields" attrs="{'invisible': [('state', '=', 'draft')]}"> <page string="SQL Fields" attrs="{'invisible': [('state', '=', 'draft')]}">
<field name="bi_sql_view_field_ids" nolabel="1" colspan="4" attrs="{'readonly': [('state', '!=', 'sql_valid')]}"> <field name="bi_sql_view_field_ids" nolabel="1" colspan="4" attrs="{'readonly': [('state', '!=', 'sql_valid')]}">

Loading…
Cancel
Save