diff --git a/all_in_one_dynamic_custom_fields/__init__.py b/all_in_one_dynamic_custom_fields/__init__.py
index 0bf9c8572..42e933cbd 100644
--- a/all_in_one_dynamic_custom_fields/__init__.py
+++ b/all_in_one_dynamic_custom_fields/__init__.py
@@ -20,5 +20,4 @@
# along with this program. If not, see .
#
###################################################################################
-
from . import models
diff --git a/all_in_one_dynamic_custom_fields/__manifest__.py b/all_in_one_dynamic_custom_fields/__manifest__.py
index ed922f8fa..00bd79d4b 100644
--- a/all_in_one_dynamic_custom_fields/__manifest__.py
+++ b/all_in_one_dynamic_custom_fields/__manifest__.py
@@ -20,10 +20,9 @@
# along with this program. If not, see .
#
###################################################################################
-
{
'name': 'All in One Dynamic Fields',
- 'version': '15.0.1.0.2',
+ 'version': '15.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 81fa6e1ab..535931338 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
-#### 09.08.2022
-#### Version 15.0.1.0.0
+#### 02.08.2023
+#### Version 15.0.1.1.3
##### ADD
- Initial commit for All in One Custom Dynamic Fields
diff --git a/all_in_one_dynamic_custom_fields/models/__init__.py b/all_in_one_dynamic_custom_fields/models/__init__.py
index 0451c323f..7cd42b061 100644
--- a/all_in_one_dynamic_custom_fields/models/__init__.py
+++ b/all_in_one_dynamic_custom_fields/models/__init__.py
@@ -20,7 +20,6 @@
# along with this program. If not, see .
#
###################################################################################
-
from . import ir_model_fields
from . import field_widgets
from . import 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 b74c8244b..d247d32f9 100644
--- a/all_in_one_dynamic_custom_fields/models/dynamic_fields.py
+++ b/all_in_one_dynamic_custom_fields/models/dynamic_fields.py
@@ -20,7 +20,6 @@
# along with this program. If not, see .
#
###################################################################################
-
from odoo import api, fields, models, _
from odoo.exceptions import ValidationError
@@ -80,9 +79,9 @@ class DynamicFields(models.Model):
def create_dynamic_fields(self):
self.write({'status': 'form'})
if self.field_type == 'monetary' and not self.env[
- 'ir.model.fields'].sudo().search([
- ('model', '=', self.model_id.id),
- ('name', '=', 'currency_id')]):
+ 'ir.model.fields'].sudo().search([
+ ('model', '=', self.model_id.id),
+ ('name', '=', 'currency_id')]):
self.env['ir.model.fields'].sudo().create({
'name': 'x_currency_id',
'field_description': 'Currency',
@@ -142,10 +141,7 @@ class DynamicFields(models.Model):
}
def add_field_to_tree_view(self):
- if self.env['ir.model.fields'].sudo().search(
- [('model', '=', self.model_id.model),
- ('name', '=', 'state')]):
- self.write({'status': 'tree'})
+ if self.add_field_in_tree:
if self.add_field_in_tree:
inherit_tree_view_name = str(
self.tree_view_id.name) + ".inherit.dynamic.custom" + \
@@ -153,10 +149,10 @@ class DynamicFields(models.Model):
tree_view_arch_base = _(
''
''
- ''''''
+ ''''''
''''''
''''''
- '''''') % (self.name)
+ '''''') % self.name
self.tree_view_id = self.env['ir.ui.view'].sudo().create({
'name': inherit_tree_view_name,
'type': 'tree',
@@ -165,16 +161,14 @@ class DynamicFields(models.Model):
'inherit_id': self.tree_view_id.id,
'arch_base': tree_view_arch_base,
'active': True})
+ self.write({'status': 'tree'})
return {
'type': 'ir.actions.client',
'tag': 'reload',
}
-
else:
raise ValidationError(
- _('Error! Selected Model You cannot add a custom field to the tree view.'
- 'The feature only applies to the model tree/list view that contains the state '
- 'field.'))
+ _('Error! Please select the boolean field Add Field to the Tree View.'))
@api.depends('model_id')
@api.onchange('model_id')
@@ -222,4 +216,4 @@ class DynamicFields(models.Model):
if self.tree_view_id:
self.tree_view_id.active = False
res = super(DynamicFields, self).unlink()
- return res
\ No newline at end of file
+ return res
diff --git a/all_in_one_dynamic_custom_fields/models/field_widgets.py b/all_in_one_dynamic_custom_fields/models/field_widgets.py
index e03fe5f4c..5e388ae11 100644
--- a/all_in_one_dynamic_custom_fields/models/field_widgets.py
+++ b/all_in_one_dynamic_custom_fields/models/field_widgets.py
@@ -20,7 +20,6 @@
# along with this program. If not, see .
#
###################################################################################
-
from odoo import models, fields
diff --git a/all_in_one_dynamic_custom_fields/models/ir_model_fields.py b/all_in_one_dynamic_custom_fields/models/ir_model_fields.py
index a6cf59471..a1655428b 100644
--- a/all_in_one_dynamic_custom_fields/models/ir_model_fields.py
+++ b/all_in_one_dynamic_custom_fields/models/ir_model_fields.py
@@ -20,7 +20,6 @@
# along with this program. If not, see .
#
###################################################################################
-
from odoo import models, fields
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/01.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/01.png
deleted file mode 100644
index 2fa0aea4a..000000000
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/01.png and /dev/null differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/02.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/02.png
deleted file mode 100644
index 7c89f5123..000000000
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/02.png and /dev/null differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/03.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/03.png
deleted file mode 100644
index 10506b3a7..000000000
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/03.png and /dev/null differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/04.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/04.png
deleted file mode 100644
index 27bc9118e..000000000
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/04.png and /dev/null differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/05.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/05.png
deleted file mode 100644
index 9ef3f3a32..000000000
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/05.png and /dev/null differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/06.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/06.png
deleted file mode 100644
index ad5ef6340..000000000
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/06.png and /dev/null differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/07.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/07.png
deleted file mode 100644
index 0595e6628..000000000
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/07.png and /dev/null differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/08.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/08.png
deleted file mode 100644
index cec50b2fd..000000000
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/08.png and /dev/null differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/09.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/09.png
deleted file mode 100644
index 11f0b705e..000000000
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/09.png and /dev/null differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/10.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/10.png
deleted file mode 100644
index 31aefb304..000000000
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/10.png and /dev/null differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/11.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/11.png
deleted file mode 100644
index 3593d96cf..000000000
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/11.png and /dev/null differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic1.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic1.png
new file mode 100644
index 000000000..f920b9d86
Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic1.png differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic10.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic10.png
new file mode 100644
index 000000000..b9d236dc0
Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic10.png differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic11.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic11.png
new file mode 100644
index 000000000..4d6f3900a
Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic11.png differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic12.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic12.png
new file mode 100644
index 000000000..1910163e4
Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic12.png differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic2.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic2.png
new file mode 100644
index 000000000..997a3ef18
Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic2.png differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic3.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic3.png
new file mode 100644
index 000000000..8f1765520
Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic3.png differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic4.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic4.png
new file mode 100644
index 000000000..d77c95d27
Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic4.png differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic5.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic5.png
new file mode 100644
index 000000000..4fdee7477
Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic5.png differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic6.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic6.png
new file mode 100644
index 000000000..6f0fb1d59
Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic6.png differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic7.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic7.png
new file mode 100644
index 000000000..dcd4fa4e7
Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic7.png differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic8.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic8.png
new file mode 100644
index 000000000..82c3bf52b
Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic8.png differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic9.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic9.png
new file mode 100644
index 000000000..cc8d94091
Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/dynamic9.png differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/hero-1.gif b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/hero-1.gif
new file mode 100644
index 000000000..f8a8d4edc
Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/hero-1.gif differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/hero.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/hero.png
deleted file mode 100644
index 3288ef310..000000000
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/hero.png and /dev/null differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/main_view.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/main_view.png
deleted file mode 100644
index 537f8fbe6..000000000
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/main_view.png and /dev/null differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/security.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/security.png
deleted file mode 100644
index 2e92f19c5..000000000
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/security.png and /dev/null differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/index.html b/all_in_one_dynamic_custom_fields/static/description/index.html
index 379814530..aa009a803 100644
--- a/all_in_one_dynamic_custom_fields/static/description/index.html
+++ b/all_in_one_dynamic_custom_fields/static/description/index.html
@@ -31,7 +31,7 @@
style="font-family: 'Montserrat', sans-serif !important; font-weight: 300 !important; color: #FFFFFF !important; font-size: 1.4rem !important; text-align: center !important;">
Create custom fields in as per you need without any coding.
-
+
@@ -241,7 +241,7 @@
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
After installation, give the user access to 'Create Custom Dynamic Fields' from user settings.
-
@@ -253,9 +253,7 @@
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Open the module and Click Create Button to create new custom fields and fill the details.Then click the Create Field.
-
-
@@ -267,9 +265,9 @@
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Select the model for which you want to create a custom field.
-
-
@@ -281,7 +279,7 @@
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Choose the field type
-
@@ -293,13 +291,12 @@
The custom field also we can add to the module List/Tree view.
- Note: The feature only applies to the model tree/list view that contains the state field.
-
-
-
@@ -312,7 +309,9 @@
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
A new custom field is created in the sale order form view.
-
+
@@ -325,30 +324,13 @@
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
A new custom field is created in the sale order tree view.
-
-
-
-
-
@@ -538,7 +520,7 @@
-
+
-
+
diff --git a/all_in_one_dynamic_custom_fields/static/description/web_icon.png b/all_in_one_dynamic_custom_fields/static/description/web_icon.png
deleted file mode 100644
index 26b52f16e..000000000
Binary files a/all_in_one_dynamic_custom_fields/static/description/web_icon.png and /dev/null differ
diff --git a/all_in_one_dynamic_custom_fields/views/dynamic_fields.xml b/all_in_one_dynamic_custom_fields/views/dynamic_fields.xml
index eae1d57a9..289d182d5 100644
--- a/all_in_one_dynamic_custom_fields/views/dynamic_fields.xml
+++ b/all_in_one_dynamic_custom_fields/views/dynamic_fields.xml
@@ -91,9 +91,8 @@
+ web_icon="all_in_one_dynamic_custom_fields,static/description/icon.png"
+ sequence="01"/>