From 5e5205e427cdb782c8bfa52c48afa828c85e4b44 Mon Sep 17 00:00:00 2001 From: AjmalCybro Date: Mon, 8 May 2023 12:06:58 +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(