@ -0,0 +1,49 @@ |
|||
.. image:: https://img.shields.io/badge/licenSe-LGPL--3-green.svg |
|||
:target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html |
|||
:alt: License: LGPL-3 |
|||
|
|||
CRM Dynamic Fields |
|||
================== |
|||
This module helps you to create custom field in CRM without any technical knowledge. |
|||
|
|||
Configuration |
|||
============= |
|||
- Add user in create custom field group |
|||
|
|||
License |
|||
------- |
|||
General Public License, Version 3 (LGPL v3). |
|||
(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) |
|||
|
|||
Company |
|||
------- |
|||
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
|||
|
|||
Credits |
|||
------- |
|||
* Developer: (V16) Dhanya Babu, |
|||
(V17) Ayana KP, |
|||
(V18) Adarsh K, |
|||
Contact:odoo@cybrosys.com |
|||
|
|||
Contacts |
|||
-------- |
|||
* Mail Contact : odoo@cybrosys.com |
|||
* Website : https://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 <https://cybrosys.com/>`__ |
|||
|
|||
Further information |
|||
=================== |
|||
HTML Description: `<static/description/index.html>`__ |
@ -0,0 +1,23 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Adarsh K (<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from . import models |
|||
from . import wizard |
@ -0,0 +1,47 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Adarsh K (<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
{ |
|||
'name': 'CRM Dynamic Fields', |
|||
'version': '18.0.1.0.0', |
|||
'category': 'Extra Tools', |
|||
'summary': "Helps to Add Custom Fields for Opportunity from user interface", |
|||
'description': """Adding Custom Fields for Opportunity |
|||
without any technical knowledge""", |
|||
'author': 'Cybrosys Techno Solutions', |
|||
'company': 'Cybrosys Techno Solutions', |
|||
'maintainer': 'Cybrosys Techno Solutions', |
|||
'website': 'https://www.cybrosys.com', |
|||
'depends': ['crm'], |
|||
'data': [ |
|||
'security/crm_dynamic_fields_groups.xml', |
|||
'security/ir.model.access.csv', |
|||
'data/crm_dynamic_fields_widget_data.xml', |
|||
'wizard/crm_dynamic_fields_views.xml', |
|||
'views/crm_lead_views.xml', |
|||
'views/ir_model_fields_views.xml', |
|||
], |
|||
'images': ['static/description/banner.png'], |
|||
'license': 'LGPL-3', |
|||
'installable': True, |
|||
'auto_install': False, |
|||
'application': False, |
|||
} |
@ -0,0 +1,41 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<data noupdate="1"> |
|||
<!-- Widget 'image' for 'binary' field --> |
|||
<record id="crm_field_image_widgets" model="crm.field.widgets"> |
|||
<field name="name">image</field> |
|||
<field name="description">Image</field> |
|||
</record> |
|||
<!-- Widget 'many2many_tags' for 'many2many' field --> |
|||
<record id="crm_field_many2many_tag_widget" model="crm.field.widgets"> |
|||
<field name="name">many2many_tags</field> |
|||
<field name="description">Many2many Tags</field> |
|||
</record> |
|||
<!-- Widget 'binary' for 'many2many' field --> |
|||
<record id="crm_field_many2many_binary_widget" |
|||
model="crm.field.widgets"> |
|||
<field name="name">binary</field> |
|||
<field name="description">Binary</field> |
|||
</record> |
|||
<!-- Widget 'radio' for 'selection' field --> |
|||
<record id="crm_field_radio_widget" model="crm.field.widgets"> |
|||
<field name="name">radio</field> |
|||
<field name="description">Radio</field> |
|||
</record> |
|||
<!-- Widget 'priority' for 'selection' field --> |
|||
<record id="crm_field_priority_widget" model="crm.field.widgets"> |
|||
<field name="name">priority</field> |
|||
<field name="description">Priority</field> |
|||
</record> |
|||
<!-- Widget 'monetory' for 'float' field --> |
|||
<record id="crm_field_monetory_widget" model="crm.field.widgets"> |
|||
<field name="name">monetary</field> |
|||
<field name="description">Monetary</field> |
|||
</record> |
|||
<!-- Widget 'selection' for 'Many2one' field --> |
|||
<record id="crm_field_selection_widget" model="crm.field.widgets"> |
|||
<field name="name">selection</field> |
|||
<field name="description">Selection</field> |
|||
</record> |
|||
</data> |
|||
</odoo> |
@ -0,0 +1,5 @@ |
|||
## Module <crm_dynamic_fields> |
|||
#### 10.09.2024 |
|||
#### Version 17.0.1.0.0 |
|||
#### ADD |
|||
- Initial Commit for CRM Dynamic Fields |
@ -0,0 +1,23 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Adarsh K (<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from . import crm_field_widgets |
|||
from . import ir_model_fields |
@ -0,0 +1,34 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Adarsh K (<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from odoo import fields, models |
|||
|
|||
|
|||
class CRMFieldWidgets(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 = 'crm.field.widgets' |
|||
_description = 'CRM Field Widgets' |
|||
|
|||
name = fields.Char(string="Name", help='Name of the widget') |
|||
description = fields.Char(string="Description", |
|||
help='Description of the widget') |
@ -0,0 +1,32 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Adarsh K (<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################### |
|||
from odoo import fields, models |
|||
|
|||
|
|||
class IrModelFields(models.Model): |
|||
"""Adding a new field to understand the dynamically created fields.""" |
|||
_inherit = 'ir.model.fields' |
|||
|
|||
is_dynamic = fields.Boolean(string="Dynamic Field", |
|||
help="Flag to indicate whether this " |
|||
"field is dynamically created or " |
|||
"not.") |
@ -0,0 +1,8 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<!-- This record represents a user group with permission to create custom fields for Leads.--> |
|||
<!-- Members of this group will be able to add new custom fields to projects,--> |
|||
<record id="group_add_crm_dynamic_fields" model="res.groups"> |
|||
<field name="name">Create Custom Fields in CRM</field> |
|||
</record> |
|||
</odoo> |
|
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 628 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 210 KiB |
After Width: | Height: | Size: 209 KiB |
After Width: | Height: | Size: 109 KiB |
After Width: | Height: | Size: 495 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 624 B |
After Width: | Height: | Size: 136 KiB |
After Width: | Height: | Size: 214 KiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 929 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 542 B |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 210 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 600 B |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 462 B |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 926 B |
After Width: | Height: | Size: 9.0 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 800 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 189 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 5.9 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 875 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 912 KiB |
After Width: | Height: | Size: 1.3 MiB |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 85 KiB |
After Width: | Height: | Size: 83 KiB |
After Width: | Height: | Size: 72 KiB |
After Width: | Height: | Size: 80 KiB |
After Width: | Height: | Size: 69 KiB |
After Width: | Height: | Size: 83 KiB |
After Width: | Height: | Size: 35 KiB |
After Width: | Height: | Size: 42 KiB |
After Width: | Height: | Size: 880 KiB |
After Width: | Height: | Size: 87 KiB |
After Width: | Height: | Size: 11 KiB |
@ -0,0 +1,991 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="en"> |
|||
<head> |
|||
<meta charset="UTF-8"/> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> |
|||
<title>CRM Dynamic Fields</title> |
|||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" |
|||
rel="stylesheet"/> |
|||
<link rel="preconnect" href="https://fonts.googleapis.com"> |
|||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
|||
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap" |
|||
rel="stylesheet"> |
|||
<link rel="stylesheet" |
|||
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css"/> |
|||
<link rel="stylesheet" |
|||
href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css"/> |
|||
<style> |
|||
:root { |
|||
--primary-color: #7f54b3; |
|||
--bg-white: #fff; |
|||
--text-color: #121212; |
|||
--text-color-light: #64728f; |
|||
} |
|||
body{ |
|||
font-family: "Montserrat", sans-serif; |
|||
} |
|||
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active { |
|||
color: var(--text-color); |
|||
font-family: Montserrat; |
|||
font-size: 16px !important; |
|||
font-weight: 500 !important; |
|||
border-radius: 30px; |
|||
line-height: normal; |
|||
text-transform: capitalize; |
|||
background-color: #F5F5F5; |
|||
border: none; |
|||
margin-bottom: 0; |
|||
padding: 12px 24px; |
|||
} |
|||
.nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover { |
|||
border-color: transparent; |
|||
isolation: isolate; |
|||
} |
|||
.nav-tabs .nav-link:focus-visible { |
|||
border-color: transparent; |
|||
box-shadow: none; |
|||
} |
|||
/* owl-carosel */ |
|||
.owl-carousel .owl-nav { |
|||
position: absolute; |
|||
top: 42%; |
|||
width: 100%; |
|||
display: flex; |
|||
justify-content: space-between; |
|||
transform: translateY(-42%); |
|||
} |
|||
|
|||
.owl-carousel .owl-nav button.owl-prev { |
|||
position: absolute; |
|||
right: -36px; |
|||
font-size: 28px; |
|||
background-color: #e4e4e4; |
|||
border-radius: 20px; |
|||
width: 40px; |
|||
height: 40px; |
|||
display: flex; |
|||
justify-content: center; |
|||
align-items: center; |
|||
} |
|||
|
|||
.owl-carousel .owl-nav button.owl-next { |
|||
position: absolute; |
|||
left: -36px; |
|||
font-size: 28px; |
|||
background-color: #e4e4e4; |
|||
border-radius: 20px; |
|||
width: 40px; |
|||
height: 40px; |
|||
display: flex; |
|||
justify-content: center; |
|||
align-items: center; |
|||
|
|||
} |
|||
|
|||
</style> |
|||
</head> |
|||
<body> |
|||
<!-- overview --> |
|||
<div class="container"> |
|||
<div class="my-5"> |
|||
<!-- button tab --> |
|||
<!-- --> |
|||
<!-- version support --> |
|||
<div class="my-3 d-flex align-items-center justify-content-end"> |
|||
<div class="text-center" |
|||
style="background-color:#017E84 !important; font-size:0.8rem !important; color:#fff !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width:120px !important"> |
|||
Community |
|||
</div> |
|||
<div class="text-center" |
|||
style="background-color:#875A7B !important; color:#fff !important; font-size:0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width:120px !important"> |
|||
Enterprise |
|||
</div> |
|||
<!-- <div class="text-center"--> |
|||
<!-- style="background-color:#7C7BAD !important; color:#fff !important; font-size:0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width:120px !important">--> |
|||
<!-- Odoo.sh--> |
|||
<!-- </div>--> |
|||
</div> |
|||
<div class="tab-content" id="myTabContent"> |
|||
<!-- description --> |
|||
<div class="tab-pane fade show active" id="home" role="tabpanel" |
|||
aria-labelledby="home-tab"> |
|||
<div class="position-relative" |
|||
style="border-radius: 16px; background: #f8f8f8; padding: 20px 0;"> |
|||
<div class="row " style=" |
|||
padding: 2rem 0rem 0 !important; |
|||
"> |
|||
<div class="col-lg-8 mx-auto gap-4 d-flex flex-column align-items-center"> |
|||
<p class="my-1 text-center text-uppercase" |
|||
style=" |
|||
letter-spacing: 4px !important; |
|||
color: var(--primary-color); |
|||
font-weight: bold; |
|||
text-align: center; |
|||
font-size: 14px; |
|||
font-weight: 600; |
|||
line-height: 15.96px; |
|||
text-transform: uppercase; |
|||
"> |
|||
Tool For Adding New Fields In Odoo CRM Without Any Technical knowledge. |
|||
</p> |
|||
<h1 class="text-center text-uppercase my-0" |
|||
style=" |
|||
color: var(--text-color); |
|||
font-size: 46px; |
|||
font-weight: 700; |
|||
line-height: normal; |
|||
">CRM Dynamic Fields</span> |
|||
</h1> |
|||
</div> |
|||
<div class="col-lg-12 d-flex justify-content-center align-items-center" |
|||
style="margin: 3rem 0;"> |
|||
<img src="./assets/icons/brand-pair.svg" |
|||
width="100%" |
|||
height="auto" |
|||
style="width: 50%" |
|||
class="img-responsive"/> |
|||
</div> |
|||
<div class="col-md-12 text-center"> |
|||
<a href="mailto:odoo@cybrosys.com" |
|||
target="_blank" |
|||
style="background-color: transparent;border-radius: 35px; |
|||
font-family: Montserrat; |
|||
display: inline-block; |
|||
padding: 7px 33px; |
|||
border: 1px solid var(--primary-color); |
|||
color: var(--primary-color); |
|||
text-decoration: none; |
|||
" |
|||
class="mx-1 mb-2 deep-1 deep_hover"> |
|||
<img class="img" |
|||
style="width: 24px" |
|||
src="./assets/icons/mail.svg"/> |
|||
<span class="pl-2" |
|||
style=" font-size: 16px; vertical-align: middle" |
|||
>Email Us</span |
|||
> |
|||
</a> |
|||
<a href="skype:cybroopenerp?chat" |
|||
target="_blank" |
|||
style=" |
|||
background-color: #7f289b; |
|||
font-family: Montserrat; |
|||
display: inline-block; |
|||
padding: 7px 33px; |
|||
border: 1px solid #7f289b; |
|||
border-radius: 35px; |
|||
text-decoration: none; |
|||
" |
|||
class="mx-1 mb-2 deep-1 deep_hover"> |
|||
<img |
|||
class="img" |
|||
style="width: 24px" |
|||
src="./assets/icons/skype-fill.svg" |
|||
/> |
|||
<span |
|||
class="pl-2" |
|||
style="color: #fff; font-size: 16px; vertical-align: middle" |
|||
>Skype Us</span |
|||
> |
|||
</a> |
|||
</div> |
|||
<div class="d-flex justify-content-center mt-2"> |
|||
<img src="./assets/icons/hero.gif" |
|||
class="w-100" |
|||
style="z-index: 3; height: auto;"> |
|||
</div> |
|||
</div> |
|||
<div class="position-absolute" |
|||
style="bottom: 0; z-index: 1; width: 100%;"> |
|||
<img src="./assets/icons/banner-bg.svg" |
|||
class="img-fluid w-100"> |
|||
</div> |
|||
<div class="position-absolute" |
|||
style="bottom: 0; right: 0; z-index: 2;"> |
|||
<img src="./assets/icons/patter.svg"> |
|||
</div> |
|||
</div> |
|||
<!-- key-highlight --> |
|||
<div class="" style="border-radius: 16px; |
|||
padding: 60px 40px; |
|||
border: 1px solid #EBEEF2; |
|||
background: #F5F5F7; |
|||
box-shadow: 0px 5px 20px -11px rgba(0, 0, 0, 0.25); "> |
|||
<div class="row"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center"> |
|||
<h2 style=" color: var(--text-color); |
|||
text-align: center; |
|||
font-size: 40px; |
|||
font-weight: 700; |
|||
text-transform: uppercase; padding-bottom: 50px;">Key |
|||
Heighlights</h2> |
|||
</div> |
|||
<div class="col-lg-4"> |
|||
<div class="mb-4 d-flex flex-column justify-content-center gap-3" |
|||
style="border-radius: 12px; border: 1px solid #B6BCCD; |
|||
background: #FFF;padding:32px "> |
|||
<div class="d-flex justify-content-center align-items-center" |
|||
style="background-color:#7847D9 !important; border-radius:8px !important; height:42px; width:42px"> |
|||
<img src="./assets/icons/feature-icon.svg" |
|||
class="img-responsive" height="26px" |
|||
width="26px"> |
|||
</div> |
|||
<h5 class="m-0" |
|||
style="color:#000 !important; font-weight:bold"> |
|||
Create custom fields |
|||
</h5> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-4"> |
|||
<div class="mb-4 d-flex flex-column justify-content-center gap-3" |
|||
style="border-radius: 12px; |
|||
border: 1px solid #B6BCCD; |
|||
background: #FFF;padding:32px "> |
|||
<div class="d-flex justify-content-center align-items-center" |
|||
style="background-color:#7847D9 !important; border-radius:8px !important; height:42px; width:42px"> |
|||
<img src="./assets/icons/feature-icon.svg" |
|||
class="img-responsive" height="26px" |
|||
width="26px"> |
|||
</div> |
|||
<h5 class="m-0" |
|||
style="color:#000 !important; font-weight:bold"> |
|||
Different field types can choose |
|||
</h5> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-4"> |
|||
<div class="mb-4 d-flex flex-column justify-content-center gap-3" |
|||
style="border-radius: 12px; |
|||
border: 1px solid #B6BCCD; |
|||
background: #FFF;padding:32px "> |
|||
<div class="d-flex justify-content-center align-items-center" |
|||
style="background-color:#7847D9 !important; border-radius:8px !important; height:42px; width:42px"> |
|||
<img src="./assets/icons/feature-icon.svg" |
|||
class="img-responsive" height="26px" |
|||
width="26px"> |
|||
</div> |
|||
<h5 class="m-0" |
|||
style="color:#000 !important; font-weight:bold"> |
|||
Delete the Custom created Fields |
|||
</h5> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-4"> |
|||
<div class="mb-4 d-flex flex-column justify-content-center gap-3" |
|||
style="border-radius: 12px; |
|||
border: 1px solid #B6BCCD; |
|||
background: #FFF;padding:32px "> |
|||
<div class="d-flex justify-content-center align-items-center" |
|||
style="background-color:#7847D9; border-radius:8px !important; height:42px; width:42px"> |
|||
<img src="./assets/icons/feature-icon.svg" |
|||
class="img-responsive" height="26px" |
|||
width="26px"> |
|||
</div> |
|||
<h5 class="m-0" |
|||
style="color:#000 !important; font-weight:bold"> |
|||
Supports both Community and Enterprise |
|||
</h5> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!--code --> |
|||
<div class="my-5"> |
|||
<div style=" padding: 5rem 4rem 5rem 4rem; background-color: #0A1425; border-radius: 12px; position: relative;"> |
|||
<div class="wrapper-info" |
|||
style="display: flex; flex-direction: column; gap: 20px;"> |
|||
<span class="wrapper-subtitle" |
|||
style="font-size: 40px; font-weight: 700; color: #fff;line-height: 60px; text-transform: capitalize; width: 450px;">CRM Dynamic Fields</span> |
|||
<h3 class="wrapper-details" |
|||
style="font-size: 20px; font-weight: 400; color: #fff; line-height: 32px; "> |
|||
Are you ready to make your business more |
|||
organized? |
|||
<br> Improve now! |
|||
</h3> |
|||
<div class="d-flex gap-3"> |
|||
<a href="mailto:odoo@cybrosys.com" |
|||
class="shop-btn" style="cursor: pointer; border-radius: 16px; display: flex; justify-content: center; align-items: center; gap: 7px; |
|||
border: 1px solid var(--DarkOverlayElement-DO20, rgba(255, 255, 255, 0.20)); |
|||
background: linear-gradient(93deg, rgba(255, 255, 255, 0.08) 6.01%, rgba(255, 255, 255, 0.17) 90.83%); |
|||
backdrop-filter: blur(10px); color: #fff; padding: 12px 16px 12px 16px; text-decoration: none;"> |
|||
<span style="border-radius: 12px; |
|||
background: var(--DarkOverlayElement-DO10, rgba(255, 255, 255, 0.10)); |
|||
backdrop-filter: blur(6px);padding: 12px;"> |
|||
<img src="./assets/icons/banner-mail.svg"> |
|||
</span> |
|||
<span style="font-weight: 500;">odoo@cybrosys.com</span> |
|||
</a> |
|||
<a href="https://wa.me/919074270811" target="_blank" class="shop-btn" |
|||
style="cursor: pointer; border-radius: 16px; display: flex; justify-content: center; align-items: center; gap: 7px; |
|||
border: 1px solid var(--DarkOverlayElement-DO20, rgba(255, 255, 255, 0.20)); |
|||
background: linear-gradient(93deg, rgba(255, 255, 255, 0.08) 6.01%, rgba(255, 255, 255, 0.17) 90.83%); |
|||
backdrop-filter: blur(10px); color: #fff; padding: 12px 22px 12px 18px; text-decoration: none;"> |
|||
<span style="border-radius: 12px; |
|||
background: var(--DarkOverlayElement-DO10, rgba(255, 255, 255, 0.10)); |
|||
backdrop-filter: blur(6px);padding: 12px;"> |
|||
<img src="./assets/icons/banner-call.svg"> |
|||
</span> |
|||
<span style="font-weight: 500;">+91 9074270811</span> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="" |
|||
style="position: absolute; bottom: 0; right: 0;"> |
|||
<img src="./assets/icons/banner-pattern.svg" |
|||
style="width: 540px;"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!-- end-code --> |
|||
<!-- --> |
|||
<!-- screenshot and other --> |
|||
|
|||
<div class="mb-4 bg-white" |
|||
style=" border: 1px solid #EBEEF2; border-radius: 6px; box-shadow: 0px 8px 20px -4px rgba(0, 0, 0, 0.10); border: 1px solid #EBEEF2;"> |
|||
<div> |
|||
<ul class="nav nav-tabs justify-content-center bg-white py-2" |
|||
id="myTab" role="tablist" |
|||
style="border-radius: 6px 6px 0 0;"> |
|||
<li class="nav-item"> |
|||
<a aria-controls="overview" |
|||
aria-bs-selected="true" |
|||
class="nav-link active" data-bs-toggle="tab" |
|||
href="#overview" id="overview-tab" role="tab" |
|||
style="color:#121212; font-weight:500; font-size:16px"> |
|||
Screenshots</a> |
|||
</li> |
|||
<li class="nav-item"> |
|||
<a aria-controls="feature" |
|||
aria-bs-selected="false" |
|||
class="nav-link py-2" data-bs-toggle="tab" |
|||
href="#feature" id="feature-tab" role="tab" |
|||
style="color:#121212; font-weight:500; font-size:16px">Features</a> |
|||
</li> |
|||
<li class="nav-item"> |
|||
<a aria-controls="faq" aria-bs-selected="false" |
|||
class="nav-link" data-bs-toggle="tab" |
|||
href="#faq" id="faq-tab" role="tab" |
|||
style="color:#121212; font-weight:500; font-size:16px"> |
|||
FAQs</a> |
|||
</li> |
|||
<li class="nav-item"> |
|||
<a aria-controls="releases" |
|||
aria-bs-selected="false" class="nav-link" |
|||
data-bs-toggle="tab" href="#releases" |
|||
id="releases-tab" role="tab" |
|||
style="color:#121212; font-weight:500; font-size:16px">Releases</a> |
|||
</li> |
|||
</ul> |
|||
</div> |
|||
<div class="tab-content p-md-5 p-2 py-3" id="myTabContent"> |
|||
<div aria-labelledby="overview-tab" |
|||
class="tab-pane fade show active" id="overview" |
|||
role="tabpanel"> |
|||
<div class="position-relative mb-4" |
|||
style="border-radius:10px"> |
|||
<img alt="acc_bg" |
|||
class="w-100 h-100 position-absolute img-fluid left_0" |
|||
loading="lazy" |
|||
src="//apps.odoocdn.com/apps/assets/17.0/ks_dashboard_ninja/ai-img/o3.png?007008f" |
|||
style=""> |
|||
</div> |
|||
<!-- screenshots section--> |
|||
<div class="position-relative mb-4" |
|||
style="border-radius:10px; background-color:#f4f4f4"> |
|||
<div class="p-md-5 p-3 position-relative"> |
|||
<div class="row"> |
|||
<div class="col-md-12"> |
|||
<h1 style="font-weight:bold; font-size:calc(1.1rem + 1vw); line-height:120%; text-align:center; text-transform:capitalize; font-size: 40px; |
|||
font-weight: 700;"> |
|||
<span style="color: var(--primary-color); font-size:calc(1.1rem + 1vw)">Create Custom Fields in CRM</span> |
|||
</h1> |
|||
</div> |
|||
<div class="col-md-12 mb-4"> |
|||
<p style="font-weight:400; font-size:16px; line-height:150%; text-align:center; color:var(--text-color-light)"> |
|||
Go to users & Companies -> Users -> enable Create Custom Fields in CRM for user. |
|||
</p> |
|||
</div> |
|||
<div class="col-md-12 text-center"> |
|||
<div class="d-inline-block p-3 shadow-sm" |
|||
style="background-color:#fff; border-radius:10px"> |
|||
<img alt="" class="img-fluid" |
|||
loading="lazy" |
|||
src="./assets/screenshots/ss1.png" |
|||
style="min-height: 1px;"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="position-relative mb-4" |
|||
style="border-radius:10px; background-color:#f4f4f4"> |
|||
<div class="p-md-5 p-3 position-relative"> |
|||
<div class="row"> |
|||
<div class="col-md-12"> |
|||
<h1 style="font-weight:bold; font-size:calc(1.1rem + 1vw); line-height:120%; text-align:center; text-transform:capitalize; font-size: 40px; |
|||
font-weight: 700;"> |
|||
<span style="color: var(--primary-color); font-size:calc(1.1rem + 1vw)">Create Fields Smart Button</span> |
|||
</h1> |
|||
</div> |
|||
<div class="col-md-12 mb-4"> |
|||
<p style="font-weight:400; font-size:16px; line-height:150%; text-align:center; color:var(--text-color-light)"> |
|||
Go to CRM. Now a "Create Fields" smart button will appear on form view. |
|||
</p> |
|||
</div> |
|||
<div class="col-md-12 text-center"> |
|||
<div class="d-inline-block p-3 shadow-sm" |
|||
style="background-color:#fff; border-radius:10px"> |
|||
<img alt="" class="img-fluid" |
|||
loading="lazy" |
|||
src="./assets/screenshots/ss2.png" |
|||
style="min-height: 1px;"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="position-relative mb-4" |
|||
style="border-radius:10px; background-color:#f4f4f4"> |
|||
<div class="p-md-5 p-3 position-relative"> |
|||
<div class="row"> |
|||
<div class="col-md-12 mb-4"> |
|||
<p style="font-weight:400; font-size:16px; line-height:150%; text-align:center; color:var(--text-color-light)"> |
|||
Please enter the details which you want to display the screen. You can select different field type for fields.Then Click "Create" button. Then You can see the corresponding field in the screen. |
|||
</p> |
|||
</div> |
|||
<div class="col-md-12 text-center"> |
|||
<div class="d-inline-block p-3 shadow-sm" |
|||
style="background-color:#fff; border-radius:10px"> |
|||
<img alt="" class="img-fluid" |
|||
loading="lazy" |
|||
src="./assets/screenshots/ss3.png" |
|||
style="min-height: 1px;"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="position-relative mb-4" |
|||
style="border-radius:10px; background-color:#f4f4f4"> |
|||
<div class="p-md-5 p-3 position-relative"> |
|||
<div class="row"> |
|||
<div class="col-md-12 mb-4"> |
|||
<p style="font-weight:400; font-size:16px; line-height:150%; text-align:center; color:var(--text-color-light)"> |
|||
The Newly created field will be generated and that will be visible in the CRM view. |
|||
</p> |
|||
</div> |
|||
<div class="col-md-12 text-center"> |
|||
<div class="d-inline-block p-3 shadow-sm" |
|||
style="background-color:#fff; border-radius:10px"> |
|||
<img alt="" class="img-fluid" |
|||
loading="lazy" |
|||
src="./assets/screenshots/ss4.png" |
|||
style="min-height: 1px;"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="position-relative mb-4" |
|||
style="border-radius:10px; background-color:#f4f4f4"> |
|||
<div class="p-md-5 p-3 position-relative"> |
|||
<div class="row"> |
|||
<div class="col-md-12 mb-4"> |
|||
<p style="font-weight:400; font-size:16px; line-height:150%; text-align:center; color:var(--text-color-light)"> |
|||
The Newly created field can be deleted from CRM view. |
|||
</p> |
|||
</div> |
|||
<div class="col-md-12 text-center"> |
|||
<div class="d-inline-block p-3 shadow-sm" |
|||
style="background-color:#fff; border-radius:10px"> |
|||
<img alt="" class="img-fluid" |
|||
loading="lazy" |
|||
src="./assets/screenshots/ss5.png" |
|||
style="min-height: 1px;"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="position-relative mb-4" |
|||
style="border-radius:10px; background-color:#f4f4f4"> |
|||
<div class="p-md-5 p-3 position-relative"> |
|||
<div class="row"> |
|||
<div class="col-md-12 mb-4"> |
|||
<p style="font-weight:400; font-size:16px; line-height:150%; text-align:center; color:var(--text-color-light)"> |
|||
Select the Fields need to be deleted.And delete it using delete from action button. |
|||
</p> |
|||
</div> |
|||
<div class="col-md-12 text-center"> |
|||
<div class="d-inline-block p-3 shadow-sm" |
|||
style="background-color:#fff; border-radius:10px"> |
|||
<img alt="" class="img-fluid" |
|||
loading="lazy" |
|||
src="./assets/screenshots/ss6.png" |
|||
style="min-height: 1px;"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="position-relative mb-4" |
|||
style="border-radius:10px; background-color:#f4f4f4"> |
|||
<div class="p-md-5 p-3 position-relative"> |
|||
<div class="row"> |
|||
<div class="col-md-12 mb-4"> |
|||
<p style="font-weight:400; font-size:16px; line-height:150%; text-align:center; color:var(--text-color-light)"> |
|||
Click Delete for the confirmation. |
|||
</p> |
|||
</div> |
|||
<div class="col-md-12 text-center"> |
|||
<div class="d-inline-block p-3 shadow-sm" |
|||
style="background-color:#fff; border-radius:10px"> |
|||
<img alt="" class="img-fluid" |
|||
loading="lazy" |
|||
src="./assets/screenshots/ss7.png" |
|||
style="min-height: 1px;"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div aria-labelledby="feature-tab" |
|||
class="tab-pane fade show py-1" id="feature" |
|||
role="tabpanel"> |
|||
<div class="row py-4"> |
|||
<!-- Features Section --> |
|||
<div class="col-md-6 col-sm-12 p-3"> |
|||
<div class="d-flex flex-column align-items-start h-100" |
|||
style="padding:30px; border-radius:12px; background-color:#faf8ff"> |
|||
<div class="d-flex align-items-center justify-content-center"> |
|||
<div class="d-flex align-items-center justify-content-center " |
|||
style="width:36px; height:36px; border-radius:50%; background-color:#7847D9 ; margin-right:10px"> |
|||
<i class="fa fa-star " |
|||
style="color:#fff; font-size:14px"></i> |
|||
</div> |
|||
<p style="color:#1A202C; font-weight:600; font-size:1.2rem; margin-bottom:2px"> |
|||
Can Create custom fields.</p> |
|||
</div> |
|||
|
|||
</div> |
|||
</div> |
|||
<div class="col-md-6 col-sm-12 p-3"> |
|||
<div class="d-flex flex-column align-items-start h-100" |
|||
style="padding:30px; border-radius:12px; background-color:#faf8ff"> |
|||
<div class="d-flex align-items-center justify-content-center"> |
|||
<div class="d-flex align-items-center justify-content-center " |
|||
style="width:36px; height:36px; border-radius:50%; background-color:#7847D9 ; margin-right:10px"> |
|||
<i class="fa fa-star " |
|||
style="color:#fff; font-size:14px"></i> |
|||
</div> |
|||
<p style="color:#1A202C; font-weight:600; font-size:1.2rem; margin-bottom:2px"> |
|||
You can Delete the Custom created Fields.</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div aria-labelledby="faq-tab" |
|||
class="tab-pane fade show" id="faq" |
|||
role="tabpanel"> |
|||
<div class="row" |
|||
style=" background-color:#fff !important"> |
|||
<div class="col-md-12" aria-labelledby="faq-tab" |
|||
id="faq" role="tabpanel"> |
|||
<div class="accordion mb-4" id="accordion6"> |
|||
<div style="background-color:#fff"> |
|||
<!-- accordian --> |
|||
<div class="accordion" |
|||
id="accordion_faq"> |
|||
<!-- Question 1 --> |
|||
<div class="" |
|||
style="margin:1rem 0rem"> |
|||
<div aria-expanded="false" |
|||
class=" card-header collapsed" |
|||
data-bs-toggle="collapse" |
|||
data-bs-target="#collapseFAQOne" |
|||
href="#collapseFAQOne" |
|||
aria-controls="collapseFAQOne" |
|||
style="cursor: pointer; background-color:#f8f8f8; border:none; border-top-right-radius:10px; border-top-left-radius:10px; padding: 12px 24px;"> |
|||
<a class="card-title text-decoration-none" |
|||
style=" font-size:18px; line-height:30px; font-weight:500; color:#040f3a"> |
|||
Can I create multiple custom fields at once? |
|||
<img alt="" |
|||
class="float-end" |
|||
src="//apps.odoocdn.com/apps/assets/16.0/index_test_odoo/assets/icons/down.svg?6ef7fd7" |
|||
width="25px"> |
|||
</a> |
|||
</div> |
|||
<div class="accordion-collapse collapse" |
|||
aria-labelledby="collapseFAQOne" |
|||
data-bs-parent="#accordion_faq" |
|||
id="collapseFAQOne" |
|||
style=" box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px; border: 1px solid #f8f8f8; border-bottom-right-radius:10px; border-bottom-left-radius:10px"> |
|||
<p style=" padding:0.75rem 1.25rem; font-size:16px; line-height:27px; color:#888; font-weight:normal; border-bottom-right-radius:10px; border-bottom-left-radius:10px"> |
|||
Yes, there’s no limit on the number of custom fields you can create. You can add multiple custom fields, one after the other, based on your business requirements. |
|||
</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!-- --> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div aria-labelledby="releases-tab" |
|||
class="tab-pane fade show" id="releases" |
|||
role="tabpanel"> |
|||
<!-- Release Notes --> |
|||
<div class="row pt-5 m-0"> |
|||
<div class="col-md-3"> |
|||
<h4 style="font-size:16px; font-weight:600; color:#514F4F; margin:0; line-height:26px;"> |
|||
Latest Release 18.0.1.0.0 |
|||
</h4> |
|||
<span style="font-size:14px; color:#7A7979; display:block; margin-bottom:20px;"> |
|||
8th October, 2024 |
|||
</span> |
|||
</div> |
|||
<div class="col-md-8"> |
|||
<div style="padding:0 0 40px"> |
|||
<div style="margin:0 0 10px"> |
|||
<div style="display:inline-block; padding:0px 8px; color:#514F4F; background-color:#FFD8D8; border-radius:20px"> |
|||
Add |
|||
</div> |
|||
</div> |
|||
<div class="d-flex m-0" |
|||
style="color:#7A7979;"> |
|||
<ul class="pl-3 mb-0"> |
|||
<li> |
|||
Initial Commit |
|||
</li> |
|||
|
|||
</ul> |
|||
</div> |
|||
</div> |
|||
<div style="padding:0 0 0; border-bottom:1px solid #E3E3E3"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!-- --> |
|||
<!-- related post --> |
|||
<div class="" style="margin-top: 100px;"> |
|||
<div class="text-center mt-4"> |
|||
<h3 class="mb-0" style="color: #000; |
|||
text-align: center; |
|||
font-family: Montserrat; |
|||
font-size: 40px; |
|||
font-style: normal; |
|||
font-weight: 700; |
|||
line-height: normal; |
|||
text-transform: uppercase; |
|||
padding-bottom: 50px;" |
|||
>Related Modules</h3> |
|||
</div> |
|||
|
|||
<div class="owl-carousel owl-theme"> |
|||
<div class="item" |
|||
style="border:1px solid #CBCBCB !important; border-radius: 6px;"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/base_accounting_kit" |
|||
style="color:#000; text-decoration:none"> |
|||
<div style=" border-radius:4px"> |
|||
<div> |
|||
<img src="./assets/modules/1.gif" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<p class="text-center mb-2 pb-0 text-black" |
|||
style="font-weight: 600; padding-top: 16px;"> |
|||
Odoo 17 Full Accounting Kit</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="item" |
|||
style="border:1px solid #CBCBCB !important; border-radius: 6px;"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/ohrms_core" |
|||
style="color:#000; text-decoration:none"> |
|||
<div style=" border-radius:4px"> |
|||
<div> |
|||
<img src="./assets/modules/2.gif" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<p class="text-center pb-0 mb-2 text-black" |
|||
style="font-weight: 600; padding-top: 16px;"> |
|||
Open HRMS Core</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="item" |
|||
style="border:1px solid #CBCBCB !important; border-radius: 6px;"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/invoice_format_editor" |
|||
style="color:#000; text-decoration:none"> |
|||
<div style=" border-radius:4px"> |
|||
<div> |
|||
<img src="./assets/modules/3.png" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<p class="text-center pb-0 mb-2 text-black" |
|||
style="font-weight: 600; padding-top: 16px;"> |
|||
Odoo17 Invoice Format Editor</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="item" |
|||
style="border:1px solid #CBCBCB !important; border-radius: 6px;"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/login_user_detail" |
|||
style="color:#000; text-decoration:none"> |
|||
<div style=" border-radius:4px"> |
|||
<div> |
|||
<img src="./assets/modules/4.png" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<p class="text-center pb-0 mb-2 text-black" |
|||
style="font-weight: 600; padding-top: 16px;"> |
|||
User Log Details</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="item" |
|||
style="border:1px solid #CBCBCB !important; border-radius: 6px;"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/product_barcode" |
|||
style="color:#000; text-decoration:none"> |
|||
<div style=" border-radius:4px"> |
|||
<div> |
|||
<img src="./assets/modules/5.png" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<p class="text-center pb-0 mb-2 text-black" |
|||
style="font-weight: 600; padding-top: 16px;"> |
|||
Odoo17 Product Barcode Generator</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="item" |
|||
style="border:1px solid #CBCBCB !important; border-radius: 6px;"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/whatsapp_redirect" |
|||
style="color:#000; text-decoration:none"> |
|||
<div style=" border-radius:4px"> |
|||
<div> |
|||
<img src="./assets/modules/6.jpg" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<p class="text-center pb-0 mb-2 text-black" |
|||
style="font-weight: 600; padding-top: 16px;"> |
|||
Send Whatsapp Message Odoo17</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!-- --> |
|||
<!-- service-section --> |
|||
|
|||
<section id="services" class="mt-5" style="border-radius: 16px; |
|||
border: 1px solid #EBEEF2; |
|||
background: var(--Neutral-N0, #FFF); |
|||
padding: 60px 40px; |
|||
box-shadow: 0px 5px 20px -11px rgba(0, 0, 0, 0.25);"> |
|||
<div class="text-center mt-4"><h3 class="mb-0" style="color: #000; |
|||
text-align: center; |
|||
font-family: Montserrat; |
|||
font-size: 40px; |
|||
font-style: normal; |
|||
font-weight: 700; |
|||
line-height: normal; |
|||
text-transform: uppercase; |
|||
padding-bottom: 50px;"> |
|||
Our Services</h3></div> |
|||
<div class="row mt-3"> |
|||
<div class="col-lg-3 col-sm-12 mb-3"> |
|||
<a href="#" style="text-decoration:none"> |
|||
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
|||
style="font-size:25px; font-weight:bold;background-color:#FFE2E5; margin:auto; gap: 16px; border-radius: 8px;"> |
|||
<div class="d-flex justify-content-center align-items-center" |
|||
style="background-color:#FA5A7D; border-radius:50%; height:56px; width:56px"> |
|||
<img src="./assets/icons/gear.svg" |
|||
class="img-responsive" |
|||
height="28px" width="28px"> |
|||
</div> |
|||
<span style="font-size: 18px; |
|||
color: var(--text-color); |
|||
font-weight: 600;"> Odoo Customization</span> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
<div class="col-lg-3 col-sm-12 mb-3"> |
|||
<a href="#" style="text-decoration:none"> |
|||
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
|||
style="font-size:25px; font-weight:bold;background-color:#FFF4DE; margin:auto; gap: 16px; border-radius: 8px;"> |
|||
<div class="d-flex justify-content-center align-items-center" |
|||
style="background-color:#FF947A; border-radius:50%; height:56px; width:56px"> |
|||
<img src="./assets/icons/wrench-icon.svg" |
|||
class="img-responsive" |
|||
height="28px" width="28px"> |
|||
</div> |
|||
<span style="font-size: 18px; |
|||
color: var(--text-color); |
|||
font-weight: 600;"> Odoo Implementation</span> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
<div class="col-lg-3 col-sm-12 mb-3"> |
|||
<a href="#" style="text-decoration:none"> |
|||
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
|||
style="font-size:25px; font-weight:bold;background-color:#DCFCE7; margin:auto; gap: 16px; border-radius: 8px;"> |
|||
<div class="d-flex justify-content-center align-items-center" |
|||
style="background-color:#3CD856; border-radius:50%; height:56px; width:56px"> |
|||
<img src="./assets/icons/life-ring-icon.svg" |
|||
class="img-responsive" |
|||
height="28px" width="28px"> |
|||
</div> |
|||
<span style="font-size: 18px; |
|||
color: var(--text-color); |
|||
font-weight: 600;">Odoo Support</span> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
<div class="col-lg-3 col-sm-12 mb-3"> |
|||
<a href="#" style="text-decoration:none"> |
|||
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
|||
style="font-size:25px; font-weight:bold;background-color:#F3E8FF; margin:auto; gap: 16px; border-radius: 8px;"> |
|||
<div class="d-flex justify-content-center align-items-center" |
|||
style="background-color:#BF83FF; border-radius:50%; height:56px; width:56px"> |
|||
<img src="./assets/icons/arrows-repeat.svg" |
|||
class="img-responsive" |
|||
height="28px" width="28px"> |
|||
</div> |
|||
<span style="font-size: 18px; |
|||
color: var(--text-color); |
|||
font-weight: 600;">Odoo Migration</span> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
<div class="col-lg-3 col-sm-12 mb-3"> |
|||
<a href="#" style="text-decoration:none"> |
|||
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
|||
style="font-size:25px; font-weight:bold;background-color:#F1F9FF; margin:auto; gap: 16px; border-radius: 8px;"> |
|||
<div class="d-flex justify-content-center align-items-center" |
|||
style="background-color:#01649C; border-radius:50%; height:56px; width:56px"> |
|||
<img src="./assets/icons/puzzle-piece-icon.svg" |
|||
class="img-responsive" |
|||
height="28px" width="28px"> |
|||
</div> |
|||
<span style="font-size: 18px; |
|||
color: var(--text-color); |
|||
font-weight: 600;">Odoo integration</span> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
<div class="col-lg-3 col-sm-12 mb-3"> |
|||
<a href="#" style="text-decoration:none"> |
|||
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
|||
style="font-size:25px; font-weight:bold;background-color:#EDF8ED; margin:auto; gap: 16px; border-radius: 8px;"> |
|||
|
|||
<div class="d-flex justify-content-center align-items-center" |
|||
style="background-color:#69CC70; border-radius:50%; height:56px; width:56px"> |
|||
<img src="./assets/icons/odoo-consultancy.svg" |
|||
class="img-responsive" |
|||
height="28px" width="28px"> |
|||
</div> |
|||
<span style="font-size: 18px; |
|||
color: var(--text-color); |
|||
font-weight: 600;">Odoo Consultancy</span> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
<div class="col-lg-3 col-sm-12 mb-3"> |
|||
<a href="#" style="text-decoration:none"> |
|||
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
|||
style="font-size:25px; font-weight:bold;background-color:#F1F6FF; margin:auto; gap: 16px; border-radius: 8px;"> |
|||
|
|||
<div class="d-flex justify-content-center align-items-center" |
|||
style="background-color:#2E4556; border-radius:50%; height:56px; width:56px"> |
|||
<img src="./assets/icons/odoo-licencing.svg" |
|||
class="img-responsive" |
|||
height="28px" width="28px"> |
|||
</div> |
|||
<span style="font-size: 18px; |
|||
color: var(--text-color); |
|||
font-weight: 600;">Odoo Licensing</span> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
<div class="col-lg-3 col-sm-12 mb-3"> |
|||
<a href="#" style="text-decoration:none"> |
|||
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
|||
style="font-size:25px; font-weight:bold;background-color:#FAF6EA; margin:auto; gap: 16px; border-radius: 8px;"> |
|||
|
|||
<div class="d-flex justify-content-center align-items-center" |
|||
style="background-color:#FCD12C; border-radius:50%; height:56px; width:56px"> |
|||
<img src="./assets/icons/hire-odoo.svg" |
|||
class="img-responsive" |
|||
height="28px" width="28px"> |
|||
</div> |
|||
<span style="font-size: 18px; |
|||
color: var(--text-color); |
|||
font-weight: 600;">Hire Odoo Developer</span> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!-- licence --> |
|||
<div class="tab-pane fade" id="profile" role="tabpanel" |
|||
aria-labelledby="profile-tab"> |
|||
<div class="px-5"> |
|||
.... |
|||
</div> |
|||
</div> |
|||
<!-- --> |
|||
</div> |
|||
</section> |
|||
<!-- --> |
|||
</div> |
|||
</div> |
|||
</body> |
|||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"></script> |
|||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" |
|||
integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" |
|||
crossorigin="anonymous" referrerpolicy="no-referrer"></script> |
|||
<script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.min.js"></script> |
|||
<script> |
|||
$('.owl-carousel').owlCarousel({ |
|||
rtl:true, |
|||
loop:true, |
|||
margin:10, |
|||
nav:true, |
|||
responsive:{ |
|||
0:{ |
|||
items:1 |
|||
}, |
|||
600:{ |
|||
items:3 |
|||
}, |
|||
1000:{ |
|||
items:3 |
|||
} |
|||
} |
|||
}) |
|||
</script> |
|||
</html> |
@ -0,0 +1,22 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<!-- This XML record defines a customization for the CRM Lead form view. |
|||
It inherits from the existing view 'crm.crm_lead_view_form' and adds a smart button inside the 'button_box' element. |
|||
The added button allows the user to create custom fields for the CRM Leads.--> |
|||
<record id="crm_lead_view_form" model="ir.ui.view"> |
|||
<field name="name">crm.lead.view.form.inherit.crm.dynamic.fields</field> |
|||
<field name="model">crm.lead</field> |
|||
<field name="inherit_id" ref="crm.crm_lead_view_form"/> |
|||
<field eval="1" name="priority"/> |
|||
<field name="arch" type="xml"> |
|||
<div name="button_box" position="inside"> |
|||
<button class="oe_stat_button o_res_partner_tip_opp" |
|||
type="action" |
|||
name="%(crm_dynamic_fields.crm_dynamic_fields_create_action)d" |
|||
string="Create Fields" help="Create Custom Fields" |
|||
icon="fa-plus" |
|||
groups="crm_dynamic_fields.group_add_crm_dynamic_fields"/> |
|||
</div> |
|||
</field> |
|||
</record> |
|||
</odoo> |
@ -0,0 +1,17 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<!--This record defines a custom search view for the 'ir.model.fields' model, |
|||
allowing users to search for crm dynamic fields specifically--> |
|||
<record id="view_model_fields_search" model="ir.ui.view"> |
|||
<field name="name">ir.model.fields.view.search.inherit.crm.dynamic.fields</field> |
|||
<field name="model">ir.model.fields</field> |
|||
<field name="inherit_id" ref="base.view_model_fields_search"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//search/filter[@name='translate']" position="after"> |
|||
<separator/> |
|||
<filter string="Dynamic Fields" name="dynamic_field" |
|||
domain="[('is_dynamic', '=', True)]"/> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
</odoo> |
@ -0,0 +1,22 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Adarsh K (<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from . import crm_dynamic_fields |
@ -0,0 +1,265 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Adarsh K (<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
import xml.etree.ElementTree as xee |
|||
from bs4 import BeautifulSoup |
|||
from odoo import api, fields, models, _ |
|||
|
|||
|
|||
class CRMDynamicFields(models.TransientModel): |
|||
"""Creating new transient model for the wizard from""" |
|||
_name = 'crm.dynamic.fields' |
|||
_description = 'CRM Dynamic Fields' |
|||
_inherit = ['ir.model.fields'] |
|||
|
|||
form_view_id = fields.Many2one('ir.ui.view', string="Form View ID", |
|||
help="Select the view to be used as" |
|||
"the form view for this field.") |
|||
|
|||
@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 |
|||
|
|||
def set_domain(self): |
|||
"""Return the fields that are currently present in the form""" |
|||
view_id = self.env.ref('crm.crm_lead_view_form') |
|||
view_arch = str(view_id.arch_base) |
|||
doc = xee.fromstring(view_arch) |
|||
field_list_1 = [tag.attrib['name'] for tag in doc.findall('.//field') |
|||
if 'invisible' not in tag.attrib and 'attrs' |
|||
not in tag.attrib] |
|||
model_id = self.env['ir.model'].sudo().search( |
|||
[('model', '=', 'crm.lead')]) |
|||
return [('model_id', '=', model_id.id), ('state', '=', 'base'), |
|||
('name', 'in', field_list_1)] |
|||
|
|||
def _set_default(self): |
|||
"""setting the default model""" |
|||
model_id = self.env['ir.model'].sudo().search( |
|||
[('model', '=', 'crm.lead')]) |
|||
return [('id', '=', model_id.id)] |
|||
|
|||
position_field_id = fields.Many2one('ir.model.fields', |
|||
string='Field Name', |
|||
domain=set_domain, required=True, |
|||
help="Select the field that will " |
|||
"determine the position of" |
|||
" the custom field.") |
|||
position = fields.Selection([('before', 'Before'), |
|||
('after', 'After')], |
|||
string='Position in Backend', |
|||
required=True, help="Position of field") |
|||
model_id = fields.Many2one('ir.model', string='Model', |
|||
required=True, |
|||
index=True, ondelete='cascade', |
|||
help="The models this field belongs to", |
|||
domain=_set_default) |
|||
ref_model_id = fields.Many2one('ir.model', string='Model', |
|||
index=True, |
|||
help="This field is used to specify the " |
|||
"model that the dynamic field will be " |
|||
"associated with.") |
|||
selection_field = fields.Char(string="Selection Options", |
|||
help='Enter selection value') |
|||
rel_field_id = fields.Many2one('ir.model.fields', |
|||
string='Related Field', |
|||
help='Related field') |
|||
field_type = fields.Selection(selection='get_possible_field_types', |
|||
string='Field Type', required=True, |
|||
help='The type of field that will be ' |
|||
'created for this dynamic field.' |
|||
'This field is required and must be ' |
|||
'set to one of the possible' |
|||
'field types returned by the ' |
|||
'"get_possible_field_types" method.') |
|||
ttype = fields.Selection(string="Field Type", related='field_type', |
|||
help='The type of field that this dynamic field ' |
|||
'corresponds to.') |
|||
widget_id = fields.Many2one('crm.field.widgets', string='Widget', |
|||
help='Select widget') |
|||
# Already existing field. |
|||
groups = fields.Many2many('res.groups', |
|||
'product_dynamic_fields_group_rel', |
|||
'field_id', 'group_id', |
|||
help='The security groups that have access to ' |
|||
'this dynamic field.') |
|||
extra_features = fields.Boolean(string="Show Extra Properties", |
|||
help="A boolean field that determines " |
|||
"whether to display extra properties " |
|||
"for this dynamic field in the user " |
|||
"interface") |
|||
|
|||
def action_create_fields(self): |
|||
""" Creates a new custom field for the project.project model and adds |
|||
it to the project form view.""" |
|||
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': True |
|||
}) |
|||
inherit_id = self.env.ref('crm.crm_lead_view_form') |
|||
view_id = self.env.ref('crm.crm_lead_view_form') |
|||
view_arch = str(view_id.arch_base) |
|||
soup = BeautifulSoup(view_arch, 'html.parser') |
|||
fields_all = soup.find_all('field', |
|||
attrs={"name": self.position_field_id.name}) |
|||
for field in fields_all: |
|||
if field.parent.name == "div": |
|||
parent_div = field.parent |
|||
class_name_string = ' '.join(parent_div['class']) |
|||
if self.position == 'before': |
|||
if self.widget_id: |
|||
arch_base = _('<?xml version="1.0"?>' |
|||
'<data>' |
|||
'<label for="{}" position="{}">' |
|||
'<field name="{}" widget="{}"/>' |
|||
'</label>' |
|||
'</data>').format( |
|||
self.position_field_id.name, self.position, |
|||
self.name, |
|||
self.widget_id.name) |
|||
else: |
|||
arch_base = ('<?xml version="1.0"?>' |
|||
'<data>' |
|||
'<label for="{}" position="{}">' |
|||
'<field name="{}"/>' |
|||
'</label>' |
|||
'</data>').format( |
|||
self.position_field_id.name, |
|||
self.position, self.name) |
|||
else: |
|||
if self.widget_id: |
|||
arch_base = _('<?xml version="1.0"?>' |
|||
'<data>' |
|||
'<div class="{}" position="{}">' |
|||
'<field name="{}" widget="{}"/>' |
|||
'</div>' |
|||
'</data>').format( |
|||
class_name_string, self.position, |
|||
self.name, |
|||
self.widget_id.name) |
|||
else: |
|||
arch_base = ('<?xml version="1.0"?>' |
|||
'<data>' |
|||
'<div class="{}" position="{}">' |
|||
'<field name="{}"/>' |
|||
'</div>' |
|||
'</data>').format(class_name_string, |
|||
self.position, |
|||
self.name) |
|||
else: |
|||
arch_base = _('<?xml version="1.0"?>' |
|||
'<data>' |
|||
'<field name="%s" position="%s">' |
|||
'<field name="%s"/>' |
|||
'</field>' |
|||
'</data>') % ( |
|||
self.position_field_id.name, self.position, |
|||
self.name) |
|||
if self.widget_id: |
|||
arch_base = _('<?xml version="1.0"?>' |
|||
'<data>' |
|||
'<field name="%s" position="%s">' |
|||
'<field name="%s" widget="%s"/>' |
|||
'</field>' |
|||
'</data>') % ( |
|||
self.position_field_id.name, self.position, |
|||
self.name, |
|||
self.widget_id.name) |
|||
if self.position_field_id.name == 'partner_id': |
|||
arch_base = ( |
|||
f"""<xpath expr="//group[@name='opportunity_partner']/field |
|||
[@name='{self.position_field_id.name}']" position= |
|||
"{self.position}"><field name="{self.name}"/></xpath>""") |
|||
if self.widget_id: |
|||
arch_base = ( |
|||
f"""<xpath expr="//group[@name='opportunity_partner'] |
|||
/field[@name='{self.position_field_id.name}']" |
|||
position="{self.position}"><field name="{self.name}" |
|||
widget="{self.widget_id.name}"/></xpath>""") |
|||
self.form_view_id = self.env['ir.ui.view'].sudo().create( |
|||
{ |
|||
'name': 'crm.dynamic.fields', |
|||
'type': 'form', |
|||
'model': 'crm.lead', |
|||
'mode': 'extension', |
|||
'inherit_id': inherit_id.id, |
|||
'arch_base': arch_base, |
|||
'active': True, |
|||
}) |
|||
return { |
|||
'type': 'ir.actions.client', |
|||
'tag': 'reload', |
|||
} |
|||
|
|||
@api.depends('field_type') |
|||
@api.onchange('field_type') |
|||
def onchange_field_type(self): |
|||
""" This method is triggered when the field_type field is changed. |
|||
It updates the domain of the widget field based on the |
|||
selected field_type.""" |
|||
if self.field_type: |
|||
if self.field_type == 'binary': |
|||
return {'domain': {'widget_id': [('name', '=', 'image')]}} |
|||
elif self.field_type == 'many2many': |
|||
return {'domain': { |
|||
'widget_id': [ |
|||
('name', 'in', ['many2many_tags', 'binary'])]}} |
|||
elif self.field_type == 'selection': |
|||
return {'domain': { |
|||
'widget_id': [('name', 'in', ['radio', 'priority'])]}} |
|||
elif self.field_type == 'float': |
|||
return {'domain': {'widget_id': [('name', '=', 'monetary')]}} |
|||
elif self.field_type == 'many2one': |
|||
return {'domain': {'widget_id': [('name', '=', 'selection')]}} |
|||
elif self.field_type == 'Boolean': |
|||
return {'domain': {'widget_id': [('name', '=', 'checkbox')]}} |
|||
else: |
|||
return {'domain': {'widget_id': [('id', '=', False)]}} |
|||
return {'domain': {'widget_id': [('id', '=', False)]}} |
|||
|
|||
def unlink(self): |
|||
"""Overrides the default 'unlink' method of the |
|||
'CRMDynamicFields' model to perform custom deletion logic.""" |
|||
if self.form_view_id: |
|||
self.form_view_id.active = False |
|||
for field in self: |
|||
if field.ttype == 'many2many': |
|||
field: [(5, 0, 0)] |
|||
else: |
|||
query = """delete FROM ir_model_fields WHERE name = %s""" |
|||
self.env.cr.execute(query, [field.name]) |
|||
return super(CRMDynamicFields, self).unlink() |
@ -0,0 +1,105 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<!--This is an XML view definition for a form view in Odoo, which allows users to create and manage dynamic fields for a model. --> |
|||
<record id="crm_dynamic_fields_view_form" model="ir.ui.view"> |
|||
<field name="name">crm.dynamic.fields.view.form</field> |
|||
<field name="model">crm.dynamic.fields</field> |
|||
<field name="arch" type="xml"> |
|||
<form string="Dynamic Fields"> |
|||
<sheet> |
|||
<group> |
|||
<group string="Field Info"> |
|||
<field name="name"/> |
|||
<field name="field_description"/> |
|||
<field name="state" readonly="1" |
|||
groups="base.group_no_one"/> |
|||
<field name="model_id" options="{'no_open': True, |
|||
'no_create': True}"/> |
|||
<field name="field_type"/> |
|||
<field name="selection_field" |
|||
placeholder="[('blue', 'Blue'), |
|||
('yellow', 'Yellow')]" |
|||
required="field_type in ['selection','reference']" |
|||
readonly="field_type not in ['selection','reference']" |
|||
invisible="field_type not in ['selection','reference']"/> |
|||
<field name="ref_model_id" |
|||
options="{'no_open': True, 'no_create': True}" |
|||
required="required in ['many2one','many2many']" |
|||
readonly="field_type not in ['many2one','many2many']" |
|||
invisible="field_type not in ['many2one','many2many']" |
|||
/> |
|||
<field name="widget_id" widget="selection" |
|||
invisible="field_type not in ['binary', 'many2many', 'selection', 'float', 'many2one']" |
|||
/> |
|||
<field name="required"/> |
|||
</group> |
|||
<group string="Position"> |
|||
<field name="position_field_id" |
|||
options="{'no_open': True, 'no_create': True}"/> |
|||
<field name="position"/> |
|||
</group> |
|||
</group> |
|||
<group string="Extra Properties"> |
|||
<group> |
|||
<field name="extra_features"/> |
|||
</group> |
|||
<group invisible=" not extra_features"> |
|||
<field name="help"/> |
|||
</group> |
|||
<group invisible=" not extra_features"> |
|||
<field name="readonly"/> |
|||
<field name="store"/> |
|||
<field name="index"/> |
|||
<field name="copied"/> |
|||
</group> |
|||
</group> |
|||
</sheet> |
|||
<footer> |
|||
<button name="action_create_fields" string="Create" |
|||
type="object" class="oe_highlight"/> |
|||
<button string="Cancel" class="oe_link" special="cancel"/> |
|||
</footer> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
<!--This XML record defines an action to open a form view for creating custom fields in the crm.dynamic.fields model--> |
|||
<record id="crm_dynamic_fields_create_action" |
|||
model="ir.actions.act_window"> |
|||
<field name="name">Create Custom Fields</field> |
|||
<field name="res_model">crm.dynamic.fields</field> |
|||
<field name="view_mode">form</field> |
|||
<field name="view_id" ref="crm_dynamic_fields_view_form"/> |
|||
<field name="target">new</field> |
|||
</record> |
|||
<!--tree view--> |
|||
<record id="crm_dynamic_fields_view_tree" model="ir.ui.view"> |
|||
<field name="name">crm.dynamic.fields.view.tree</field> |
|||
<field name="model">crm.dynamic.fields</field> |
|||
<field name="arch" type="xml"> |
|||
<list create="false"> |
|||
<field name="name"/> |
|||
<field name="field_description"/> |
|||
<field name="ttype"/> |
|||
</list> |
|||
</field> |
|||
</record> |
|||
<!-- Delete fields tree view --> |
|||
<record id="crm_dynamic_fields_delete_action" |
|||
model="ir.actions.act_window"> |
|||
<field name="name">Delete Custom Fields</field> |
|||
<field name="res_model">crm.dynamic.fields</field> |
|||
<field name="view_mode">list</field> |
|||
<field name="view_id" ref="crm_dynamic_fields_view_tree"/> |
|||
<field name="help" type="html"> |
|||
<p class="o_view_nocontent_smiling_face">Delete created custom |
|||
fields |
|||
</p> |
|||
</field> |
|||
</record> |
|||
<!-- Menu Item in Project to Delete fields --> |
|||
<menuitem id="crm_dynamic_fields_menu_delete" name="Delete Fields" |
|||
parent="crm.crm_menu_config" |
|||
action="crm_dynamic_fields.crm_dynamic_fields_delete_action" |
|||
groups="crm_dynamic_fields.group_add_crm_dynamic_fields" |
|||
sequence="12"/> |
|||
</odoo> |