Browse Source

[UPDT] Sep 27 : Dynamic field bug fix

pull/219/head
AjmalCybro 3 years ago
parent
commit
415367e393
  1. 2
      all_in_one_dynamic_custom_fields/__manifest__.py
  2. 8
      all_in_one_dynamic_custom_fields/models/dynamic_fields.py

2
all_in_one_dynamic_custom_fields/__manifest__.py

@ -23,7 +23,7 @@
{
'name': 'All in One Dynamic Fields',
'version': '15.0.1.0.0',
'version': '15.0.1.0.1',
'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',

8
all_in_one_dynamic_custom_fields/models/dynamic_fields.py

@ -207,3 +207,11 @@ class DynamicFields(models.Model):
else:
return {'domain': {'widget': [('id', '=', False)]}}
return {'domain': {'widget': [('id', '=', False)]}}
def unlink(self):
if self.form_view_id:
self.form_view_id.active = False
if self.tree_view_id:
self.tree_view_id.active = False
res = super(DynamicFields, self).unlink()
return res
Loading…
Cancel
Save