Browse Source

[FIX] Query and technical name should only be modifiable in draft mode

14.0-report-py3o-pr-506
mreficent 6 years ago
committed by David James
parent
commit
a48da20bde
  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