diff --git a/all_in_one_dynamic_custom_fields/README.rst b/all_in_one_dynamic_custom_fields/README.rst new file mode 100644 index 000000000..dfc3a71e3 --- /dev/null +++ b/all_in_one_dynamic_custom_fields/README.rst @@ -0,0 +1,48 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +All In One Dynamic Fields +========================= +*This module is used to add dynamic field to form and tree view of any model as per requirement + +Configuration +============= +* Add users to the two user groups + - User: can see dynamic field created by administrator + - Administrator: can create new dynamic field + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +Affero General Public License v3.0 (AGPL v3) + +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +* Developer: (V14) Ruksana P, Contact: odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit `Our Website `__ + +Further information +=================== +HTML Description: ``__ diff --git a/all_in_one_dynamic_custom_fields/__init__.py b/all_in_one_dynamic_custom_fields/__init__.py new file mode 100644 index 000000000..8aa1e9d92 --- /dev/null +++ b/all_in_one_dynamic_custom_fields/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Ruksana P () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# 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 new file mode 100644 index 000000000..e509916e0 --- /dev/null +++ b/all_in_one_dynamic_custom_fields/__manifest__.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Ruksana P () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################### +{ + 'name': 'All In One Dynamic Fields', + 'version': '14.0.1.0.0', + 'category': 'Extra Tools', + 'summary': 'Create Custom Fields As Per Your Need Without Any Coding.', + 'description': """This module is used to add dynamic field of any type to + form and tree view of any model as per requirement.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['base'], + 'data': [ + 'security/all_in_one_dynamic_custom_fields_groups.xml', + 'security/ir.model.access.csv', + 'data/dynamic_field_widgets_data.xml', + 'views/dynamic_fields_views.xml', + ], + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': True, +} diff --git a/all_in_one_dynamic_custom_fields/data/dynamic_field_widgets_data.xml b/all_in_one_dynamic_custom_fields/data/dynamic_field_widgets_data.xml new file mode 100644 index 000000000..c20c0777b --- /dev/null +++ b/all_in_one_dynamic_custom_fields/data/dynamic_field_widgets_data.xml @@ -0,0 +1,36 @@ + + + + + image + Image + + + many2many_tags + Many2many Tags + + + binary + Binary + + + radio + Radio + + + priority + Priority + + + monetary + Monetary + + + selection + Selection + + diff --git a/all_in_one_dynamic_custom_fields/doc/RELEASE_NOTES.md b/all_in_one_dynamic_custom_fields/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..83780d8b1 --- /dev/null +++ b/all_in_one_dynamic_custom_fields/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 07.12.2023 +#### Version 14.0.1.0.0 +##### ADD +- Initial commit for All In One Dynamic Fields diff --git a/all_in_one_dynamic_custom_fields/models/__init__.py b/all_in_one_dynamic_custom_fields/models/__init__.py new file mode 100644 index 000000000..8f8182a54 --- /dev/null +++ b/all_in_one_dynamic_custom_fields/models/__init__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Ruksana P () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################### +from . import dynamic_fields +from . import dynamic_field_widgets +from . import ir_model_fields diff --git a/all_in_one_dynamic_custom_fields/models/dynamic_field_widgets.py b/all_in_one_dynamic_custom_fields/models/dynamic_field_widgets.py new file mode 100644 index 000000000..32beefe83 --- /dev/null +++ b/all_in_one_dynamic_custom_fields/models/dynamic_field_widgets.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Ruksana P () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################### +from odoo import models, fields + + +class DynamicFieldWidgets(models.Model): + """ We can't filter a selection field dynamically so when we select a field + its widgets also need to change according to the selected field type, + we can't do it by a 'selection' field, need a 'Many2one' field. + """ + _name = 'dynamic.field.widgets' + _rec_name = 'description' + _description = 'Field Widgets' + + name = fields.Char(string="Name", help="Enter the name") + description = fields.Char(string="Description", + help="Enter the description of field") diff --git a/all_in_one_dynamic_custom_fields/models/dynamic_fields.py b/all_in_one_dynamic_custom_fields/models/dynamic_fields.py new file mode 100644 index 000000000..6c09e8391 --- /dev/null +++ b/all_in_one_dynamic_custom_fields/models/dynamic_fields.py @@ -0,0 +1,264 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Ruksana P () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################### +from odoo import api, fields, models, _ +from odoo.exceptions import ValidationError + + +class DynamicFields(models.Model): + _name = 'dynamic.fields' + _rec_name = 'field_description' + _description = 'Custom Dynamic Fields' + _inherit = 'ir.model.fields' + + @api.model + def get_possible_field_types(self): + """Return all available field types other than 'One2many' and + 'reference' fields.""" + field_list = sorted((key, key) for key in fields.MetaField.by_type) + field_list.remove(('one2many', 'one2many')) + field_list.remove(('reference', 'reference')) + return field_list + + dynamic_field_id = fields.Many2one('ir.model.fields', string='Field Name', + required=True, ondelete='cascade', + help='Please Enter the name of field') + position = fields.Selection([('before', 'Before'), ('after', 'After')], + string='Position', required=True, + help='Select the position of dynamic field ' + 'relative to reference field') + model_id = fields.Many2one('ir.model', string='Model', required=True, + index=True, ondelete='cascade', + help="Mention the model name for this field " + "to be added") + ref_model_id = fields.Many2one('ir.model', string='Reference Model', + help='Choose the model id for which we want ' + 'to add field', index=True, ) + selection_field = fields.Char(string="Selection Options", + help='Enter the selection options') + field_type = fields.Selection(selection='get_possible_field_types', + string='Field Type', required=True, + help='Select the field type here') + ttype = fields.Selection(string="Field Type", related='field_type', + help='Select the field type here') + widget_id = fields.Many2one('dynamic.field.widgets', string='Widget', + help='Choose the field widget') + groups = fields.Many2many('res.groups', 'employee_dynamic_fields_group_rel', + 'field_id', 'group_id', string='Group', + help='Enter the group for which this field is' + ' visible') + is_extra_features = fields.Boolean(string="Show Extra Properties", + help='Please enable this field for extra' + ' attributes') + status = fields.Selection([('draft', 'Draft'), ('form', 'Field Created'), + ('tree', 'Added in Tree View')], string='Status', + index=True, readonly=True, tracking=True, + copy=False, default='draft', + help='The status of dynamic field creation') + form_view_id = fields.Many2one('ir.ui.view', string="Form View ID", + required=True, help='Enter the form view id') + form_view_inherit = fields.Char(string="Form View Inherit Id", + related='form_view_id.xml_id', + help='Enter the inherited form view id') + custom_form_view_id = fields.Many2one('ir.ui.view', string="Form View ID", + help='Enter the custom form view id') + is_field_in_tree = fields.Boolean(string="Add Field to the Tree View", + help='Enable for tree view') + tree_view_id = fields.Many2one('ir.ui.view', string="Tree View ID", + help='Enter the tree view id', ) + tree_view_inherit = fields.Char(string="Tree View Inherit Id", + related='tree_view_id.xml_id', + help='Enter the inherited tree view id') + custom_tree_view_id = fields.Many2one('ir.ui.view', string="Tree View ID", + help='Enter the custom tree view id') + + @api.onchange('model_id') + def _onchange_model_id(self): + """Return the corresponding form, tree view id and field records""" + form_view_ids = self.model_id.view_ids.filtered( + lambda l: l.type == 'form' and l.mode == 'primary') + tree_view_ids = self.model_id.view_ids.filtered( + lambda l: l.type == 'tree' and l.mode == 'primary') + field_records = self.env['ir.model.fields'].sudo().search([ + ('model', '=', self.model_id.model)]) + field_list = [field.id for rec in field_records for field in rec] + return {'domain': { + 'form_view_id': [('id', 'in', form_view_ids.ids)], + 'tree_view_id': [('id', 'in', tree_view_ids.ids)], + 'dynamic_field_id': [('id', 'in', field_list)] + }} + + @api.onchange('field_type') + def _onchange_field_type(self): + """When changing field type, this method returns widget of + corresponding field type""" + widget_mapping = { + 'binary': [('name', '=', 'image')], + 'many2many': [('name', 'in', ['many2many_tags', 'binary'])], + 'selection': [('name', 'in', ['radio', 'priority'])], + 'float': [('name', '=', 'monetary')], + 'many2one': [('name', '=', 'selection')], + } + return {'domain': {'widget': widget_mapping.get(self.field_type, + [('id', '=', False)])}} + + def action_create_dynamic_fields(self): + """ The 'CREATE FIELD' button method is used to add new field to form + view of required model""" + 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')]): + self.env['ir.model.fields'].sudo().create({ + 'name': 'x_currency_id', + 'field_description': 'Currency', + 'model_id': self.model_id.id, + 'ttype': 'many2one', + 'relation': 'res.currency', + 'is_dynamic_field': True + }) + self.env['ir.model.fields'].sudo().create({ + 'name': self.name, + 'field_description': self.field_description, + 'model_id': self.model_id.id, + 'ttype': self.field_type, + 'relation': self.ref_model_id.model, + 'required': self.required, + 'index': self.index, + 'store': self.store, + 'help': self.help, + 'readonly': self.readonly, + 'selection': self.selection_field, + 'copied': self.copied, + 'is_dynamic_field': True + }) + inherit_form_view_name = str( + self.form_view_id.name) + ".inherit.dynamic.custom." + str( + self.field_description) + ".field" + xml_id = self.form_view_id.xml_id + inherit_id = self.env.ref(xml_id) + arch_base = _('' + '' + '' + '' + '' + '') % (self.dynamic_field_id.name, + self.position, self.name) + if self.widget_id: + arch_base = _('' + '' + '' + '' + '' + '') % (self.dynamic_field_id.name, + self.position, self.name, + self.widget_id.name) + self.custom_form_view_id = self.env['ir.ui.view'].sudo().create({ + 'name': inherit_form_view_name, + 'type': 'form', + 'model': self.model_id.model, + 'mode': 'extension', + 'inherit_id': inherit_id.id, + 'arch_base': arch_base, + 'active': True + }) + return { + 'type': 'ir.actions.client', + 'tag': 'reload', + } + + def action_add_field_to_tree_view(self): + """ Button 'Add to Tree View' is used add the created dynamic field to + tree view of corresponding model""" + tree_view = self.env['ir.ui.view'].search( + [('model', '=', self.model_id.model), ('type', '=', 'tree')]) + view_id_tree = self.env.ref(self.tree_view_inherit) + if tree_view and view_id_tree.arch: + if self.is_field_in_tree: + inherit_tree_view_name = str( + self.tree_view_id.name) + ".inherit.dynamic.custom" + \ + str(self.field_description) + ".field" + tree_view_arch_base = _( + '' + '' + '''''' + '''''' + '''''' + '''''') % self.name + self.custom_tree_view_id = self.env['ir.ui.view'].sudo().create( + {'name': inherit_tree_view_name, + 'type': 'tree', + 'model': self.model_id.model, + 'mode': 'extension', + '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.')) + + @api.depends('model_id') + @api.onchange('model_id') + def onchange_domain(self): + """Return the fields that currently present in the form""" + form_view_ids = self.model_id.view_ids.filtered( + lambda l: l.type == 'form' and l.mode == 'primary') + tree_view_ids = self.model_id.view_ids.filtered( + lambda l: l.type == 'tree' and l.mode == 'primary') + field_records = self.env['ir.model.fields'].sudo().search([ + ('model', '=', self.model_id.model)]) + field_list = [field.id for record in field_records for field in record] + return {'domain': { + 'form_view_id': [('id', 'in', form_view_ids.ids)], + 'tree_view_id': [('id', 'in', tree_view_ids.ids)], + 'position_field': [('id', 'in', field_list)] + }} + + @api.depends('field_type') + @api.onchange('field_type') + def onchange_field_type(self): + """"Onchange method of field_type, when changing field type it will + return domain for widget """ + widget_mappings = { + 'binary': [('name', '=', 'image')], + 'many2many': [('name', 'in', ['many2many_tags', 'binary'])], + 'selection': [('name', 'in', ['radio', 'priority'])], + 'float': [('name', '=', 'monetary')], + 'many2one': [('name', '=', 'selection')], + } + return {'domain': {'widget': widget_mappings.get(self.field_type, + [('id', '=', False)])}} + + def unlink(self): + """ Unlinking method of dynamic field""" + if self.form_view_id: + self.form_view_id.active = False + if self.tree_view_id: + self.tree_view_id.active = False + result = super().unlink() + return result 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 new file mode 100644 index 000000000..2621d3a8c --- /dev/null +++ b/all_in_one_dynamic_custom_fields/models/ir_model_fields.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Ruksana P () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################### +from odoo import models, fields + + +class IrModelFields(models.Model): + """Adding a new field to understand the dynamically created fields.""" + _inherit = 'ir.model.fields' + + is_dynamic_field = fields.Boolean(string="Dynamic Field", + help='Enable this field for dynamic field' + 'creation') diff --git a/all_in_one_dynamic_custom_fields/security/all_in_one_dynamic_custom_fields_groups.xml b/all_in_one_dynamic_custom_fields/security/all_in_one_dynamic_custom_fields_groups.xml new file mode 100644 index 000000000..a268d1181 --- /dev/null +++ b/all_in_one_dynamic_custom_fields/security/all_in_one_dynamic_custom_fields_groups.xml @@ -0,0 +1,27 @@ + + + + + All in One Custom Dynamic Fields + Helps you handle your All-in-One Custom + Dynamic Fields Permissions + + 5 + + + User + + + + Administrator + + + + + diff --git a/all_in_one_dynamic_custom_fields/security/ir.model.access.csv b/all_in_one_dynamic_custom_fields/security/ir.model.access.csv new file mode 100644 index 000000000..4115f1f3c --- /dev/null +++ b/all_in_one_dynamic_custom_fields/security/ir.model.access.csv @@ -0,0 +1,4 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_all_in_one_dynamic_custom_fields_administrator,dynamic.fields.administrator,model_dynamic_fields,all_in_one_dynamic_custom_fields.all_in_one_dynamic_custom_fields_group_administrator,1,1,1,1 +access_all_in_one_dynamic_custom_fields_user,dynamic.fields.user,model_dynamic_fields,all_in_one_dynamic_custom_fields.all_in_one_dynamic_custom_fields_group_user,1,0,0,0 +access_dynamic_field_widgets_administrator,dynamic.field.widgets.administrator,model_dynamic_field_widgets,all_in_one_dynamic_custom_fields.all_in_one_dynamic_custom_fields_group_administrator,1,1,1,1 diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/icons/check.png b/all_in_one_dynamic_custom_fields/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/icons/check.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/icons/chevron.png b/all_in_one_dynamic_custom_fields/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/icons/chevron.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/icons/cogs.png b/all_in_one_dynamic_custom_fields/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/icons/cogs.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/icons/consultation.png b/all_in_one_dynamic_custom_fields/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/icons/consultation.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/icons/ecom-black.png b/all_in_one_dynamic_custom_fields/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/icons/ecom-black.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/icons/education-black.png b/all_in_one_dynamic_custom_fields/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/icons/education-black.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/icons/hotel-black.png b/all_in_one_dynamic_custom_fields/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/icons/hotel-black.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/icons/license.png b/all_in_one_dynamic_custom_fields/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/icons/license.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/icons/lifebuoy.png b/all_in_one_dynamic_custom_fields/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/icons/lifebuoy.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/icons/manufacturing-black.png b/all_in_one_dynamic_custom_fields/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/icons/manufacturing-black.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/icons/pos-black.png b/all_in_one_dynamic_custom_fields/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/icons/pos-black.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/icons/puzzle.png b/all_in_one_dynamic_custom_fields/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/icons/puzzle.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/icons/restaurant-black.png b/all_in_one_dynamic_custom_fields/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/icons/restaurant-black.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/icons/service-black.png b/all_in_one_dynamic_custom_fields/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/icons/service-black.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/icons/trading-black.png b/all_in_one_dynamic_custom_fields/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/icons/trading-black.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/icons/training.png b/all_in_one_dynamic_custom_fields/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/icons/training.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/icons/update.png b/all_in_one_dynamic_custom_fields/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/icons/update.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/icons/user.png b/all_in_one_dynamic_custom_fields/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/icons/user.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/icons/wrench.png b/all_in_one_dynamic_custom_fields/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/icons/wrench.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/misc/categories.png b/all_in_one_dynamic_custom_fields/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/misc/categories.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/misc/check-box.png b/all_in_one_dynamic_custom_fields/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/misc/check-box.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/misc/compass.png b/all_in_one_dynamic_custom_fields/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/misc/compass.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/misc/corporate.png b/all_in_one_dynamic_custom_fields/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/misc/corporate.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/misc/customer-support.png b/all_in_one_dynamic_custom_fields/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/misc/customer-support.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/misc/cybrosys-logo.png b/all_in_one_dynamic_custom_fields/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/misc/cybrosys-logo.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/misc/features.png b/all_in_one_dynamic_custom_fields/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/misc/features.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/misc/logo.png b/all_in_one_dynamic_custom_fields/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/misc/logo.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/misc/pictures.png b/all_in_one_dynamic_custom_fields/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/misc/pictures.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/misc/pie-chart.png b/all_in_one_dynamic_custom_fields/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/misc/pie-chart.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/misc/right-arrow.png b/all_in_one_dynamic_custom_fields/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/misc/right-arrow.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/misc/star.png b/all_in_one_dynamic_custom_fields/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/misc/star.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/misc/support.png b/all_in_one_dynamic_custom_fields/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/misc/support.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/misc/whatsapp.png b/all_in_one_dynamic_custom_fields/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/misc/whatsapp.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/modules/custom_list.png b/all_in_one_dynamic_custom_fields/static/description/assets/modules/custom_list.png new file mode 100644 index 000000000..0d6fb2983 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/modules/custom_list.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/modules/hide_menu.png b/all_in_one_dynamic_custom_fields/static/description/assets/modules/hide_menu.png new file mode 100644 index 000000000..edf70dd15 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/modules/hide_menu.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/modules/list_view_image.png b/all_in_one_dynamic_custom_fields/static/description/assets/modules/list_view_image.png new file mode 100644 index 000000000..510d36ae9 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/modules/list_view_image.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/modules/login_qr.png b/all_in_one_dynamic_custom_fields/static/description/assets/modules/login_qr.png new file mode 100644 index 000000000..b8fb879b0 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/modules/login_qr.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/modules/to_do_list.png b/all_in_one_dynamic_custom_fields/static/description/assets/modules/to_do_list.png new file mode 100644 index 000000000..36fdb1ae4 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/modules/to_do_list.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/assets/modules/user_log.png b/all_in_one_dynamic_custom_fields/static/description/assets/modules/user_log.png new file mode 100644 index 000000000..ec782bb13 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/modules/user_log.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 new file mode 100644 index 000000000..0bfcbb092 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/1.png 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 new file mode 100644 index 000000000..395abb1a0 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/10.png 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 new file mode 100644 index 000000000..ba94a7fa4 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/11.png 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 new file mode 100644 index 000000000..83fbfdc8a Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/2.png 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 new file mode 100644 index 000000000..258d85c58 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/3.png 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 new file mode 100644 index 000000000..7a06a2777 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/4.png 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 new file mode 100644 index 000000000..72d3fec2a Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/5.png 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 new file mode 100644 index 000000000..ea896bc6e Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/6.png 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 new file mode 100644 index 000000000..cacc5f84e Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/7.png 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 new file mode 100644 index 000000000..28f086d15 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/8.png 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 new file mode 100644 index 000000000..aa70981cb Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/9.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 new file mode 100644 index 000000000..b87e964b8 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/assets/screenshots/hero.gif differ diff --git a/all_in_one_dynamic_custom_fields/static/description/banner.png b/all_in_one_dynamic_custom_fields/static/description/banner.png new file mode 100644 index 000000000..28b9db980 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/banner.png differ diff --git a/all_in_one_dynamic_custom_fields/static/description/icon.png b/all_in_one_dynamic_custom_fields/static/description/icon.png new file mode 100644 index 000000000..c07ba4d92 Binary files /dev/null and b/all_in_one_dynamic_custom_fields/static/description/icon.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 new file mode 100644 index 000000000..971bcaa14 --- /dev/null +++ b/all_in_one_dynamic_custom_fields/static/description/index.html @@ -0,0 +1,662 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ All In One Dynamic Fields

+

+ Create Custom Fields In Any Module Without Any Coding.

+ + +
+
+
+
+ +
+
+ +
+

+ Explore This + Module

+
+ + + + +
+
+ +
+

+ Overview +

+
+
+
+ All in One Custom Dynamic Fields module helps with easy creation of + custom fields in as per you need without any coding. + This module helps to add new fields on the form view and tree view as + per requirement. +
+
+ + + +
+
+ +
+

+ Features +

+
+
+
+
+ + Creates custom fields in any modules without coding. +
+
+ + The position of the fields can be easily set. +
+
+ + Widgets can be selected for custom fields. +
+
+ + Can set the field properties (help,required,copied,read-only,indexed) +
+
+
+
+
+ + + +
+
+ +
+

+ Screenshots +

+
+
+
+
+

+ Create Custom Dynamic Fields +

+

+ After installation, give the user access to 'All in One 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. +

+ + + +
+
+

+ 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.

+ + +
+
+
+ + + +
+
+ +
+

+ Related + Products +

+
+
+
+

Suggested Products

+
+ + +
+
+ + + +
+
+ +
+

+ Our Services +

+
+
+
+
+
+ +
+
+ Odoo + Customization
+
+
+
+ +
+
+ Odoo + Implementation
+
+
+
+ +
+
+ Odoo + Support
+
+
+
+ +
+
+ Hire + Odoo + Developer
+
+
+
+ +
+
+ Odoo + Integration
+
+
+
+ +
+
+ Odoo + Migration
+
+
+
+ +
+
+ Odoo + Consultancy
+
+
+
+ +
+
+ Odoo + Implementation
+
+
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+
+ + + +
+
+ +
+

+ Our + Industries +

+
+
+
+
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

+
+
+
+
+ + + +
+
+ +
+

+ Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? + Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+ +91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+ diff --git a/all_in_one_dynamic_custom_fields/views/dynamic_fields_views.xml b/all_in_one_dynamic_custom_fields/views/dynamic_fields_views.xml new file mode 100644 index 000000000..12939c6f8 --- /dev/null +++ b/all_in_one_dynamic_custom_fields/views/dynamic_fields_views.xml @@ -0,0 +1,124 @@ + + + + + dynamic.fields.view.tree + dynamic.fields + + + + + + + + + + + dynamic.fields.view.form + dynamic.fields + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + Custom Dynamic Fields + dynamic.fields + tree,form + +

+ Create New Custom Dynamic Field! +

+
+
+ + + +