diff --git a/website_customer_contact/README.rst b/website_customer_contact/README.rst new file mode 100644 index 000000000..71e03ff4c --- /dev/null +++ b/website_customer_contact/README.rst @@ -0,0 +1,50 @@ +.. 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 + +Website Customer Contact +========================= +This module helps you to create contact and addresses from website. + +Configuration +============= +* No additional configuration is needed. + +License +------- +Affero General Public License v3.0 (AGPL v3) +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developers: (V18) Nivedhya T, + (V17) Anzil K A, + (V16) Rahul Rajeev, Jumana Jabin MP, + + 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 `__ + +Further information +=================== +HTML Description: ``__ diff --git a/website_customer_contact/__init__.py b/website_customer_contact/__init__.py new file mode 100644 index 000000000..d556f091f --- /dev/null +++ b/website_customer_contact/__init__.py @@ -0,0 +1,22 @@ +# -- coding: utf-8 -- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Cybrosys () +# +# 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 controllers diff --git a/website_customer_contact/__manifest__.py b/website_customer_contact/__manifest__.py new file mode 100644 index 000000000..f7db31da2 --- /dev/null +++ b/website_customer_contact/__manifest__.py @@ -0,0 +1,51 @@ +# -- coding: utf-8 -- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Cybrosys Technologies (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +{ + 'name': "Website Customer Contact", + 'version': '18.0.1.0.0', + 'category': 'Website', + 'summary': """This module helps you to create contact and addresses + from website.""", + 'description': """This module helps you to create contact and addresses + from website. You can create,view and edit contacts and addresses.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['website'], + 'data': [ + 'views/portal_templates.xml', + 'views/website_templates.xml', + ], + 'assets': { + 'web.assets_frontend': [ + 'website_customer_contact/static/src/css/website_customer_contact.css', + 'website_customer_contact/static/src/js/customer_contact_edit_form.js', + 'website_customer_contact/static/src/js/customer_contact_form.js', + ], + }, + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/website_customer_contact/controllers/__init__.py b/website_customer_contact/controllers/__init__.py new file mode 100644 index 000000000..dba9ead16 --- /dev/null +++ b/website_customer_contact/controllers/__init__.py @@ -0,0 +1,24 @@ +# -- coding: utf-8 -- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Cybrosys () +# +# 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 contact_request +from . import portal +from . import website_customer_contact diff --git a/website_customer_contact/controllers/contact_request.py b/website_customer_contact/controllers/contact_request.py new file mode 100644 index 000000000..94c00cef8 --- /dev/null +++ b/website_customer_contact/controllers/contact_request.py @@ -0,0 +1,69 @@ +# -- coding: utf-8 -- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Cybrosys () +# +# 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 http +from odoo.http import request + + +class WebsiteCustomerContact(http.Controller): + """"Class to create a form to website""" + + @http.route('/contact_request_form', type="http", website=True, + auth='public') + def contact_request_form(self): + """Render the contact request form template and pass values + to the website.""" + return http.request.render( + "website_customer_contact.website_customer_contact_request_form", + { + 'contact_title': request.env['res.partner.title'] + .sudo().search([]), + 'country_id': request.env['res.country'].sudo().search([]), + 'state_id': request.env['res.country.state'].sudo().search([]), + }) + + @http.route('/contact_request_form/submit', type="http", website=True, + auth='public') + def contact_request_form_completed(self, **kw): + """Handle the completion of the contact request form and create + a new partner.""" + kw['parent_id'] = request.env.user.partner_id.id + kw['website_id'] = request.website.id + request.env['res.partner'].sudo().create(kw) + return request.render( + "website_customer_contact." + "website_customer_contact_request_form_completed") + + @http.route('/contact_request_form/write', type="http", website=True, + auth='public') + def contact_request_form_edit(self, **kw): + """Handle editing of a contact request form and update the + corresponding partner record.""" + current_contact = request.env['res.partner'].sudo().browse( + int(kw['id'])) + # To write new values + current_contact.write(kw) + customer_contact = request.env['res.partner'].sudo().search( + [('parent_id', '=', request.env.user.partner_id.id)]) + return request.render( + "website_customer_contact.website_customer_contact", { + 'customer_contact_portal': customer_contact, + 'page_name': 'customer_contact'}) diff --git a/website_customer_contact/controllers/portal.py b/website_customer_contact/controllers/portal.py new file mode 100644 index 000000000..25eb78cda --- /dev/null +++ b/website_customer_contact/controllers/portal.py @@ -0,0 +1,36 @@ +# -- coding: utf-8 -- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Cybrosys () +# +# 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.addons.portal.controllers import portal +from odoo.http import request + + +class CustomerPortal(portal.CustomerPortal): + """"Class to create a portal to website""" + + def _prepare_home_portal_values(self, counters): + """"Function to super and pass value to portal""" + values = super()._prepare_home_portal_values(counters) + if 'contact_count' in counters: + values['contact_count'] = request.env['res.partner'] \ + .sudo().search_count( + [('parent_id', '=', request.env.user.partner_id.id)]) + return values diff --git a/website_customer_contact/controllers/website_customer_contact.py b/website_customer_contact/controllers/website_customer_contact.py new file mode 100644 index 000000000..f6deb920b --- /dev/null +++ b/website_customer_contact/controllers/website_customer_contact.py @@ -0,0 +1,51 @@ +# -- coding: utf-8 -- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Cybrosys () +# +# 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 http +from odoo.http import request + + +class CustomerContacts(http.Controller): + """"Class to create a route to website""" + + @http.route(['/my/contacts'], type='http', auth='public', website=True) + def view_customer(self): + """Render the customer contact template and pass values to the + website.""" + customer_contact = request.env['res.partner'].sudo().search( + [('parent_id', '=', request.env.user.partner_id.id)]) + return request.render( + 'website_customer_contact.website_customer_contact', + {'customer_contact_portal': customer_contact, + 'page_name': 'customer_contact'}) + + @http.route(['/my/contacts/'], type='http', auth='public', + website=True) + def view_customer_details(self, contact): + """Render the customer contact details template and pass values to + the website.""" + customer_contact = request.env['res.partner'].sudo().search( + [('parent_id', '=', request.env.user.partner_id.id), + ('id', '=', contact)]) + return request.render( + 'website_customer_contact.website_customer_contact_detail', + {'customer_contact_portal': customer_contact, + 'page_name': 'customer_contact_details'}) diff --git a/website_customer_contact/doc/RELEASE_NOTES.md b/website_customer_contact/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..bdc1b729d --- /dev/null +++ b/website_customer_contact/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 05.06.2025 +#### Version 18.0.1.0.0 +##### ADD + +- Initial Commit for Website Customer Contact diff --git a/website_customer_contact/static/description/assets/icons/arrows-repeat.svg b/website_customer_contact/static/description/assets/icons/arrows-repeat.svg new file mode 100644 index 000000000..1d7efabc5 --- /dev/null +++ b/website_customer_contact/static/description/assets/icons/arrows-repeat.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/website_customer_contact/static/description/assets/icons/banner-1.png b/website_customer_contact/static/description/assets/icons/banner-1.png new file mode 100644 index 000000000..c180db172 Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/banner-1.png differ diff --git a/website_customer_contact/static/description/assets/icons/banner-2.svg b/website_customer_contact/static/description/assets/icons/banner-2.svg new file mode 100644 index 000000000..e606d97d9 --- /dev/null +++ b/website_customer_contact/static/description/assets/icons/banner-2.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/website_customer_contact/static/description/assets/icons/banner-bg.png b/website_customer_contact/static/description/assets/icons/banner-bg.png new file mode 100644 index 000000000..a8238d3c0 Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/banner-bg.png differ diff --git a/website_customer_contact/static/description/assets/icons/banner-bg.svg b/website_customer_contact/static/description/assets/icons/banner-bg.svg new file mode 100644 index 000000000..b1378103e --- /dev/null +++ b/website_customer_contact/static/description/assets/icons/banner-bg.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/website_customer_contact/static/description/assets/icons/banner-call.svg b/website_customer_contact/static/description/assets/icons/banner-call.svg new file mode 100644 index 000000000..96c687e81 --- /dev/null +++ b/website_customer_contact/static/description/assets/icons/banner-call.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/website_customer_contact/static/description/assets/icons/banner-mail.svg b/website_customer_contact/static/description/assets/icons/banner-mail.svg new file mode 100644 index 000000000..cbf0d158d --- /dev/null +++ b/website_customer_contact/static/description/assets/icons/banner-mail.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/website_customer_contact/static/description/assets/icons/banner-pattern.svg b/website_customer_contact/static/description/assets/icons/banner-pattern.svg new file mode 100644 index 000000000..9c1c7e101 --- /dev/null +++ b/website_customer_contact/static/description/assets/icons/banner-pattern.svg @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/website_customer_contact/static/description/assets/icons/banner-promo.svg b/website_customer_contact/static/description/assets/icons/banner-promo.svg new file mode 100644 index 000000000..d52791b11 --- /dev/null +++ b/website_customer_contact/static/description/assets/icons/banner-promo.svg @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/website_customer_contact/static/description/assets/icons/brand-pair.svg b/website_customer_contact/static/description/assets/icons/brand-pair.svg new file mode 100644 index 000000000..d8db7fc1e --- /dev/null +++ b/website_customer_contact/static/description/assets/icons/brand-pair.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/website_customer_contact/static/description/assets/icons/check.png b/website_customer_contact/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/check.png differ diff --git a/website_customer_contact/static/description/assets/icons/chevron.png b/website_customer_contact/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/chevron.png differ diff --git a/website_customer_contact/static/description/assets/icons/close-icon.svg b/website_customer_contact/static/description/assets/icons/close-icon.svg new file mode 100644 index 000000000..df8cce37a --- /dev/null +++ b/website_customer_contact/static/description/assets/icons/close-icon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/website_customer_contact/static/description/assets/icons/cogs.png b/website_customer_contact/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/cogs.png differ diff --git a/website_customer_contact/static/description/assets/icons/collabarate-icon.svg b/website_customer_contact/static/description/assets/icons/collabarate-icon.svg new file mode 100644 index 000000000..dd4e10518 --- /dev/null +++ b/website_customer_contact/static/description/assets/icons/collabarate-icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/website_customer_contact/static/description/assets/icons/consultation.png b/website_customer_contact/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/consultation.png differ diff --git a/website_customer_contact/static/description/assets/icons/cybro-logo.png b/website_customer_contact/static/description/assets/icons/cybro-logo.png new file mode 100644 index 000000000..ff4b78220 Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/cybro-logo.png differ diff --git a/website_customer_contact/static/description/assets/icons/down.svg b/website_customer_contact/static/description/assets/icons/down.svg new file mode 100644 index 000000000..f21c36271 --- /dev/null +++ b/website_customer_contact/static/description/assets/icons/down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/website_customer_contact/static/description/assets/icons/ecom-black.png b/website_customer_contact/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/ecom-black.png differ diff --git a/website_customer_contact/static/description/assets/icons/education-black.png b/website_customer_contact/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/education-black.png differ diff --git a/website_customer_contact/static/description/assets/icons/faq.png b/website_customer_contact/static/description/assets/icons/faq.png new file mode 100644 index 000000000..4250b5b81 Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/faq.png differ diff --git a/website_customer_contact/static/description/assets/icons/feature-icon.svg b/website_customer_contact/static/description/assets/icons/feature-icon.svg new file mode 100644 index 000000000..fa0ea6850 --- /dev/null +++ b/website_customer_contact/static/description/assets/icons/feature-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/website_customer_contact/static/description/assets/icons/feature.png b/website_customer_contact/static/description/assets/icons/feature.png new file mode 100644 index 000000000..ac7a785c0 Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/feature.png differ diff --git a/website_customer_contact/static/description/assets/icons/gear.svg b/website_customer_contact/static/description/assets/icons/gear.svg new file mode 100644 index 000000000..0cc66b6ea --- /dev/null +++ b/website_customer_contact/static/description/assets/icons/gear.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/website_customer_contact/static/description/assets/icons/hire-odoo.svg b/website_customer_contact/static/description/assets/icons/hire-odoo.svg new file mode 100644 index 000000000..e1ac089b0 --- /dev/null +++ b/website_customer_contact/static/description/assets/icons/hire-odoo.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/website_customer_contact/static/description/assets/icons/hotel-black.png b/website_customer_contact/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/hotel-black.png differ diff --git a/website_customer_contact/static/description/assets/icons/license.png b/website_customer_contact/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/license.png differ diff --git a/website_customer_contact/static/description/assets/icons/life-ring-icon.svg b/website_customer_contact/static/description/assets/icons/life-ring-icon.svg new file mode 100644 index 000000000..3ae6e1d89 --- /dev/null +++ b/website_customer_contact/static/description/assets/icons/life-ring-icon.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/website_customer_contact/static/description/assets/icons/lifebuoy.png b/website_customer_contact/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/lifebuoy.png differ diff --git a/website_customer_contact/static/description/assets/icons/mail.svg b/website_customer_contact/static/description/assets/icons/mail.svg new file mode 100644 index 000000000..1eedde695 --- /dev/null +++ b/website_customer_contact/static/description/assets/icons/mail.svg @@ -0,0 +1,3 @@ + + + diff --git a/website_customer_contact/static/description/assets/icons/manufacturing-black.png b/website_customer_contact/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/manufacturing-black.png differ diff --git a/website_customer_contact/static/description/assets/icons/notes.png b/website_customer_contact/static/description/assets/icons/notes.png new file mode 100644 index 000000000..ee5e95404 Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/notes.png differ diff --git a/website_customer_contact/static/description/assets/icons/notification icon.svg b/website_customer_contact/static/description/assets/icons/notification icon.svg new file mode 100644 index 000000000..053189973 --- /dev/null +++ b/website_customer_contact/static/description/assets/icons/notification icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/website_customer_contact/static/description/assets/icons/odoo-consultancy.svg b/website_customer_contact/static/description/assets/icons/odoo-consultancy.svg new file mode 100644 index 000000000..e05f65bde --- /dev/null +++ b/website_customer_contact/static/description/assets/icons/odoo-consultancy.svg @@ -0,0 +1,4 @@ + + + + diff --git a/website_customer_contact/static/description/assets/icons/odoo-licencing.svg b/website_customer_contact/static/description/assets/icons/odoo-licencing.svg new file mode 100644 index 000000000..2606c88b0 --- /dev/null +++ b/website_customer_contact/static/description/assets/icons/odoo-licencing.svg @@ -0,0 +1,3 @@ + + + diff --git a/website_customer_contact/static/description/assets/icons/odoo-logo.png b/website_customer_contact/static/description/assets/icons/odoo-logo.png new file mode 100644 index 000000000..0e4d0eb5a Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/odoo-logo.png differ diff --git a/website_customer_contact/static/description/assets/icons/patter.svg b/website_customer_contact/static/description/assets/icons/patter.svg new file mode 100644 index 000000000..25c9c0a8f --- /dev/null +++ b/website_customer_contact/static/description/assets/icons/patter.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/website_customer_contact/static/description/assets/icons/pattern1.png b/website_customer_contact/static/description/assets/icons/pattern1.png new file mode 100644 index 000000000..09ab0fb2d Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/pattern1.png differ diff --git a/website_customer_contact/static/description/assets/icons/pos-black.png b/website_customer_contact/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/pos-black.png differ diff --git a/website_customer_contact/static/description/assets/icons/puzzle-piece-icon.svg b/website_customer_contact/static/description/assets/icons/puzzle-piece-icon.svg new file mode 100644 index 000000000..3e9ad9373 --- /dev/null +++ b/website_customer_contact/static/description/assets/icons/puzzle-piece-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/website_customer_contact/static/description/assets/icons/puzzle.png b/website_customer_contact/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/puzzle.png differ diff --git a/website_customer_contact/static/description/assets/icons/replace-icon.svg b/website_customer_contact/static/description/assets/icons/replace-icon.svg new file mode 100644 index 000000000..d0e3a7af1 --- /dev/null +++ b/website_customer_contact/static/description/assets/icons/replace-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/website_customer_contact/static/description/assets/icons/restaurant-black.png b/website_customer_contact/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/restaurant-black.png differ diff --git a/website_customer_contact/static/description/assets/icons/screenshot-main.png b/website_customer_contact/static/description/assets/icons/screenshot-main.png new file mode 100644 index 000000000..575f8e676 Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/screenshot-main.png differ diff --git a/website_customer_contact/static/description/assets/icons/screenshot.png b/website_customer_contact/static/description/assets/icons/screenshot.png new file mode 100644 index 000000000..cef272529 Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/screenshot.png differ diff --git a/website_customer_contact/static/description/assets/icons/service-black.png b/website_customer_contact/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/service-black.png differ diff --git a/website_customer_contact/static/description/assets/icons/skype-fill.svg b/website_customer_contact/static/description/assets/icons/skype-fill.svg new file mode 100644 index 000000000..c17423639 --- /dev/null +++ b/website_customer_contact/static/description/assets/icons/skype-fill.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/website_customer_contact/static/description/assets/icons/skype.png b/website_customer_contact/static/description/assets/icons/skype.png new file mode 100644 index 000000000..51b409fb3 Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/skype.png differ diff --git a/website_customer_contact/static/description/assets/icons/skype.svg b/website_customer_contact/static/description/assets/icons/skype.svg new file mode 100644 index 000000000..df3dad39b --- /dev/null +++ b/website_customer_contact/static/description/assets/icons/skype.svg @@ -0,0 +1,3 @@ + + + diff --git a/website_customer_contact/static/description/assets/icons/star-1.svg b/website_customer_contact/static/description/assets/icons/star-1.svg new file mode 100644 index 000000000..7e55ab162 --- /dev/null +++ b/website_customer_contact/static/description/assets/icons/star-1.svg @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/website_customer_contact/static/description/assets/icons/star-2.svg b/website_customer_contact/static/description/assets/icons/star-2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/website_customer_contact/static/description/assets/icons/star-2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/website_customer_contact/static/description/assets/icons/support.png b/website_customer_contact/static/description/assets/icons/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/support.png differ diff --git a/website_customer_contact/static/description/assets/icons/test-1 - Copy.png b/website_customer_contact/static/description/assets/icons/test-1 - Copy.png new file mode 100644 index 000000000..f6a902663 Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/test-1 - Copy.png differ diff --git a/website_customer_contact/static/description/assets/icons/test-1.png b/website_customer_contact/static/description/assets/icons/test-1.png new file mode 100644 index 000000000..0908add2b Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/test-1.png differ diff --git a/website_customer_contact/static/description/assets/icons/test-2.png b/website_customer_contact/static/description/assets/icons/test-2.png new file mode 100644 index 000000000..4671fe91e Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/test-2.png differ diff --git a/website_customer_contact/static/description/assets/icons/trading-black.png b/website_customer_contact/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/trading-black.png differ diff --git a/website_customer_contact/static/description/assets/icons/training.png b/website_customer_contact/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/training.png differ diff --git a/website_customer_contact/static/description/assets/icons/translate.svg b/website_customer_contact/static/description/assets/icons/translate.svg new file mode 100644 index 000000000..af9c8a1aa --- /dev/null +++ b/website_customer_contact/static/description/assets/icons/translate.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/website_customer_contact/static/description/assets/icons/update.png b/website_customer_contact/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/update.png differ diff --git a/website_customer_contact/static/description/assets/icons/user.png b/website_customer_contact/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/user.png differ diff --git a/website_customer_contact/static/description/assets/icons/video.png b/website_customer_contact/static/description/assets/icons/video.png new file mode 100644 index 000000000..576705b17 Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/video.png differ diff --git a/website_customer_contact/static/description/assets/icons/whatsapp.png b/website_customer_contact/static/description/assets/icons/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/whatsapp.png differ diff --git a/website_customer_contact/static/description/assets/icons/wrench-icon.svg b/website_customer_contact/static/description/assets/icons/wrench-icon.svg new file mode 100644 index 000000000..174b5a465 --- /dev/null +++ b/website_customer_contact/static/description/assets/icons/wrench-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/website_customer_contact/static/description/assets/icons/wrench.png b/website_customer_contact/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/website_customer_contact/static/description/assets/icons/wrench.png differ diff --git a/website_customer_contact/static/description/assets/misc/Cybrosys R.png b/website_customer_contact/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/website_customer_contact/static/description/assets/misc/Cybrosys R.png differ diff --git a/website_customer_contact/static/description/assets/misc/categories.png b/website_customer_contact/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/website_customer_contact/static/description/assets/misc/categories.png differ diff --git a/website_customer_contact/static/description/assets/misc/check-box.png b/website_customer_contact/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/website_customer_contact/static/description/assets/misc/check-box.png differ diff --git a/website_customer_contact/static/description/assets/misc/compass.png b/website_customer_contact/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/website_customer_contact/static/description/assets/misc/compass.png differ diff --git a/website_customer_contact/static/description/assets/misc/corporate.png b/website_customer_contact/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/website_customer_contact/static/description/assets/misc/corporate.png differ diff --git a/website_customer_contact/static/description/assets/misc/customer-support.png b/website_customer_contact/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/website_customer_contact/static/description/assets/misc/customer-support.png differ diff --git a/website_customer_contact/static/description/assets/misc/cybrosys-logo.png b/website_customer_contact/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/website_customer_contact/static/description/assets/misc/cybrosys-logo.png differ diff --git a/website_customer_contact/static/description/assets/misc/email.svg b/website_customer_contact/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/website_customer_contact/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/website_customer_contact/static/description/assets/misc/features.png b/website_customer_contact/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/website_customer_contact/static/description/assets/misc/features.png differ diff --git a/website_customer_contact/static/description/assets/misc/logo.png b/website_customer_contact/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/website_customer_contact/static/description/assets/misc/logo.png differ diff --git a/website_customer_contact/static/description/assets/misc/phone.svg b/website_customer_contact/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/website_customer_contact/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/website_customer_contact/static/description/assets/misc/pictures.png b/website_customer_contact/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/website_customer_contact/static/description/assets/misc/pictures.png differ diff --git a/website_customer_contact/static/description/assets/misc/pie-chart.png b/website_customer_contact/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/website_customer_contact/static/description/assets/misc/pie-chart.png differ diff --git a/website_customer_contact/static/description/assets/misc/right-arrow.png b/website_customer_contact/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/website_customer_contact/static/description/assets/misc/right-arrow.png differ diff --git a/website_customer_contact/static/description/assets/misc/star (1) 2.svg b/website_customer_contact/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/website_customer_contact/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/website_customer_contact/static/description/assets/misc/star.png b/website_customer_contact/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/website_customer_contact/static/description/assets/misc/star.png differ diff --git a/website_customer_contact/static/description/assets/misc/support (1) 1.svg b/website_customer_contact/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/website_customer_contact/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/website_customer_contact/static/description/assets/misc/support-email.svg b/website_customer_contact/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/website_customer_contact/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/website_customer_contact/static/description/assets/misc/support.png b/website_customer_contact/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/website_customer_contact/static/description/assets/misc/support.png differ diff --git a/website_customer_contact/static/description/assets/misc/tick-mark.svg b/website_customer_contact/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/website_customer_contact/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/website_customer_contact/static/description/assets/misc/whatsapp 1.svg b/website_customer_contact/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/website_customer_contact/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/website_customer_contact/static/description/assets/misc/whatsapp.png b/website_customer_contact/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/website_customer_contact/static/description/assets/misc/whatsapp.png differ diff --git a/website_customer_contact/static/description/assets/misc/whatsapp.svg b/website_customer_contact/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/website_customer_contact/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/website_customer_contact/static/description/assets/modules/banner04.jpg b/website_customer_contact/static/description/assets/modules/banner04.jpg new file mode 100644 index 000000000..082c85bde Binary files /dev/null and b/website_customer_contact/static/description/assets/modules/banner04.jpg differ diff --git a/website_customer_contact/static/description/assets/modules/banner06.jpg b/website_customer_contact/static/description/assets/modules/banner06.jpg new file mode 100644 index 000000000..a0b756247 Binary files /dev/null and b/website_customer_contact/static/description/assets/modules/banner06.jpg differ diff --git a/website_customer_contact/static/description/assets/modules/banner1.jpg b/website_customer_contact/static/description/assets/modules/banner1.jpg new file mode 100644 index 000000000..ccfb168db Binary files /dev/null and b/website_customer_contact/static/description/assets/modules/banner1.jpg differ diff --git a/website_customer_contact/static/description/assets/modules/banner2.jpg b/website_customer_contact/static/description/assets/modules/banner2.jpg new file mode 100644 index 000000000..dc94e3938 Binary files /dev/null and b/website_customer_contact/static/description/assets/modules/banner2.jpg differ diff --git a/website_customer_contact/static/description/assets/modules/banner3.jpg b/website_customer_contact/static/description/assets/modules/banner3.jpg new file mode 100644 index 000000000..4dff0a24b Binary files /dev/null and b/website_customer_contact/static/description/assets/modules/banner3.jpg differ diff --git a/website_customer_contact/static/description/assets/modules/banner5.jpg b/website_customer_contact/static/description/assets/modules/banner5.jpg new file mode 100644 index 000000000..e03a55991 Binary files /dev/null and b/website_customer_contact/static/description/assets/modules/banner5.jpg differ diff --git a/website_customer_contact/static/description/assets/screenshots/hero.gif b/website_customer_contact/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..cfad5b8a1 Binary files /dev/null and b/website_customer_contact/static/description/assets/screenshots/hero.gif differ diff --git a/website_customer_contact/static/description/assets/screenshots/screenshot1.png b/website_customer_contact/static/description/assets/screenshots/screenshot1.png new file mode 100644 index 000000000..b16823800 Binary files /dev/null and b/website_customer_contact/static/description/assets/screenshots/screenshot1.png differ diff --git a/website_customer_contact/static/description/assets/screenshots/screenshot2.png b/website_customer_contact/static/description/assets/screenshots/screenshot2.png new file mode 100644 index 000000000..8b56199e7 Binary files /dev/null and b/website_customer_contact/static/description/assets/screenshots/screenshot2.png differ diff --git a/website_customer_contact/static/description/assets/screenshots/screenshot3.png b/website_customer_contact/static/description/assets/screenshots/screenshot3.png new file mode 100644 index 000000000..306699647 Binary files /dev/null and b/website_customer_contact/static/description/assets/screenshots/screenshot3.png differ diff --git a/website_customer_contact/static/description/assets/screenshots/screenshot4.png b/website_customer_contact/static/description/assets/screenshots/screenshot4.png new file mode 100644 index 000000000..97270fcac Binary files /dev/null and b/website_customer_contact/static/description/assets/screenshots/screenshot4.png differ diff --git a/website_customer_contact/static/description/assets/screenshots/screenshot5.png b/website_customer_contact/static/description/assets/screenshots/screenshot5.png new file mode 100644 index 000000000..63ef4e84a Binary files /dev/null and b/website_customer_contact/static/description/assets/screenshots/screenshot5.png differ diff --git a/website_customer_contact/static/description/assets/screenshots/screenshot6.png b/website_customer_contact/static/description/assets/screenshots/screenshot6.png new file mode 100644 index 000000000..00bdbde54 Binary files /dev/null and b/website_customer_contact/static/description/assets/screenshots/screenshot6.png differ diff --git a/website_customer_contact/static/description/assets/screenshots/screenshot7.png b/website_customer_contact/static/description/assets/screenshots/screenshot7.png new file mode 100644 index 000000000..1eafd227d Binary files /dev/null and b/website_customer_contact/static/description/assets/screenshots/screenshot7.png differ diff --git a/website_customer_contact/static/description/banner.jpg b/website_customer_contact/static/description/banner.jpg new file mode 100644 index 000000000..bd1aab93e Binary files /dev/null and b/website_customer_contact/static/description/banner.jpg differ diff --git a/website_customer_contact/static/description/icon.png b/website_customer_contact/static/description/icon.png new file mode 100644 index 000000000..131f7fcc7 Binary files /dev/null and b/website_customer_contact/static/description/icon.png differ diff --git a/website_customer_contact/static/description/index.html b/website_customer_contact/static/description/index.html new file mode 100644 index 000000000..97cb066ab --- /dev/null +++ b/website_customer_contact/static/description/index.html @@ -0,0 +1,1042 @@ + + + + + + Website Customer Contact + + + + + + + + + + +
+
+ + + +
+
+ Community +
+
+ Enterprise +
+ + + + +
+
+ +
+
+
+
+

+ This Module Helps to Create Contact and Addresses from Website. + +

+

Website Customer Contact +

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

Key + Highlights

+
+
+
+
+ +
+
+ Add Contacts & Addresses on your account. +
+

+

+
+
+
+
+
+ +
+
+ Create and Edit Contacts & Addresses. +
+

+

+
+
+
+
+ +
+
+
+ Website Customer Contact +

+ Are you ready to make your business more + organized? +
Improve now! +

+ +
+
+ +
+
+
+ + + + +
+
+ +
+
+
+
+ acc_bg +
+ +
+
+
+
+

+ Contact + + Request +

+
+
+

+ Navigate to Website > User > Contact Request. +

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

+ Enter the + + contact details +

+
+
+

+ In the form view enter the contact details and choose + the type of contact type from the "Type" field. + A contact will be created once the form is submitted. +

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

+ Contacts + + Menu. +

+
+
+

+ +

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

+ Contact + + Details. +

+
+
+

+ +

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

+ Edit + + Contact +

+
+
+

+ +

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

+ Add Contacts & Addresses on your account. +

+
+
+

+ +

+
+
+
+
+
+
+
+ +
+

+ Create and Edit Contacts & Addresses.

+
+
+

+ +

+
+
+
+
+
+
+
+ +
+

+ Available in + both Community & Enterprise.

+
+
+

+ +

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

+ You can find the "Contact request" section in your website account portal once you log in. +

+
+
+ +
+ +
+

+ Yes, all contacts submitted + from the website are visible and edit. +

+
+
+ +
+ +
+

+ Yes, the module is built + to be customizable. + You can extend the + form to include additional + fields as per your requirements. +

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

+ Latest Release 18.0.1.0.0 +

+ + 05th June, 2025 + +
+
+
+
+
+ Add +
+
+
+
    +
  • + Initial Commit +
  • + +
+
+
+
+
+
+
+
+
+
+ + + +
+

+ Related Products +

+ +
+ + +
+

+ Our Services

+ +
+ +
+
+ .... +
+
+ +
+ + +
+
+ + + + + + diff --git a/website_customer_contact/static/src/css/website_customer_contact.css b/website_customer_contact/static/src/css/website_customer_contact.css new file mode 100644 index 000000000..0af511709 --- /dev/null +++ b/website_customer_contact/static/src/css/website_customer_contact.css @@ -0,0 +1,107 @@ +a#myModal{ + margin-top: -56px; + margin-left: 1137px; +} +@media screen and (max-width: 1600px) { +.modal.show .modal-dialog{ +max-height:56% !important; +} +} +@media screen and (max-width: 991px) { +.modal.show .modal-dialog{ +max-height:56% !important; +} +} +@media screen and (max-width: 768px) { +.form-field .col-md-3 +text-align:left !important; +} +.form-field .o_website_form_input{ +width:96% !important; +} +.modal-body{ +background-color:#fff; +} +.modal.show .modal-dialog{ +max-height:75% !important; +} +.contact_form{ + width:100% !important; +} +} +@media screen and (max-width: 500px) { + a#myModal{ + margin-top: -47px; + margin-left: 182px; + } + .modal-dialog.modal-content{ + min-height: 440px !important; + max-width: 100% !important; + } + .contact_form form label{ + width:48% !important; + } + .contact_form form .form-control { + width: 100% !important; +} +} +.btn-add-contact{ + background: none; + border: none; +} +.btn-add-contact a{ + color: white !important; + padding: 0px 36px !important; + height: 36px !important; + display: flex; + align-items: center; + outline: none !important; + border-radius: 9px; + box-shadow: none; + background-color: #35979c; + } + .o_popup_btn_close{ + color: #FFFFFF; + background-color: #35979c; + border-color: #35979c; + font-size:1rem !important; + margin-left:9px; + } + .o_popup_btn_close:hover{ + color:#fff !important; + background-color:#2d8084; + } + a#myModal{ + position: absolute; + right: 17px; + top: 12px; + margin:0px !important; + } +.contact_form{ + margin: auto; + width: 750px; +} +.contact_form .form-group{ + + margin-bottom:16px; +} +.contact_form form label { + font-weight: 700; + float: left; + width: 17%; +} +.contact_form form .form-control { + width:83%; +} +.contact-success{ + width: 369px; + margin: auto; + margin-top: 14%; + font-size:18px; + border-radius:43px; +} +.contact-success span{ + + padding-right:7px; + font-size:22px; +} diff --git a/website_customer_contact/static/src/img/contacts.svg b/website_customer_contact/static/src/img/contacts.svg new file mode 100644 index 000000000..12a07e173 --- /dev/null +++ b/website_customer_contact/static/src/img/contacts.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/website_customer_contact/static/src/js/customer_contact_edit_form.js b/website_customer_contact/static/src/js/customer_contact_edit_form.js new file mode 100644 index 000000000..74a3cd3f3 --- /dev/null +++ b/website_customer_contact/static/src/js/customer_contact_edit_form.js @@ -0,0 +1,36 @@ +/** @odoo-module */ + +import dom from '@web/legacy/js/core/dom'; +import publicWidget from '@web/legacy/js/public/public_widget'; +import { Dialog } from "@web/core/dialog/dialog"; +import { AlertDialog } from "@web/core/confirmation_dialog/confirmation_dialog"; +import { _t } from "@web/core/l10n/translation"; +// * Odoo customer contact form widget. +// * +// * This widget handles the behavior of the customer contact edit form on the website. It listens to specific events and +// * performs corresponding actions when triggered. +// */ +publicWidget.registry.WebsiteCustomerContactEdit = publicWidget.Widget.extend({ + selector: '.customer_contact_edit_form', + events: { + 'click #form_submit': 'validateNumber', + }, +// /** +// * Validate the input value of the #phone,#mobile fields to ensure it contains +// only valid numbers. +// * +// * @param {Event} ev - The "input" event object. +// */ + validateNumber: function (ev) { + const mobile_no = this.$('#mobile'); + const phone_no = this.$('#phone'); + if ((!/^\d+$/.test(mobile_no.val())) || (!/^\d+$/.test(phone_no.val()))) { + ev.preventDefault() + this.call('dialog', 'add', AlertDialog, { + title: _t("Warning!"), + body: _t("Enter Valid Phone Number and Mobile Number"), + }); + } + return; + }, +}); diff --git a/website_customer_contact/static/src/js/customer_contact_form.js b/website_customer_contact/static/src/js/customer_contact_form.js new file mode 100644 index 000000000..0da5a491c --- /dev/null +++ b/website_customer_contact/static/src/js/customer_contact_form.js @@ -0,0 +1,77 @@ +/** @odoo-module */ + +import dom from '@web/legacy/js/core/dom'; +import publicWidget from '@web/legacy/js/public/public_widget'; +import { Dialog } from "@web/core/dialog/dialog"; +import { AlertDialog } from "@web/core/confirmation_dialog/confirmation_dialog"; +import { _t } from "@web/core/l10n/translation"; +// * Odoo customer contact form widget. +// * +// * This widget handles the behavior of the customer contact request form +// on the website. It listens to specific events and +// * performs corresponding actions when triggered. +// */ +publicWidget.registry.WebsiteCustomerContactRequest = publicWidget.Widget.extend({ + selector: '.customer_contact_form', + events: { + 'click #contact_request_form_submit ': 'validateNumber', + "change .select_box_test": "_onChangeType", + "change .country_select": "_onChangeCountry", + }, +// /** +// * Validate the input value of the #phone,#mobile fields to ensure it +// contains only valid numbers. +// * +// * @param {Event} ev - The "input" event object. +// */ + validateNumber: function (ev) { + const mobile_no = this.$('#mobile_number'); + const phone_no = this.$('#phone_number'); + if ((!/^\d+$/.test(mobile_no.val())) || (!/^\d+$/.test(phone_no.val()))) { + ev.preventDefault() + this.call('dialog', 'add', AlertDialog, { + title: _t("Warning!"), + body: _t("Enter Valid Phone Number and Mobile Number"), + }); + } + return; + }, + + // Onchange of customer type, fields to fill varies + _onChangeType: function (ev) { + let select = this.$(ev.currentTarget); + let selectedValue = select.val(); + if (selectedValue === "contact") { + this.$el.find(".job_position").show(); + this.$el.find(".contact_title").show(); + this.$el.find(".street").hide(); + this.$el.find(".street2").hide(); + this.$el.find(".city").hide(); + this.$el.find(".zip").hide(); + this.$el.find(".state_id").hide(); + this.$el.find(".country_id").hide(); + } else { + this.$el.find(".job_position").hide(); + this.$el.find(".contact_title").hide(); + this.$el.find(".street").show(); + this.$el.find(".street2").show(); + this.$el.find(".city").show(); + this.$el.find(".zip").show(); + this.$el.find(".state_id").show(); + this.$el.find(".country_id").show(); + } + }, + + // Onchange of country, only states of that particular country will be shown + _onChangeCountry: function (ev) { + let selected_country = + this.$el.find(".country_select")[0].selectedOptions[0].innerText; + let state = this.$el.find(".state_select_option"); + for (let i = 0; i < state.length; i++) { + state[i].style["display"] = ""; + if (state[i].dataset["id"] != selected_country) { + state[i].style["display"] = "none"; + } + } + }, +}); diff --git a/website_customer_contact/views/portal_templates.xml b/website_customer_contact/views/portal_templates.xml new file mode 100644 index 000000000..a440ee653 --- /dev/null +++ b/website_customer_contact/views/portal_templates.xml @@ -0,0 +1,325 @@ + + + + + + + + + diff --git a/website_customer_contact/views/website_templates.xml b/website_customer_contact/views/website_templates.xml new file mode 100644 index 000000000..6a19d5e6c --- /dev/null +++ b/website_customer_contact/views/website_templates.xml @@ -0,0 +1,199 @@ + + + + +