-#### 15.12.2022
-#### Version 16.0.1.0.0
+#### 01.08.2023
+#### Version 16.0.1.1.1
##### 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/modules/1.png b/all_in_one_dynamic_custom_fields/static/description/assets/modules/1.png
index 5238bdeab..b21837312 100644
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/modules/1.png and b/all_in_one_dynamic_custom_fields/static/description/assets/modules/1.png differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/modules/2.png b/all_in_one_dynamic_custom_fields/static/description/assets/modules/2.png
index 1ae7cfe3b..eb3f8652f 100644
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/modules/2.png and b/all_in_one_dynamic_custom_fields/static/description/assets/modules/2.png differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/modules/3.png b/all_in_one_dynamic_custom_fields/static/description/assets/modules/3.png
index 3c3ff1afb..a9c4ec82c 100644
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/modules/3.png and b/all_in_one_dynamic_custom_fields/static/description/assets/modules/3.png differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/modules/4.png b/all_in_one_dynamic_custom_fields/static/description/assets/modules/4.png
index 3fae4631e..17ba4d75f 100644
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/modules/4.png and b/all_in_one_dynamic_custom_fields/static/description/assets/modules/4.png differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/modules/5.gif b/all_in_one_dynamic_custom_fields/static/description/assets/modules/5.gif
deleted file mode 100644
index 2a5f8e659..000000000
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/modules/5.gif and /dev/null differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/modules/5.png b/all_in_one_dynamic_custom_fields/static/description/assets/modules/5.png
new file mode 100644
index 000000000..489f44e86
Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/modules/5.png differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/modules/6.png b/all_in_one_dynamic_custom_fields/static/description/assets/modules/6.png
index 7f2815273..ed11bd818 100644
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/modules/6.png and b/all_in_one_dynamic_custom_fields/static/description/assets/modules/6.png differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/1.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/1.png
deleted file mode 100644
index 22991c072..000000000
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/1.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 4f7164b1c..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 4d6173fce..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/12.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/12.png
deleted file mode 100644
index ad345419a..000000000
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/12.png and /dev/null differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/2.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/2.png
deleted file mode 100644
index b8a4acf9c..000000000
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/2.png and /dev/null differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/3.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/3.png
deleted file mode 100644
index 2861cb2e6..000000000
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/3.png and /dev/null differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/4.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/4.png
deleted file mode 100644
index e0138c10e..000000000
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/4.png and /dev/null differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/5.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/5.png
deleted file mode 100644
index 14c5918ac..000000000
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/5.png and /dev/null differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/6.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/6.png
deleted file mode 100644
index 964e8f161..000000000
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/6.png and /dev/null differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/7.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/7.png
deleted file mode 100644
index 6dd4aa0e4..000000000
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/7.png and /dev/null differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/8.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/8.png
deleted file mode 100644
index a859133ca..000000000
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/8.png and /dev/null differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/9.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/9.png
deleted file mode 100644
index a0ff105fd..000000000
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/9.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..da7bfea06
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..5750a5a8c
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..4551ca74f
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..ce73bee7c
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..9f51ee254
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..c7f401b41
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..30d9d2e84
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..59a3feeaa
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..9eb74c948
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..7e749b625
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..f34d04777
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..f6cc84d76
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.gif b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/hero.gif
deleted file mode 100644
index 6619d4dd2..000000000
Binary files a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/hero.gif and /dev/null differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/hero1.gif b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/hero1.gif
new file mode 100644
index 000000000..21965471f
Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/hero1.gif differ
diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/tree.png b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/tree.png
new file mode 100644
index 000000000..6a3564a57
Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/tree.png 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 bd493d7a7..2c31ce4ea 100644
--- a/all_in_one_dynamic_custom_fields/static/description/index.html
+++ b/all_in_one_dynamic_custom_fields/static/description/index.html
@@ -27,10 +27,10 @@
- All In One Dynamic Fields
+ All in One Dynamic Fields
Create custom fields in as per you need without any coding.
-
@@ -162,55 +162,55 @@
Create Custom Dynamic Fields
After installation, give the user access to 'Create Custom Dynamic Fields' from user settings.
-
+
Create Fields
Open the module and Click Create Button to create new custom fields and fill the details.Then click the Create Field.
-

-

+

+

+
Model
Select the model for which you want to create a custom field.
-

-

+

+
Field Type
Choose the field type
-

+
List / Tree View
-
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.
-

-

-

+
The custom field also we can add to the module List/Tree view.
+

+

+
Sale Order Form View
A new custom field is created in the sale order form view.
-

+
Sale Order Tree/List View
A new custom field is created in the sale order tree view.
-

-

+

+
@@ -219,74 +219,101 @@
-
-

-
-
Related
- Products
-
+
+

+
+
Related
+ Products
+
-
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"/>