summaryrefslogtreecommitdiff
path: root/odoo
diff options
context:
space:
mode:
authoryhu-odoo <yhu@odoo.com>2020-10-09 13:54:14 +0000
committeryhu-odoo <yhu@odoo.com>2020-10-13 05:16:02 +0000
commitb4eaf7cebf3be577ab8eb49530fb92129faa2892 (patch)
tree7d436b71a676dc1c8b47feddfb7beffe61faa788 /odoo
parent7fbdfba8cbeb2ed724f2493320a5f609d07dca97 (diff)
[FIX] base: add 'flags' to _get_readable_fields
'flags' is not a field in ir.actions.act_window, but it's used to pass parameters to generate the action window. For example, {'flag': {'withControlPanel': False}} can be used to hide the control panel. in _get_readable_fields, 'flags' is not included. This makes the configuration passed by 'flags' not work. We add 'flags' to fix the issue. To reproduce, go to workorder and enter the tablet view by starting the workorder. The control panel will be shown, even though {'flags': {'withControlPanel': False}} is passed in the returned action. closes odoo/odoo#59662 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'odoo')
-rw-r--r--odoo/addons/base/models/ir_actions.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/odoo/addons/base/models/ir_actions.py b/odoo/addons/base/models/ir_actions.py
index 4287870db26..719ce0a4fda 100644
--- a/odoo/addons/base/models/ir_actions.py
+++ b/odoo/addons/base/models/ir_actions.py
@@ -277,6 +277,9 @@ class IrActionsActWindow(models.Model):
"context", "domain", "filter", "groups_id", "limit", "res_id",
"res_model", "search_view", "search_view_id", "target", "view_id",
"view_mode", "views",
+ # `flags` is not a real field of ir.actions.act_window but is used
+ # to give the parameters to generate the action
+ "flags"
}