diff --git a/all_in_one_dynamic_custom_fields/__manifest__.py b/all_in_one_dynamic_custom_fields/__manifest__.py index eba91ba64..fa45afe06 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': '15.0.1.1.4', + 'version': '15.0.1.1.5', '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 f83b7f673..f7a56f7a9 100644 --- a/all_in_one_dynamic_custom_fields/doc/RELEASE_NOTES.md +++ b/all_in_one_dynamic_custom_fields/doc/RELEASE_NOTES.md @@ -1,7 +1,7 @@ ## Module -#### 02.08.2023 -#### Version 15.0.1.1.4 +#### 03.08.2023 +#### Version 15.0.1.1.5 ##### 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(