summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHemali Bhimani <heb@odoo.com>2020-02-18 05:08:05 +0000
committerHemali Bhimani <heb@odoo.com>2020-02-26 10:01:05 +0000
commitcaa0e52d4b57463eb609062a9f48751d12cda5dd (patch)
treeff6d38359d40e0b796f4260d0b814893ef8fbb6b
parentb0008be7d0b846eeaf71ef8f3dba7590d9d3eb6a (diff)
[IMP] *: add Archived filter in models with active field
task:2026285 closes:#45779 closes odoo/odoo#45779 Related: odoo/enterprise#8581 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
-rw-r--r--addons/mail/views/mail_channel_views.xml1
-rw-r--r--addons/stock_account/views/stock_account_views.xml1
2 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/views/mail_channel_views.xml b/addons/mail/views/mail_channel_views.xml
index 9466196329b..66c637d226a 100644
--- a/addons/mail/views/mail_channel_views.xml
+++ b/addons/mail/views/mail_channel_views.xml
@@ -180,6 +180,7 @@
<field name="arch" type="xml">
<search string="Search Groups">
<field name="name"/>
+ <filter string="Archived" name="inactive" domain="[('active', '=', False)]"/>
</search>
</field>
</record>
diff --git a/addons/stock_account/views/stock_account_views.xml b/addons/stock_account/views/stock_account_views.xml
index dd3ddab59dc..5f1ac2efc59 100644
--- a/addons/stock_account/views/stock_account_views.xml
+++ b/addons/stock_account/views/stock_account_views.xml
@@ -76,7 +76,6 @@
<field name="categ_id" />
<field name="product_tmpl_id" />
<separator/>
- <filter string="Archived" name="inactive" domain="[('active','=',False)]"/>
<group expand='0' string='Group by...'>
<filter string='Product' name="group_by_product_id" context="{'group_by': 'product_id'}"/>
</group>