mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[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:
parent
c5e645df9e
commit
f238304c44
@ -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"/>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user