[IMP] runbot_merge: stagings views

* fix "Active" filter which was not updated when the active field was
  added
* properly enable it by default instead of relying on active_test
* disable active_test on the Stagings action, otherwise the batches
  are not visible in the staging once the staging and batches have been
  disabled
This commit is contained in:
Xavier Morel 2018-10-10 17:30:39 +02:00
parent c5e645df9e
commit f238304c44

View File

@ -153,7 +153,7 @@
<field name="name">Stagings</field>
<field name="res_model">runbot_merge.stagings</field>
<field name="view_mode">tree,form</field>
<field name="context">{'default_active': True}</field>
<field name="context">{'search_default_active': True, 'active_test': False}</field>
</record>
<record id="runbot_merge_search_stagings" model="ir.ui.view">
<field name="name">Stagings Search</field>
@ -161,7 +161,7 @@
<field name="arch" type="xml">
<search>
<filter string="Active" name="active"
domain="[('heads', '!=', False)]"/>
domain="[('active', '=', True)]"/>
<field name="state"/>
<field name="target"/>