Skip to content
Snippets Groups Projects
Commit c27fcb55 authored by Axel Prel's avatar Axel Prel
Browse files

expression builder: disabled button when converter is not supported

fixes the display of the button being quirky
also fix the button vanish when value==False
parent 34bf0c42
No related branches found
No related tags found
1 merge request!67Implement caching and optimization for Redner template handling
...@@ -44,6 +44,28 @@ ...@@ -44,6 +44,28 @@
<field name="keyword" /> <field name="keyword" />
<field name="converter" /> <field name="converter" />
<field name="value" /> <field name="value" />
<button
name="action_build_expression"
type="object"
string="Build expression"
class="oe_highlight"
invisible="not (value and value!='') or not (converter and converter in ['field','relation-to-many'])"
confirm="This will delete the current substitution value. Continue anyway ?"
/>
<button
name="action_build_expression"
type="object"
string="Build expression"
class="oe_highlight"
invisible="(value and value !='') or not (converter and converter in ['field','relation-to-many'])"
/>
<button
name="action_build_expression"
type="object"
string="Build expression"
class="oe_highlight disabled"
invisible="converter in ['field','relation-to-many']"
/>
</list> </list>
</field> </field>
</group> </group>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment