diff options
| author | Lucas Perais (lpe) <lpe@odoo.com> | 2018-11-07 16:39:15 +0000 |
|---|---|---|
| committer | Lucas Perais (lpe) <lpe@odoo.com> | 2018-11-13 10:09:03 +0000 |
| commit | 40b4584b009a979dcfbff4f464a6bdbbbebc583e (patch) | |
| tree | 18207d32dd669c041e21d43b210cbe8f5e951c18 /odoo/addons/base/views/ir_module_views.xml | |
| parent | 09fde268545a54b4ac9e0e121619a24580b69792 (diff) | |
[FIX] *: boolean in domains should have value True or False
Because the JS cannot handle 1 or 0 being equivalent to true or false, the views should comply
Issues specifically arise in the kanban view when, instead of reloading every record with python,
the JS actually computes which record should be displayed by reinterpreting the domain
From a user point of view, on a fresh db with CRM installed, go to the app kanban view
Click on the contextual menu of the CRM kanban label, click uninstall
The modal opens, but click cancel. The kanban label of the kanban view has disappeared
This is due to commit 33ba61bfdbdc1d9d986070c677f6bf18cbacf6b2, which prevents reloading all the view
for performance purposes
This commit prevents the label from disappearing
OPW 1903534
closes odoo/odoo#28484
Diffstat (limited to 'odoo/addons/base/views/ir_module_views.xml')
| -rw-r--r-- | odoo/addons/base/views/ir_module_views.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/odoo/addons/base/views/ir_module_views.xml b/odoo/addons/base/views/ir_module_views.xml index ebf6700ecea..7f1bb9727a9 100644 --- a/odoo/addons/base/views/ir_module_views.xml +++ b/odoo/addons/base/views/ir_module_views.xml @@ -37,8 +37,8 @@ <search string="Search modules"> <field name="name" filter_domain="['|', '|', ('summary', 'ilike', self), ('shortdesc', 'ilike', self), ('name', 'ilike', self)]" string="Module"/> - <filter name="app" string="Apps" domain="[('application', '=', 1)]"/> - <filter name="extra" string="Extra" domain="[('application', '=', 0)]"/> + <filter name="app" string="Apps" domain="[('application', '=', True)]"/> + <filter name="extra" string="Extra" domain="[('application', '=', False)]"/> <separator/> <filter name="installed" string="Installed" domain="[('state', 'in', ['installed', 'to upgrade', 'to remove'])]"/> <filter name="not_installed" string="Not Installed" domain="[('state', 'in', ['uninstalled', 'uninstallable', 'to install'])]"/> |
