Browse Source

Dec 26 : [ADD] Initial Commit 'website_customer_contact'

pull/299/head
RisvanaCybro 1 year ago
parent
commit
6ec950cdf8
  1. 46
      website_customer_contact/README.rst
  2. 23
      website_customer_contact/__init__.py
  3. 51
      website_customer_contact/__manifest__.py
  4. 24
      website_customer_contact/controllers/__init__.py
  5. 65
      website_customer_contact/controllers/contact_request.py
  6. 35
      website_customer_contact/controllers/portal.py
  7. 51
      website_customer_contact/controllers/website_customer_contact.py
  8. 6
      website_customer_contact/doc/RELEASE_NOTES.md
  9. 22
      website_customer_contact/models/__init__.py
  10. 38
      website_customer_contact/models/res_partner.py
  11. BIN
      website_customer_contact/static/description/assets/icons/check.png
  12. BIN
      website_customer_contact/static/description/assets/icons/chevron.png
  13. BIN
      website_customer_contact/static/description/assets/icons/cogs.png
  14. BIN
      website_customer_contact/static/description/assets/icons/consultation.png
  15. BIN
      website_customer_contact/static/description/assets/icons/ecom-black.png
  16. BIN
      website_customer_contact/static/description/assets/icons/education-black.png
  17. BIN
      website_customer_contact/static/description/assets/icons/hotel-black.png
  18. BIN
      website_customer_contact/static/description/assets/icons/license.png
  19. BIN
      website_customer_contact/static/description/assets/icons/lifebuoy.png
  20. BIN
      website_customer_contact/static/description/assets/icons/manufacturing-black.png
  21. BIN
      website_customer_contact/static/description/assets/icons/pos-black.png
  22. BIN
      website_customer_contact/static/description/assets/icons/puzzle.png
  23. BIN
      website_customer_contact/static/description/assets/icons/restaurant-black.png
  24. BIN
      website_customer_contact/static/description/assets/icons/service-black.png
  25. BIN
      website_customer_contact/static/description/assets/icons/trading-black.png
  26. BIN
      website_customer_contact/static/description/assets/icons/training.png
  27. BIN
      website_customer_contact/static/description/assets/icons/update.png
  28. BIN
      website_customer_contact/static/description/assets/icons/user.png
  29. BIN
      website_customer_contact/static/description/assets/icons/wrench.png
  30. BIN
      website_customer_contact/static/description/assets/misc/categories.png
  31. BIN
      website_customer_contact/static/description/assets/misc/check-box.png
  32. BIN
      website_customer_contact/static/description/assets/misc/compass.png
  33. BIN
      website_customer_contact/static/description/assets/misc/corporate.png
  34. BIN
      website_customer_contact/static/description/assets/misc/customer-support.png
  35. BIN
      website_customer_contact/static/description/assets/misc/cybrosys-logo.png
  36. BIN
      website_customer_contact/static/description/assets/misc/features.png
  37. BIN
      website_customer_contact/static/description/assets/misc/logo.png
  38. BIN
      website_customer_contact/static/description/assets/misc/pictures.png
  39. BIN
      website_customer_contact/static/description/assets/misc/pie-chart.png
  40. BIN
      website_customer_contact/static/description/assets/misc/right-arrow.png
  41. BIN
      website_customer_contact/static/description/assets/misc/star.png
  42. BIN
      website_customer_contact/static/description/assets/misc/support.png
  43. BIN
      website_customer_contact/static/description/assets/misc/whatsapp.png
  44. BIN
      website_customer_contact/static/description/assets/modules/11.png
  45. BIN
      website_customer_contact/static/description/assets/modules/12.png
  46. BIN
      website_customer_contact/static/description/assets/modules/13.png
  47. BIN
      website_customer_contact/static/description/assets/modules/14.png
  48. BIN
      website_customer_contact/static/description/assets/modules/15.png
  49. BIN
      website_customer_contact/static/description/assets/modules/16.png
  50. BIN
      website_customer_contact/static/description/assets/screenshots/contact.png
  51. BIN
      website_customer_contact/static/description/assets/screenshots/contact_request_form.png
  52. BIN
      website_customer_contact/static/description/assets/screenshots/customer_contact.png
  53. BIN
      website_customer_contact/static/description/assets/screenshots/customer_contact_detail.png
  54. BIN
      website_customer_contact/static/description/assets/screenshots/hero.gif
  55. BIN
      website_customer_contact/static/description/banner.png
  56. BIN
      website_customer_contact/static/description/icon.png
  57. 660
      website_customer_contact/static/description/index.html
  58. 107
      website_customer_contact/static/src/css/website_customer_contact.css
  59. 45
      website_customer_contact/static/src/js/customer_contact_edit_form.js
  60. 92
      website_customer_contact/static/src/js/customer_contact_form.js
  61. 318
      website_customer_contact/views/portal_templates.xml
  62. 202
      website_customer_contact/views/website_templates.xml

46
website_customer_contact/README.rst

@ -0,0 +1,46 @@
.. 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 configurations needed
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
License
-------
Affero General Public License, Version 3 (AGPL v3)
(https://www.gnu.org/licenses/agpl-3.0-standalone.html)
Credits
-------
Developers: (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 <https://cybrosys.com/>`__
Further information
===================
HTML Description: `<static/description/index.html>`__

23
website_customer_contact/__init__.py

@ -0,0 +1,23 @@
# -- coding: utf-8 --
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys (<https://www.cybrosys.com>)
#
# 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 <https://www.gnu.org/licenses/>.
#
###############################################################################
from . import controllers
from . import models

51
website_customer_contact/__manifest__.py

@ -0,0 +1,51 @@
# -- coding: utf-8 --
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys (<https://www.cybrosys.com>)
#
# 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 <https://www.gnu.org/licenses/>.
#
###############################################################################
{
'name': "Website Customer Contact",
'version': '16.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': ['base', 'website', 'portal'],
'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_form.js',
'website_customer_contact/static/src/js/customer_contact_edit_form.js',
],
},
'images': ['static/description/banner.png'],
'license': 'AGPL-3',
'installable': True,
'auto_install': False,
'application': False,
}

24
website_customer_contact/controllers/__init__.py

@ -0,0 +1,24 @@
# -- coding: utf-8 --
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys (<https://www.cybrosys.com>)
#
# 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 <https://www.gnu.org/licenses/>.
#
###############################################################################
from . import contact_request
from . import portal
from . import website_customer_contact

65
website_customer_contact/controllers/contact_request.py

@ -0,0 +1,65 @@
# -- coding: utf-8 --
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys (<https://www.cybrosys.com>)
#
# 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 <https://www.gnu.org/licenses/>.
#
##############################################################################
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']))
current_contact.write(kw)
return request.render(
"website_customer_contact"
".website_customer_contact_request_form_completed", {})

35
website_customer_contact/controllers/portal.py

@ -0,0 +1,35 @@
# -- coding: utf-8 --
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys (<https://www.cybrosys.com>)
#
# 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 <https://www.gnu.org/licenses/>.
#
###############################################################################
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

51
website_customer_contact/controllers/website_customer_contact.py

@ -0,0 +1,51 @@
# -- coding: utf-8 --
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys (<https://www.cybrosys.com>)
#
# 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 <https://www.gnu.org/licenses/>.
#
##############################################################################
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/<int:contact>'], 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'})

6
website_customer_contact/doc/RELEASE_NOTES.md

@ -0,0 +1,6 @@
## Module <website_customer_contact>
#### 23.10.2023
#### Version 16.0.1.0.0
#### ADD
- Initial Commit for Website Customer Contact

22
website_customer_contact/models/__init__.py

@ -0,0 +1,22 @@
# -- coding: utf-8 --
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys (<https://www.cybrosys.com>)
#
# 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 <https://www.gnu.org/licenses/>.
#
###############################################################################
from . import res_partner

38
website_customer_contact/models/res_partner.py

@ -0,0 +1,38 @@
# -- coding: utf-8 --
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys (<https://www.cybrosys.com>)
#
# 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 <https://www.gnu.org/licenses/>.
#
###############################################################################
from odoo import api, models
class ResPartner(models.Model):
""" Model for extending res.partner to compute display name."""
_inherit = 'res.partner'
@api.depends('is_company', 'name', 'parent_id.display_name', 'type',
'company_name')
def _compute_display_name(self):
""" Compute the display name for each partner."""
names = dict(self.with_context({}).name_get())
for partner in self:
if partner.website_id:
partner.display_name = partner.name
else:
partner.display_name = names.get(partner.id)

BIN
website_customer_contact/static/description/assets/icons/check.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
website_customer_contact/static/description/assets/icons/chevron.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

BIN
website_customer_contact/static/description/assets/icons/cogs.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
website_customer_contact/static/description/assets/icons/consultation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
website_customer_contact/static/description/assets/icons/ecom-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

BIN
website_customer_contact/static/description/assets/icons/education-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

BIN
website_customer_contact/static/description/assets/icons/hotel-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

BIN
website_customer_contact/static/description/assets/icons/license.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
website_customer_contact/static/description/assets/icons/lifebuoy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
website_customer_contact/static/description/assets/icons/manufacturing-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

BIN
website_customer_contact/static/description/assets/icons/pos-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

BIN
website_customer_contact/static/description/assets/icons/puzzle.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

BIN
website_customer_contact/static/description/assets/icons/restaurant-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

BIN
website_customer_contact/static/description/assets/icons/service-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

BIN
website_customer_contact/static/description/assets/icons/trading-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

BIN
website_customer_contact/static/description/assets/icons/training.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

BIN
website_customer_contact/static/description/assets/icons/update.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
website_customer_contact/static/description/assets/icons/user.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

BIN
website_customer_contact/static/description/assets/icons/wrench.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
website_customer_contact/static/description/assets/misc/categories.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
website_customer_contact/static/description/assets/misc/check-box.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
website_customer_contact/static/description/assets/misc/compass.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
website_customer_contact/static/description/assets/misc/corporate.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
website_customer_contact/static/description/assets/misc/customer-support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
website_customer_contact/static/description/assets/misc/cybrosys-logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
website_customer_contact/static/description/assets/misc/features.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

BIN
website_customer_contact/static/description/assets/misc/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
website_customer_contact/static/description/assets/misc/pictures.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
website_customer_contact/static/description/assets/misc/pie-chart.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
website_customer_contact/static/description/assets/misc/right-arrow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

BIN
website_customer_contact/static/description/assets/misc/star.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
website_customer_contact/static/description/assets/misc/support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
website_customer_contact/static/description/assets/misc/whatsapp.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
website_customer_contact/static/description/assets/modules/11.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
website_customer_contact/static/description/assets/modules/12.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

BIN
website_customer_contact/static/description/assets/modules/13.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

BIN
website_customer_contact/static/description/assets/modules/14.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

BIN
website_customer_contact/static/description/assets/modules/15.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

BIN
website_customer_contact/static/description/assets/modules/16.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
website_customer_contact/static/description/assets/screenshots/contact.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

BIN
website_customer_contact/static/description/assets/screenshots/contact_request_form.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

BIN
website_customer_contact/static/description/assets/screenshots/customer_contact.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 KiB

BIN
website_customer_contact/static/description/assets/screenshots/customer_contact_detail.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

BIN
website_customer_contact/static/description/assets/screenshots/hero.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

BIN
website_customer_contact/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

BIN
website_customer_contact/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

660
website_customer_contact/static/description/index.html

@ -0,0 +1,660 @@
<div style="background-color: #714B67; height: 810px; width: 100%; padding: 15px; position: relative;">
<!-- TITLE BAR -->
<div class="d-flex align-items-center justify-content-between"
style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;">
<img src="assets/misc/cybrosys-logo.png" width="42" height="42"
style="width: 42px; height: 42px;"/>
<div>
<div
style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Community
</div>
<div
style="color: #875A7B; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Enterprise
</div>
<div
style="color: #875A7B; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Odoo Sh
</div>
</div>
</div>
<!-- END OF TITLE BAR -->
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
<!-- APP HERO -->
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;">
Website Customer Contact</h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">
This Module Helps you
to Create Contact and Addresses from Website.</p>
<!-- END OF APP HERO -->
<img src="assets/screenshots/hero.gif" class="img-responsive"
style="width: 100%; margin-left: auto; margin-right: auto;"/>
</div>
</div>
</div>
</div>
<!-- NAVIGATION SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px; margin-top: 300px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/compass.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Explore This
Module</h2>
</div>
<div class="row my-4" style="font-family: 'Montserrat', sans-serif;">
<div class="col-sm-12 col-md-6 my-3">
<a href="#overview">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Overview</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">Learn
more about this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#features">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Features</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View
features of this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#screenshots">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Screenshots</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View
screenshots for this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
</div>
<!-- END OF NAVIGATION SECTION -->
<!-- OVERVIEW SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"
id="overview">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pie-chart.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Overview
</h2>
</div>
<div class="row"
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 py-4">
This module helps you to create contact and addresses from website.
</div>
</div>
<!-- END OF OVERVIEW SECTION -->
<!-- FEATURES SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"
id="features">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/features.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Features
</h2>
</div>
<div class="row"
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Add Contacts & Addresses on your account.</span>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Create and Edit Contacts & Addresses.</span>
</div>
</div>
</div>
<!-- END OF FEATURES SECTION -->
<!-- SCREENSHOTS SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"
id="screenshots">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pictures.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Screenshots
</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Contact Request
</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Go to Website ->
User Dropdown
->
Contact Request.</p>
<img src="assets/screenshots/contact.png"
class="img-thumbnail">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
In the form view ,fill the contact details, and also we can
choose the type of contact from the "Type" field .A contact
will be created after the form is submitted.
</p>
<img src="assets/screenshots/contact_request_form.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Customer Contact
</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Go to Website ->
User Dropdown
->
My Account -> Contacts.
You can get the following information for each contact: Name,
Type, Email, and Phone.
By clicking the person's name, you can also get their contact
information.
</p>
<img src="assets/screenshots/customer_contact.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Customer Contact
Detail
</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
You can get the relevant Name, Email, Phone, Mobile, Addresses,
Title, Job Position, and Notes for the chosen contact.
</p>
<img src="assets/screenshots/customer_contact_detail.png"
class="img-thumbnail">
</div>
</div>
</div>
<!-- END OF SCREENSHOTS SECTION -->
<!-- RELATED PRODUCTS -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/categories.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Related
Products
</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div id="demo1" class="row carousel slide" data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner" style="padding: 30px;">
<div class="carousel-item" style="min-height: 198.656px;">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/odoo_website_helpdesk/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/11.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/website_product_attachments/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/12.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/insta_feed_snippet/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/13.png">
</div>
</a>
</div>
</div>
<div class="carousel-item active"
style="min-height: 198.656px;">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/customer_geolocation/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/14.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/product_visibility_website/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/15.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/website_hide_variants/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/16.png">
</div>
</a>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo1" data-slide="prev"
style="width:35px; color:#000"> <span
class="carousel-control-prev-icon"><i
class="fa fa-chevron-left"
style="font-size:24px"></i></span>
</a> <a class="carousel-control-next" href="#demo1"
data-slide="next" style="width:35px; color:#000">
<span class="carousel-control-next-icon"><i
class="fa fa-chevron-right"
style="font-size:24px"></i></span>
</a>
</div>
</div>
</div>
<!-- END OF RELATED PRODUCTS -->
<!-- OUR SERVICES -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/star.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Our Services
</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/cogs.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Customization</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/wrench.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/lifebuoy.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Support</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/user.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Hire
Odoo
Developer</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #54a0ff !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/puzzle.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Integration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/update.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Migration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/consultation.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Consultancy</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/training.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/license.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Licensing Consultancy</h6>
</div>
</div>
</div>
<!-- END OF OUR SERVICES -->
<!-- OUR INDUSTRIES -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/corporate.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Our
Industries
</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/trading-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Trading
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easily procure
and
sell your products</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/pos-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
POS
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easy
configuration
and convivial experience</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/education-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Education
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
A platform for
educational management</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/manufacturing-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Manufacturing
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Plan, track and
schedule your operations</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/ecom-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
E-commerce &amp; Website
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Mobile
friendly,
awe-inspiring product pages</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/service-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Service Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Keep track of
services and invoice</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/restaurant-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Restaurant
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Run your bar or
restaurant methodically</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/hotel-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Hotel Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
An
all-inclusive
hotel management application</p>
</div>
</div>
</div>
</div>
<!-- END OF OUR INDUSTRIES -->
<!-- SUPPORT -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/customer-support.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Support
</h2>
</div>
<div class="container mt-5">
<div class="row">
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4 d-flex justify-content-center align-items-center"
style="background-color: #714B67; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="assets/misc/support.png" height="48" width="48"
style="width: 42px; height: 42px;"/>
</div>
<div>
<h4>Need Help?</h4>
<p style="line-height: 100%;">Got questions or need help?
Get in touch.</p>
<a href="mailto:odoo@cybrosys.com">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">
odoo@cybrosys.com</p>
</a>
</div>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4 d-flex justify-content-center align-items-center"
style="background-color: #2AC44D; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="assets/misc/whatsapp.png" height="52" width="52"
style="width: 52px; height: 52px;"/>
</div>
<div>
<h4>WhatsApp</h4>
<p style="line-height: 100%;">Say hi to us on WhatsApp!</p>
<a href="https://api.whatsapp.com/send?phone=918606827707">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">
+91 86068
27707</p>
</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 my-5 d-flex justify-content-center align-items-center">
<img src="assets/misc/logo.png" width="144" height="31"
style="width:144px; height: 31px; margin-top: 40px;"/>
</div>
</div>
</div>
<!-- END OF SUPPORT -->

107
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;
}

45
website_customer_contact/static/src/js/customer_contact_edit_form.js

@ -0,0 +1,45 @@
odoo.define(
"website_customer_contact.customer_contact_edit_form",
function (require) {
"use strict";
let publicWidget = require("web.public.widget");
const { _t } = require("web.core");
const Dialog = require("web.Dialog");
/**
* Odoo customer contact form widget.
*
* This widget handles the behavior of the customer contact form on the website. It listens to specific events and
* performs corresponding actions when triggered.
*/
publicWidget.registry.WebsiteCustomerEditContactRequestForm =
publicWidget.Widget.extend({
selector: ".customer_contact_edit_form",
events: {
"input #phone": "validateNumber",
},
/**
* Validate the input value of the #phone field to ensure it contains only valid numbers.
*
* @param {Event} ev - The "input" event object.
*/
validateNumber: function (ev) {
const input = this.$(ev.currentTarget);
if (!/^\d+$/.test(input.val())) {
this.$("#warranty_submit").attr("disabled", "disabled");
return new Dialog(null, {
title: "Error:",
size: "medium",
$content: `<p>${
_.str.escapeHTML("Enter Valid Number ") || ""
}</p>`,
buttons: [{ text: _t("Ok"), close: true }],
}).open();
} else {
this.$("#warranty_submit").removeAttr("disabled");
}
return;
},
});
return publicWidget;
}
);

92
website_customer_contact/static/src/js/customer_contact_form.js

@ -0,0 +1,92 @@
odoo.define(
"website_customer_contact.customer_contact_form",
function (require) {
"use strict";
let publicWidget = require("web.public.widget");
const { _t } = require("web.core");
const Dialog = require("web.Dialog");
/**
* Odoo customer contact form widget.
*
* This widget handles the behavior of the customer contact form on the website. It listens to specific events and
* performs corresponding actions when triggered.
*/
publicWidget.registry.WebsiteCustomerContactRequestForm =
publicWidget.Widget.extend({
selector: ".customer_contact_form",
events: {
"change .select_box_test": "_onChangeType",
"change .country_select": "_onChangeCountry",
"input #phone_number": "validateNumber",
"input #mobile_number": "validateNumber",
},
// 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();
}
},
/**
* Handle the onchange event for the country selection.
* Show only the states of the selected country and hide others.
*
* @private
* @param {Event} ev - The "change" event object.
*/
// 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";
}
}
},
/**
* Validate the input value of the phone and mobile number fields to ensure they contain only valid numbers.
* If an invalid number is entered, it displays an error dialog with a corresponding message.
*
* @param {Event} ev - The "input" event object.
*/
validateNumber: function (ev) {
const input = this.$(ev.currentTarget);
if (!/^\d+$/.test(input.val())) {
this.$("#contact_request_form_submit").attr("disabled", "disabled");
return new Dialog(null, {
title: "Error:",
size: "medium",
$content: `<p>${
_.str.escapeHTML("Enter Valid Number ") || ""
}</p>`,
buttons: [{ text: _t("Ok"), close: true }],
}).open();
} else {
this.$("#contact_request_form_submit").removeAttr("disabled");
}
return;
},
});
return publicWidget;
}
);

318
website_customer_contact/views/portal_templates.xml

@ -0,0 +1,318 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template id="website_customer_contact_detail"
name="Customer Contact Detail">
<!-- This is a code snippet for a website customer contact detail page written in-->
<!-- The Odoo framework's templating language (XML-based). The page displays customer -->
<!-- Contact details and allows the customer to edit their contact information using a form.-->
<t t-call="portal.portal_layout">
<t t-set="breadcrumbs_searchbar" t-value="True"/>
<t t-call="portal.portal_searchbar">
<t t-set="title">Customer Contact</t>
</t>
<!-- Intro-->
<div class="pb-2 pt-3 card-header bg-white"
style="position:relative;">
<h2 class="my-0">
Contact Details
</h2>
<a role="button"
class="btn btn-secondary flex-grow-1 mb-1 createButton"
data-bs-toggle="modal"
id="myModal" data-bs-target="#contactpopup" href="#">
<t>Edit</t>
</a>
</div>
<!-- Information-->
<div id="information">
<div class="pb-2 pt-3 card-header bg-white">
<div class="row">
<div class="mb-3 col-6">
<strong>Name</strong>
<span t-field="customer_contact_portal.name"/>
</div>
<div class="mb-3 col-6">
<strong>Email</strong>
<span t-field="customer_contact_portal.email"/>
</div>
</div>
<div class="row">
<div class="mb-3 col-6">
<t t-if="customer_contact_portal.type=='contact'">
<strong>Title</strong>
<span t-field="customer_contact_portal.title"/>
</t>
<t t-else="">
<strong>Address</strong>
<span t-field="customer_contact_portal.street"/>
</t>
</div>
<div class="mb-3 col-6">
<strong>Phone</strong>
<span t-field="customer_contact_portal.phone"/>
</div>
</div>
<div class="row">
<div class="mb-3 col-6">
<t t-if="customer_contact_portal.type=='contact'">
<strong>Job Position</strong>
<span t-field="customer_contact_portal.function"/>
</t>
<t t-else="">
<strong>Address2</strong>
<span t-field="customer_contact_portal.street2"/>
</t>
</div>
<div class="mb-3 col-6">
<strong>Mobile</strong>
<span t-field="customer_contact_portal.mobile"/>
</div>
</div>
<div class="row">
<t t-if="customer_contact_portal.type!='contact'">
<div class="mb-3 col-2">
<strong>City</strong>
<span t-field="customer_contact_portal.city"/>
</div>
<div class="mb-3 col-2">
<strong>ZIP</strong>
<span t-field="customer_contact_portal.zip"/>
</div>
<div class="mb-3 col-2">
<strong>State</strong>
<span t-field="customer_contact_portal.state_id"/>
</div>
</t>
<div class="mb-3 col-6">
<strong>Notes</strong>
<span t-field="customer_contact_portal.comment"/>
</div>
</div>
<div class="row">
<div class="mb-3 col-6">
<t t-if="customer_contact_portal.type!='contact'">
<strong>Country</strong>
<span t-field="customer_contact_portal.country_id"/>
</t>
</div>
</div>
</div>
</div>
<form action="/contact_request_form/write" method="post"
enctype="multipart/form-data">
<input type="hidden" name="csrf_token"
t-att-value="request.csrf_token()"/>
<div class="customer_contact_edit_form">
<div id="contactpopup" class="modal fade">
<div class="modal-dialog modal-content"
style="border:solid 2px white; min-height:200px;max-width:800px;margin-top:10px;max-height:46%;">
<div class="modal-body" id="pop_html">
<br/>
<div style="margin-top:-40px" class="mb-4">
<h2 style="text-align:center; font-size 18px; font-weight:bold"
class="o_default_snippet_text">
Contact Form
</h2>
</div>
<div class="form-group row form-field"
style="display:none;">
<div class="col-lg-3 col-md-4">
<label class="col-form-label"
for="dealer_contact">Id *
</label>
</div>
<div class="col-lg-7 col-md-8">
<input id="id1" type="text"
required="True"
class="form-control o_website_form_input"
name="id"
t-att-value="customer_contact_portal.id"/>
</div>
</div>
<div class="form-group row form-field mb-3"
style="justify-content:center;">
<div class="col-lg-3 col-md-3"
style="text-align:right;">
<label class="col-form-label"
for="id1">
Name
</label>
</div>
<div class="col-lg-9 col-md-9">
<input id="id1" type="text"
class="form-control w-75 o_website_form_input"
name="name"
t-att-value="customer_contact_portal.name"/>
</div>
</div>
<div class="form-group row form-field mb-3"
style="justify-content:center;">
<div class="col-lg-3 col-md-3"
style="text-align:right;">
<label class="col-form-label"
for="mobile">
Mobile
</label>
</div>
<div class="col-lg-9 col-md-9">
<input id="mobile" type="text"
class="form-control w-75 o_website_form_input"
name="mobile"
t-att-value="customer_contact_portal.mobile"/>
</div>
</div>
<div class="form-group row mb-3 form-field"
style="justify-content:center;">
<div class="col-lg-3 col-md-3"
style="text-align:right;">
<label class="col-form-label"
for="email">
Email
</label>
</div>
<div class="col-lg-9 col-md-9">
<input id="email" type="email"
class="form-control w-75 o_website_form_input"
name="email"
t-att-value="customer_contact_portal.email"/>
</div>
</div>
<div class="form-group row mb-3 form-field"
style="justify-content:center;">
<div class="col-lg-3 col-md-3"
style="text-align:right;">
<label class="col-form-label"
for="phone">
Phone
</label>
</div>
<div class="col-lg-9 col-md-9">
<input id="phone" type="text"
class="form-control w-75 o_website_form_input"
name="phone"
t-att-value="customer_contact_portal.phone"/>
</div>
</div>
<div class="form-group row form-field">
<div style="margin-top: 16px; display:flex; align-items:center; justify-content:center;"
class="mt-4">
<button type="submit"
id="warranty_submit"
class="btn btn-primary btn-md o_website_form_send">
Save
</button>
<a href="#"
class="btn o_popup_btn_close o_not_editable o_default_snippet_text pull-right"
data-bs-dismiss="modal"
style="font-size:30px">Cancel
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</t>
</template>
<template id="website_customer_contact" name="Customer Contact">
<!-- This template creates a page for displaying customer contact information -->
<!-- in a table format. It also includes an option to add new contacts.-->
<t t-call="portal.portal_layout">
<t t-set="breadcrumbs_searchbar" t-value="True"/>
<t t-call="portal.portal_searchbar">
<t t-set="title">Customer Contact</t>
</t>
<t t-if="customer_contact_portal" t-call="portal.portal_table">
<thead>
<tr class="active">
<th class="text-center">Name</th>
<th class="text-center">Type</th>
<th class="text-center">Email</th>
<th class="text-center">Phone</th>
</tr>
</thead>
<t t-foreach="customer_contact_portal" t-as="contact">
<tr>
<td class="text-center">
<a t-attf-href="/my/contacts/#{contact.id}">
<span t-field="contact.name"/>
</a>
</td>
<td class="text-center">
<span t-field="contact.type"/>
</td>
<td class="text-center">
<span t-field="contact.email"/>
</td>
<td class="text-center">
<span t-field="contact.phone"/>
</td>
</tr>
</t>
</t>
<p t-else="">There are currently no contacts under your account.
</p>
<div style="padding:0 45% 0 45%">
<button class="btn-primary btn-add-contact"
style="margin-top: 16px;">
<a href="/contact_request_form"
style="color: white !important;">Add
</a>
</button>
</div>
</t>
</template>
<template id="website_customer_contact_portal_menu" name="Portal Menu"
inherit_id="portal.portal_breadcrumbs"
priority="60">
<!-- The "Portal Menu" template provides breadcrumb navigation for the customer contact portal,
Showing the current page and allowing users to navigate to previous pages. It includes
special cases for the "customer_contact" and "customer_contact_details"-->
<xpath expr="//ol[hasclass('o_portal_submenu')]" position="inside">
<li t-if="page_name=='customer_contact'"
class="breadcrumb-item active">
<span>Customer Contacts
</span>
</li>
<li t-if="page_name=='customer_contact_details'"
class="breadcrumb-item active">
<a t-attf-href="/my/contacts"
arialabel="Customer Contact Details"
title="Customer Contact Details">
<span>Customer Contacts</span>
</a>
<span>/
<em t-out="customer_contact_portal.name"/>
</span>
</li>
</xpath>
</template>
<template id="website_customer_contact_portal_contact"
name="Portal Contacts" customize_show="True"
inherit_id="portal.portal_my_home"
priority="100">
<!-- The "website_customer_contact_portal_contact" template adds a "Contacts" section
to the customer portal homepage. It allows customers to view and manage their contacts.-->
<xpath expr="//div[hasclass('o_portal_docs')]" position="inside">
<t t-call="portal.portal_docs_entry">
<t t-set="title">Contacts</t>
<t t-set="url" t-value="'/my/contacts'"/>
<t t-set="placeholder_count" t-value="'contact_count'"/>
</t>
</xpath>
</template>
<template id="website_customer_contact_request"
name="Link to frontend portal" inherit_id="portal.user_dropdown">
<!-- The "website_customer_contact_request" template adds a link to the frontend portal
allowing customers to make a contact request, and inherits from the "portal.user_dropdown" template.-->
<xpath expr="//*[@id='o_logout_divider']" position="before">
<a href="/contact_request_form" role="menuitem"
class="dropdown-item ps-3">
<i class="fa fa-fw fa-id-card-o me-1 small text-muted"/>
Contact Request
</a>
</xpath>
</template>
</odoo>

202
website_customer_contact/views/website_templates.xml

@ -0,0 +1,202 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template id="website_customer_contact_request_form"
name="Contact Request Form">
<!-- This appears to be a website contact form written in HTML and a templating language.
The form includes various input fields for the user to enter information, such as
their name, job position, email, and phone number, as well as drop-down menus
for selecting the type of contact and the country. It also has a notes section for
the user to add any additional comments.-->
<t t-call="website.layout">
<div id="wrap" class="customer_contact_form">
<div class="oe_structure">
<div class="container">
<div class="contact_form mt-4">
<form class="w-100 float-left" role="form"
action="/contact_request_form/submit"
methods="POST">
<div class="form-group type">
<label for="type" name='type'
class="control-label">Type
</label>
<select name="type"
t-attf-class="form-control select_box_test"
required="">
<option value="contact">Contact
</option>
<option value="invoice">Invoice
Address
</option>
<option value="delivery">Delivery
Address
</option>
<option value="private">Private
Address
</option>
<option value="other">Other Address
</option>
</select>
</div>
<div class="form-group contact_name">
<label for="contact_name"
class="control-label">Name*
</label>
<input id="contact_name" type="text"
class="form-control" name="name"
required=""
placeholder="Name"/>
</div>
<div class="form-group job_position">
<label for="job_position"
class="control-label">Job Position
</label>
<input id="job_position" type="text"
class="form-control" name="function"
placeholder="Job Position"/>
</div>
<div class="form-group street"
style="display: none;">
<label for="street" class="control-label">
Address
</label>
<input id="street" type="text"
class="form-control" name="street"
placeholder="Address"/>
</div>
<div class="form-group street2"
style="display: none;">
<label for="street2" class="control-label">
Address2
</label>
<input id="street2" type="text"
class="form-control" name="street2"
placeholder="Address2"/>
</div>
<div class="form-group city"
style="display: none;">
<label for="city" class="control-label">
City
</label>
<input id="city" type="text"
class="form-control" name="city"
placeholder="City"/>
</div>
<div class="form-group zip"
style="display: none;">
<label for="zip" class="control-label">ZIP
</label>
<input id="zip" type="number"
class="form-control" name="zip"
placeholder="ZIP"/>
</div>
<div class="form-group state_id"
style="display: none;">
<label for="state_id"
class="control-label">
State
</label>
<select id="state_id" name="state_id"
class="form-control link-style state_select">
<option value=""/>
<t t-foreach="state_id" t-as="state">
<option t-esc="state.name"
t-att-data-id="state.country_id.name"
class="state_select_option"
t-att-value="state.id"/>
</t>
</select>
</div>
<div class="form-group country_id"
style="display: none;">
<label for="country_id"
class="control-label">Country
</label>
<select id="country_id" name="country_id"
class="form-control link-style country_select">
<option value=""/>
<t t-foreach="country_id"
t-as="country">
<option t-esc="country.name"
t-att-value="country.id"/>
</t>
</select>
</div>
<div class="form-group contact_title">
<label for="contact_title"
class="control-label">Title
</label>
<select id="contact_title" name="title"
class="form-control link-style">
<option value=""/>
<t t-foreach="contact_title"
t-as="title">
<option t-esc="title.name"
t-att-value="title.id"/>
</t>
</select>
</div>
<div class="form-group email">
<label for="email" class="control-label">
Email*
</label>
<input id="email" type="email"
class="form-control" name="email"
required=""
placeholder="Email"/>
</div>
<div class="form-group phone_number">
<label for="phone_number"
class="control-label">Phone*
</label>
<input id="phone_number" type="char"
class="form-control" name="phone"
required=""
placeholder="Phone"/>
</div>
<div class="form-group mobile_number">
<label for="mobile_number"
class="control-label">Mobile
</label>
<input id="mobile_number" type="char"
class="form-control" name="mobile"
placeholder="Mobile"/>
</div>
<div class="form-group notes">
<label for="notes" class="control-label">
Notes
</label>
<input id="notes" type="text"
class="form-control" name="comment"
placeholder="Notes"/>
</div>
<div class="clearfix oe_login_buttons" style="padding:0 45% 0 45%;
margin-top: 10px; margin-bottom: 10px;">
<button id="contact_request_form_submit"
class="btn btn-primary pull-left">
SUBMIT
</button>
</div>
</form>
</div>
</div>
</div>
</div>
</t>
</template>
<template id="website_customer_contact_request_form_completed">
<!--This template load a success page on success creation of contact or address-->
<t t-call="website.layout">
<div class="container">
<div class="row">
<div class="col-lg-12" style="text-align:center;">
<div class="alert alert-success contact-success"
role="status">
<span class="fa fa-check-circle"/>
Contact Created Successfully
</div>
</div>
</div>
</div>
</t>
</template>
</odoo>
Loading…
Cancel
Save