From e0e003e9032fcba20de19add72c938c23dc10c4e Mon Sep 17 00:00:00 2001 From: AjmalCybro Date: Mon, 8 May 2023 12:05:59 +0530 Subject: [PATCH] May 8 : [UPDT] Updated 'all_in_one_dynamic_custom_fields' --- all_in_one_dynamic_custom_fields/models/dynamic_fields.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/all_in_one_dynamic_custom_fields/models/dynamic_fields.py b/all_in_one_dynamic_custom_fields/models/dynamic_fields.py index 91e673112..b74c8244b 100644 --- a/all_in_one_dynamic_custom_fields/models/dynamic_fields.py +++ b/all_in_one_dynamic_custom_fields/models/dynamic_fields.py @@ -136,6 +136,10 @@ class DynamicFields(models.Model): 'arch_base': arch_base, 'active': True }) + return { + 'type': 'ir.actions.client', + 'tag': 'reload', + } def add_field_to_tree_view(self): if self.env['ir.model.fields'].sudo().search( @@ -161,6 +165,10 @@ class DynamicFields(models.Model): 'inherit_id': self.tree_view_id.id, 'arch_base': tree_view_arch_base, 'active': True}) + return { + 'type': 'ir.actions.client', + 'tag': 'reload', + } else: raise ValidationError(