Browse Source

May 8 : [UPDT] Updated 'all_in_one_dynamic_custom_fields'

pull/254/head
AjmalCybro 2 years ago
parent
commit
5e5205e427
  1. 8
      all_in_one_dynamic_custom_fields/models/dynamic_fields.py

8
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(

Loading…
Cancel
Save