From 276e52b1a82a5c3e1996c211f2aa58feba527ca0 Mon Sep 17 00:00:00 2001 From: AjmalCybro Date: Tue, 8 Aug 2023 10:44:21 +0530 Subject: [PATCH] Aug 08: [FIX] Bug Fixed 'all_in_one_dynamic_custom_fields' --- all_in_one_dynamic_custom_fields/__manifest__.py | 2 +- all_in_one_dynamic_custom_fields/doc/RELEASE_NOTES.md | 4 ++-- all_in_one_dynamic_custom_fields/models/dynamic_fields.py | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/all_in_one_dynamic_custom_fields/__manifest__.py b/all_in_one_dynamic_custom_fields/__manifest__.py index 1d273915d..c5d6fd9c2 100644 --- a/all_in_one_dynamic_custom_fields/__manifest__.py +++ b/all_in_one_dynamic_custom_fields/__manifest__.py @@ -22,7 +22,7 @@ ################################################################################### { 'name': 'All in One Dynamic Fields', - 'version': '16.0.1.1.2', + 'version': '16.0.1.1.3', 'summary': 'Create Custom Fields As Per Your Need Without Any Coding.', 'description': 'All in One Dynamic Fields, All in One Custom Fields, Dynamic Fields, Custom Fields, Create Fields Dynamically', 'category': 'Extra Tools', diff --git a/all_in_one_dynamic_custom_fields/doc/RELEASE_NOTES.md b/all_in_one_dynamic_custom_fields/doc/RELEASE_NOTES.md index e8dbd268d..87d1bc569 100644 --- a/all_in_one_dynamic_custom_fields/doc/RELEASE_NOTES.md +++ b/all_in_one_dynamic_custom_fields/doc/RELEASE_NOTES.md @@ -1,6 +1,6 @@ ## Module -#### 02.08.2023 -#### Version 16.0.1.1.2 +#### 03.08.2023 +#### Version 16.0.1.1.3 ##### ADD - Initial commit for All in One Custom Dynamic Fields 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 40d64c51c..bc0ce3ba5 100644 --- a/all_in_one_dynamic_custom_fields/models/dynamic_fields.py +++ b/all_in_one_dynamic_custom_fields/models/dynamic_fields.py @@ -126,7 +126,7 @@ class DynamicFields(models.Model): '') % (self.position_field.name, self.position, self.name, self.widget.name) - self.env['ir.ui.view'].sudo().create({ + self.form_view_id = self.env['ir.ui.view'].sudo().create({ 'name': inherit_form_view_name, 'type': 'form', 'model': self.model_id.model, @@ -153,7 +153,7 @@ class DynamicFields(models.Model): '''''' '''''' '''''') % self.name - self.env['ir.ui.view'].sudo().create({ + self.tree_view_id = self.env['ir.ui.view'].sudo().create({ 'name': inherit_tree_view_name, 'type': 'tree', 'model': self.model_id.model, @@ -170,8 +170,8 @@ class DynamicFields(models.Model): raise ValidationError( _('Error! Please select the boolean field Add Field to the Tree View.')) - @api.depends('model_id') - @api.onchange('model_id') + @api.depends('model_id','add_field_in_tree') + @api.onchange('model_id','add_field_in_tree') def set_domain(self): """Return the fields that currently present in the form""" form_view_ids = self.model_id.view_ids.filtered(