From d885488ac804001df35be105be403c1541f019ed Mon Sep 17 00:00:00 2001 From: svs-odoo Date: Tue, 7 Sep 2021 14:31:26 +0000 Subject: [PATCH] [FIX] base: infos for act_window_close Clientside, the only key got from an `ir.actions.act_window_close` type action is 'infos'. But this key isn't a part of the whitelisted readable fields server side, which means you will get a warning if you use it. closes odoo/odoo#76109 Signed-off-by: Steve Van Essche --- odoo/addons/base/models/ir_actions.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/odoo/addons/base/models/ir_actions.py b/odoo/addons/base/models/ir_actions.py index eb333cd75b0..e87e9e45723 100644 --- a/odoo/addons/base/models/ir_actions.py +++ b/odoo/addons/base/models/ir_actions.py @@ -306,6 +306,7 @@ VIEW_TYPES = [ ('kanban', 'Kanban'), ] + class IrActionsActWindowView(models.Model): _name = 'ir.actions.act_window.view' _description = 'Action Window View' @@ -336,9 +337,9 @@ class IrActionsActWindowclose(models.Model): def _get_readable_fields(self): return super()._get_readable_fields() | { - # 'effect' is not a real field of ir.actions.act_window_close but is - # used to display the rainbowman - "effect" + # 'effect' and 'infos' are not real fields of `ir.actions.act_window_close` but they are + # used to display the rainbowman ('effect') and waited by the action_service ('infos'). + "effect", "infos" }