Browse Source

[IMP] let users edit domain_this if there's other filters, make

domain readonly then
pull/83/head
Holger Brunn 10 years ago
parent
commit
487f31b9ba
  1. 6
      web_advanced_filters/view/ir_filters.xml

6
web_advanced_filters/view/ir_filters.xml

@ -21,6 +21,12 @@
<field name="complement_filter_ids" nolabel="1" domain="[('user_id', 'in', [False, uid]),('id', '!=', id), ('model_id', '=', model_id)]" /> <field name="complement_filter_ids" nolabel="1" domain="[('user_id', 'in', [False, uid]),('id', '!=', id), ('model_id', '=', model_id)]" />
</group> </group>
</group> </group>
<field name="domain" position="attributes">
<attribute name="attrs">{'readonly': ['|', ('union_filter_ids', '!=', [[6, False, []]]), ('complement_filter_ids', '!=', [[6, False, []]])]}</attribute>
</field>
<field name="domain" position="after">
<field name="domain_this" attrs="{'invisible': [('union_filter_ids', '=', [[6, False, []]]), ('complement_filter_ids', '=', [[6, False, []]])]}" />
</field>
</field> </field>
</record> </record>
<record id="form_ir_filters_save_new" model="ir.ui.view"> <record id="form_ir_filters_save_new" model="ir.ui.view">

Loading…
Cancel
Save