@ -0,0 +1,52 @@ |
|||
.. image:: https://img.shields.io/badge/licence-LGPL--3-green.svg |
|||
:target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html |
|||
:alt: License: LGPL-3 |
|||
|
|||
Odoo Zendesk Connection |
|||
======================= |
|||
* This module will allow you to integrate the Odoo helpdesk with Zendesk, |
|||
enabling you to create, update, and delete tickets. Additionally, it facilitates |
|||
the import and export of tickets between Odoo and Zendesk. |
|||
|
|||
Configuration |
|||
============= |
|||
* Enable Connect Zendesk in the configuration setting and provide your Company Domain, |
|||
Company Email, API key and the Password |
|||
|
|||
Company |
|||
------- |
|||
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
|||
|
|||
License |
|||
------- |
|||
Lesser General Public License, Version 3 (LGPL v3). |
|||
(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) |
|||
|
|||
Credits |
|||
------- |
|||
* Developer:(v16) Anjana P V, Contact: odoo@cybrosys.com |
|||
|
|||
Contacts |
|||
-------- |
|||
* Mail Contact : odoo@cybrosys.com |
|||
* Website : https://cybrosys.com |
|||
|
|||
Installation |
|||
============ |
|||
- www.odoo.com/documentation/16.0/setup/install.html |
|||
- Install our custom addon |
|||
|
|||
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 https://www.cybrosys.com |
|||
|
|||
Further information |
|||
=================== |
|||
HTML Description: `<static/description/index.html>`__ |
@ -0,0 +1,22 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from . import models |
@ -0,0 +1,46 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
{ |
|||
'name': 'Odoo Zendesk Connector', |
|||
'version': '16.0.1.0.0', |
|||
'category': 'Productivity', |
|||
'summary': """Connects Helpdesk in Odoo and Zendesk""", |
|||
'description': """This module will allow you to integrate the Odoo |
|||
helpdesk with Zendesk,enabling you to create, update, and delete tickets. |
|||
Additionally, it facilitates the import and export of tickets between |
|||
Odoo and Zendesk.""", |
|||
'author': 'Cybrosys Techno Solutions', |
|||
'company': 'Cybrosys Techno Solutions', |
|||
'maintainer': 'Cybrosys Techno Solutions', |
|||
'website': "https://www.cybrosys.com", |
|||
'depends': ['base', 'mail', 'odoo_website_helpdesk'], |
|||
'data': [ |
|||
'security/ir.model.access.csv', |
|||
'views/import_export_ticket_views.xml', |
|||
'views/res_config_settings_views.xml', |
|||
'views/help_ticket_views.xml'], |
|||
'images': ['static/description/banner.jpg'], |
|||
'license': 'LGPL-3', |
|||
'installable': True, |
|||
'auto_install': False, |
|||
'application': False |
|||
} |
@ -0,0 +1,5 @@ |
|||
## Module <odoo_zendesk_connector> |
|||
#### 19.01.2024 |
|||
#### Version 16.0.1.0.0 |
|||
##### ADD |
|||
- Initial Commit for Odoo Zendesk Connector |
@ -0,0 +1,24 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from .import help_ticket |
|||
from .import import_export_ticket |
|||
from .import res_config_settings |
@ -0,0 +1,232 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
import json |
|||
import requests |
|||
from odoo import fields, models, _ |
|||
from odoo.exceptions import UserError |
|||
|
|||
|
|||
class HelpTicket(models.Model): |
|||
"""In this class there are functions for create a ticket in to zendesk, |
|||
update a ticket, and delete a ticket from zendesk""" |
|||
_inherit = 'help.ticket' |
|||
|
|||
zendesk_ticket_no = fields.Char(string='Zendesk Ticket Id', |
|||
help='Shows the Id of ticket in Zendesk', |
|||
readonly=True) |
|||
is_ticket_from_zendesk = fields.Boolean(string='Ticket From Zendesk', |
|||
help='Is this a ticket from' |
|||
' Zendesk') |
|||
email = fields.Char(string='Email', help='Shows the email of the customer', |
|||
required=True) |
|||
|
|||
def action_create_to_zendesk(self): |
|||
"""This function will help to create a ticket in to the zendesk""" |
|||
company_domain = self.env['ir.config_parameter'].sudo().get_param( |
|||
'odoo_zendesk_connector.company_domain') |
|||
company_email = self.env['ir.config_parameter'].sudo().get_param( |
|||
'odoo_zendesk_connector.company_email') |
|||
password = self.env['ir.config_parameter'].sudo().get_param( |
|||
'odoo_zendesk_connector.password') |
|||
# Searching for the existence of the tickets in the zendesk |
|||
if self.zendesk_ticket_no: |
|||
zen_id_search_url = f'https://{company_domain}.zendesk.com/api/v2/tickets/{self.zendesk_ticket_no}.json' |
|||
zen_id_search_response = requests.get(zen_id_search_url, timeout=180, |
|||
auth=(company_email, password)) |
|||
if zen_id_search_response.status_code == 200: |
|||
return { |
|||
'type': 'ir.actions.client', |
|||
'tag': 'display_notification', |
|||
'params': { |
|||
'title': _("Warning"), |
|||
'message': _("Ticket already exist"), |
|||
'sticky': False, |
|||
}, |
|||
} |
|||
priority = { |
|||
'1': 'low', |
|||
'2': 'normal', |
|||
'3': 'high', |
|||
'4': 'urgent' |
|||
} |
|||
zen_prio = 'None' |
|||
if self.priority in priority: |
|||
zen_prio = priority[self.priority] |
|||
headers = {'content-type': 'application/json'} |
|||
# Url for searching whether the in the customer is already existing in |
|||
# zendesk |
|||
customer_search_url = f'https://{company_domain}.zendesk.com/api/v2/users/search.json?query=email:{self.email}' |
|||
search_response = requests.get(customer_search_url, |
|||
auth=(company_email, password), |
|||
timeout=20) |
|||
if search_response.status_code == 200: |
|||
results = search_response.json().get('users') |
|||
if results and len(results) > 0: |
|||
# Customer already exists, use existing ID |
|||
customer_id = results[0]['id'] |
|||
else: |
|||
# Customer does not exists |
|||
data = { |
|||
'user': { |
|||
'name': self.customer_id.name, |
|||
'email': self.email, |
|||
} |
|||
} |
|||
# Url for creating new user in zendesk |
|||
user_url = f'https://{company_domain}.zendesk.com/api/v2/users.json' |
|||
user_response = requests.post(user_url, json=data, |
|||
auth=(company_email, password), |
|||
headers=headers) |
|||
if user_response.status_code == 201: |
|||
# User created successfully, get new ID |
|||
customer_id = user_response.json().get('user').get('id') |
|||
else: |
|||
raise UserError(_(user_response.json()['error'])) |
|||
# Details for creating a Zendesk ticket |
|||
data = {'ticket': {'subject': self.subject, 'priority': zen_prio, |
|||
'comment': {'body': self.description}, |
|||
'requester_id': customer_id}} |
|||
# Url for creating a ticket in Zendesk |
|||
url = f'https://{company_domain}.zendesk.com/api/v2/tickets.json' |
|||
response = requests.post(url, data=json.dumps(data), |
|||
auth=(company_email, password), |
|||
headers=headers) |
|||
if response.json().get("ticket"): |
|||
self.zendesk_ticket_no = response.json()['ticket']['id'] |
|||
if response.status_code != 201: |
|||
return { |
|||
'type': 'ir.actions.client', |
|||
'tag': 'display_notification', |
|||
'params': { |
|||
'title': _("Error!"), |
|||
'message': _("Creation of Zendesk ticket seems to be " |
|||
"failed!"), |
|||
'sticky': False, |
|||
} |
|||
} |
|||
|
|||
return { |
|||
'type': 'ir.actions.client', |
|||
'tag': 'display_notification', |
|||
'params': { |
|||
'title': _("Success!"), |
|||
'message': _("Successfully Created the ticket to Zendesk"), |
|||
'sticky': False, |
|||
} |
|||
} |
|||
|
|||
def action_update_zendesk_ticket(self): |
|||
"""This function is used to update a ticket from oddo""" |
|||
company_domain = self.env['ir.config_parameter'].sudo().get_param( |
|||
'odoo_zendesk_connector.company_domain') |
|||
company_email = self.env['ir.config_parameter'].sudo().get_param( |
|||
'odoo_zendesk_connector.company_email') |
|||
password = self.env['ir.config_parameter'].sudo().get_param( |
|||
'odoo_zendesk_connector.password') |
|||
zen_id = self.zendesk_ticket_no |
|||
priority = { |
|||
'1': 'low', |
|||
'2': 'normal', |
|||
'3': 'high', |
|||
'4': 'urgent' |
|||
} |
|||
zen_prio = 'None' |
|||
if self.priority in priority: |
|||
zen_prio = priority[self.priority] |
|||
data = { |
|||
'ticket': { |
|||
'comment': {'body': self.description}, |
|||
'priority': zen_prio, |
|||
'subject': self.subject, |
|||
'requester': { |
|||
'name': self.customer_name, # Add the customer name field |
|||
'email': self.email # Add the customer email field |
|||
} |
|||
} |
|||
} |
|||
# Url that access the updating ticket in zendesk |
|||
url = f'https://{company_domain}.zendesk.com/api/v2/tickets/{zen_id}.json' |
|||
headers = {'content-type': 'application/json'} |
|||
# Do the HTTP put request |
|||
response = requests.put(url, data=json.dumps(data), |
|||
auth=(company_email, password), |
|||
headers=headers) |
|||
# Check for HTTP codes other than 200 |
|||
if response.status_code != 200: |
|||
# Error in Updating ticket |
|||
return { |
|||
'type': 'ir.actions.client', |
|||
'tag': 'display_notification', |
|||
'params': { |
|||
'title': _("Error!"), |
|||
'message': _("Updation of the ticket seems to be failed"), |
|||
'sticky': False, |
|||
} |
|||
} |
|||
# Successfully updated the ticket |
|||
return { |
|||
'type': 'ir.actions.client', |
|||
'tag': 'display_notification', |
|||
'params': { |
|||
'title': _("Success!"), |
|||
'message': _("Successfully Updated the ticket"), |
|||
'sticky': False, |
|||
} |
|||
} |
|||
|
|||
def action_delete_zendesk_ticket(self): |
|||
"""This function is used to delete a ticket from zendesk""" |
|||
company_domain = self.env['ir.config_parameter'].sudo().get_param( |
|||
'odoo_zendesk_connector.company_domain') |
|||
company_email = self.env['ir.config_parameter'].sudo().get_param( |
|||
'odoo_zendesk_connector.company_email') |
|||
password = self.env['ir.config_parameter'].sudo().get_param( |
|||
'odoo_zendesk_connector.password') |
|||
zendesk_id = self.zendesk_ticket_no |
|||
# Set up the API request headers and URL |
|||
headers = {'Content-Type': 'application/json'} |
|||
# Url for finding the ticket which want to be deleted |
|||
url = f'https://{company_domain}.zendesk.com/api/v2/tickets/{zendesk_id}.json' |
|||
response = requests.delete(url, auth=(company_email, password), |
|||
headers=headers, timeout=180) |
|||
if response.status_code == 204: |
|||
# Ticket deleted successfully |
|||
return { |
|||
'type': 'ir.actions.client', |
|||
'tag': 'display_notification', |
|||
'params': { |
|||
'title': _("Success!"), |
|||
'message': _("Successfully deleted the tickets"), |
|||
'sticky': False, |
|||
} |
|||
} |
|||
else: |
|||
# Have issue in deleting the ticket |
|||
return { |
|||
'type': 'ir.actions.client', |
|||
'tag': 'display_notification', |
|||
'params': { |
|||
'title': _("Error"), |
|||
'message': _("Have issues with deleting the ticket"), |
|||
'sticky': False, |
|||
} |
|||
} |
@ -0,0 +1,231 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
import json |
|||
import requests |
|||
from datetime import datetime, time |
|||
from odoo import api, fields, models, _ |
|||
from odoo.exceptions import ValidationError, UserError |
|||
|
|||
|
|||
class ImportExportTicket(models.TransientModel): |
|||
"""This class is used to import and export the tickets between odoo and |
|||
zendesk""" |
|||
_name = 'import.export.ticket' |
|||
_description = 'Import and Export Tickets' |
|||
_inherit = 'mail.thread' |
|||
|
|||
start_date = fields.Date(string='Start Date', |
|||
help='Mention the start date', Required=True) |
|||
end_date = fields.Date(string='End Date', help='Mention the end date', |
|||
Required=True) |
|||
|
|||
@api.constrains('start_date', 'end_date') |
|||
def check_start_date(self): |
|||
"""This function is used to validate the entered date""" |
|||
if not self.start_date or not self.end_date: |
|||
raise ValidationError(_("Please provide the dates")) |
|||
if self.start_date > self.end_date: |
|||
raise ValidationError(_("Please check the date that you " |
|||
"provide")) |
|||
|
|||
def action_import_tickets(self): |
|||
"""This function is used to import the tickets from Zendesk""" |
|||
company_domain = self.env['ir.config_parameter'].sudo().get_param( |
|||
'odoo_zendesk_connector.company_domain') |
|||
company_email = self.env['ir.config_parameter'].sudo().get_param( |
|||
'odoo_zendesk_connector.company_email') |
|||
api_key = self.env['ir.config_parameter'].sudo().get_param( |
|||
'odoo_zendesk_connector.api_key') |
|||
# Url for getting the tickets |
|||
url = f"https://{company_domain}.zendesk.com/api/v2/tickets.json" |
|||
headers = { |
|||
"Content-Type": "application/json", |
|||
} |
|||
auth = (f"{company_email}/token", api_key) |
|||
response = requests.get(url, headers=headers, auth=auth) |
|||
if response.ok: |
|||
tickets = response.json()["tickets"] |
|||
for ticket in tickets: |
|||
zendesk_ticket_date = datetime.strptime( |
|||
ticket["created_at"], |
|||
'%Y-%m-%dT%H:%M:%SZ').date() |
|||
if self.start_date <= zendesk_ticket_date <= self.end_date: |
|||
exist_ticket = self.env['help.ticket'].search( |
|||
[('zendesk_ticket_no', '=', ticket["id"])]) |
|||
if not exist_ticket: |
|||
requester_id = ticket["requester_id"] |
|||
# Url for getting each requester |
|||
requester_url = f'https://{company_domain}.zendesk.com/api/v2/users/{requester_id}.json' |
|||
requester_response = requests.get(requester_url, |
|||
headers=headers, |
|||
auth=auth, |
|||
timeout=60) |
|||
# customer=0 |
|||
if response.status_code == 200: |
|||
requester_data = requester_response.json()['user'] |
|||
requester_name = requester_data['name'] |
|||
requester_email = requester_data['email'] |
|||
customer = self.env['res.partner'].search( |
|||
[('name', '=', requester_name), |
|||
('email', '=', requester_email)]).id |
|||
if not customer: |
|||
new_customer = self.env['res.partner'].create({ |
|||
'name': requester_name, |
|||
'email': requester_email |
|||
}) |
|||
customer = new_customer.id |
|||
else: |
|||
pass |
|||
priority_field = { |
|||
None: '0', |
|||
'low': '1', |
|||
'normal': '2', |
|||
'high': '3', |
|||
'urgent': '4' |
|||
} |
|||
priority = priority_field.get(ticket["priority"], |
|||
'0') |
|||
self.env['help.ticket'].create({ |
|||
"subject": ticket["subject"], |
|||
"description": ticket["description"], |
|||
'priority': priority, |
|||
'is_ticket_from_zendesk': True, |
|||
'zendesk_ticket_no': ticket["id"], |
|||
'customer_id': customer, |
|||
'email': requester_email, |
|||
}) |
|||
notification = { |
|||
'type': 'ir.actions.client', |
|||
'tag': 'display_notification', |
|||
'params': { |
|||
'title': _("Success!"), |
|||
'message': _("Tickets are imported" |
|||
" successfully"), |
|||
'sticky': False, |
|||
} |
|||
} |
|||
else: |
|||
# Error in Importing tickets |
|||
notification = { |
|||
'type': 'ir.actions.client', |
|||
'tag': 'display_notification', |
|||
'params': { |
|||
'title': _("Error!"), |
|||
'message': _( |
|||
"It seems to have some issue with importing " |
|||
"the tickets"), |
|||
'sticky': False, |
|||
} |
|||
} |
|||
return notification |
|||
|
|||
def action_export_tickets(self): |
|||
"""This function is used to export tickets from odoo to zendesk""" |
|||
company_domain = self.env['ir.config_parameter'].sudo().get_param( |
|||
'odoo_zendesk_connector.company_domain') |
|||
company_email = self.env['ir.config_parameter'].sudo().get_param( |
|||
'odoo_zendesk_connector.company_email') |
|||
password = self.env['ir.config_parameter'].sudo().get_param( |
|||
'odoo_zendesk_connector.password') |
|||
export_start_date = datetime.combine(self.start_date, time.min) |
|||
export_end_date = datetime.combine(self.end_date, time.min) |
|||
headers = {'content-type': 'application/json'} |
|||
tickets_rec = self.env['help.ticket'].search( |
|||
[('create_date', '>=', export_start_date), |
|||
('create_date', '<=', export_end_date), |
|||
('is_ticket_from_zendesk', '=', False), |
|||
]) |
|||
for rec in tickets_rec: |
|||
# Url to check whether a Zendesk ticket with same id exist |
|||
zen_id_search_url = f'https://{company_domain}.zendesk.com/api/v2/tickets/{rec.zendesk_ticket_no}.json' |
|||
zen_id_search_response = requests.get(zen_id_search_url, auth=( |
|||
company_email, password)) |
|||
if zen_id_search_response.status_code != 200: |
|||
# Ticket with same id does not exit, so create it as |
|||
# a new ticket in Zendesk |
|||
# Synchronizing the priority of Zendesk with priority of Odoo |
|||
priority = { |
|||
'1': 'low', |
|||
'2': 'normal', |
|||
'3': 'high', |
|||
'4': 'urgent' |
|||
} |
|||
zen_prio = 'None' |
|||
if rec.priority in priority: |
|||
zen_prio = priority[rec.priority] |
|||
# With this url checking whether a customer with same email |
|||
# is existing in Zendesk |
|||
customer_search_url = f'https://{company_domain}.zendesk.com/api/v2/users/search.json?query=email:{rec.email}' |
|||
search_response = requests.get(customer_search_url, |
|||
auth=(company_email, password)) |
|||
if search_response.status_code == 200: |
|||
results = search_response.json().get('users') |
|||
if results and len(results) > 0: |
|||
# Customer Exist |
|||
customer_id = results[0]['id'] |
|||
|
|||
else: |
|||
# Customer does not exist so, need to create a new |
|||
# customer |
|||
data = { |
|||
'user': { |
|||
'name': rec.customer_id.name, |
|||
'email': rec.email, |
|||
} |
|||
} |
|||
# Creating new user |
|||
user_url = f'https://{company_domain}.zendesk.com/api/v2/users.json' |
|||
user_response = requests.post(user_url, json=data, |
|||
auth=( |
|||
company_email, |
|||
password), |
|||
headers=headers) |
|||
if user_response.status_code == 201: |
|||
# User created successfully, get new ID |
|||
customer_id = user_response.json().get('user').get( |
|||
'id') |
|||
else: |
|||
raise UserError(_(user_response.json()['error'])) |
|||
# Creating a new ticket to Zendesk from Odoo |
|||
data = { |
|||
'ticket': {'subject': rec.subject, 'priority': zen_prio, |
|||
'comment': {'body': rec.description}, |
|||
'requester_id': customer_id}} |
|||
url = f'https://{company_domain}.zendesk.com/api/v2/tickets.json' |
|||
response = requests.post(url, data=json.dumps(data), |
|||
auth=(company_email, password), |
|||
headers=headers) |
|||
if response.status_code != 201: |
|||
# Problem with exporting ticket to Zendesk |
|||
return { |
|||
'type': 'ir.actions.client', |
|||
'tag': 'display_notification', |
|||
'params': { |
|||
'title': _("Error!"), |
|||
'message': _("Problem with exporting ticket to" |
|||
" Zendesk"), |
|||
'sticky': False, |
|||
} |
|||
} |
|||
# Exported the tickets Successfully |
|||
if response.json().get("ticket"): |
|||
rec.zendesk_ticket_no = response.json()['ticket']['id'] |
@ -0,0 +1,82 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
import requests |
|||
from odoo import fields, models, _ |
|||
|
|||
|
|||
class ResConfigSettings(models.TransientModel): |
|||
"""This function is used to add some fields in Configuration setting that |
|||
helps to establish the connection, and also check whether the connection is |
|||
established or not""" |
|||
_inherit = 'res.config.settings' |
|||
|
|||
is_connect_zendesk = fields.Boolean(string="Connect Zendesk", |
|||
help='Do you want to connect with ' |
|||
'zendesk', |
|||
config_parameter= 'odoo_zendesk_connector.is_connect_zendesk') |
|||
company_domain = fields.Char(string='Company Domain', |
|||
help="Provide the domain of your company", |
|||
config_parameter= |
|||
'odoo_zendesk_connector.company_domain') |
|||
company_email = fields.Char(string='Company Email', |
|||
help='Email of your company', |
|||
config_parameter= |
|||
'odoo_zendesk_connector.company_email') |
|||
api_key = fields.Char(string='API', help='Generated api key', |
|||
config_parameter='odoo_zendesk_connector.api_key') |
|||
password = fields.Char(string='Password', help='Password of Zendesk ' |
|||
'account', |
|||
config_parameter='odoo_zendesk_connector.password') |
|||
|
|||
def action_test_connection(self): |
|||
"""This function is used to check whether the connection is |
|||
established or not""" |
|||
zendesk_email = self.company_email |
|||
zendesk_token = self.api_key |
|||
company_domain = self.company_domain |
|||
zendesk_url = f'https://{company_domain}.zendesk.com/api/v2/' |
|||
endpoint = 'tickets.json' |
|||
headers = {'Content-Type': 'application/json'} |
|||
auth = (zendesk_email + '/token', zendesk_token) |
|||
try: |
|||
response = requests.get(zendesk_url + endpoint, headers=headers, |
|||
auth=auth) |
|||
response.raise_for_status() |
|||
return { |
|||
'type': 'ir.actions.client', |
|||
'tag': 'display_notification', |
|||
'params': { |
|||
'title': _("Connection Test Succeeded!"), |
|||
'message': _("Everything seems properly set up!"), |
|||
'sticky': False, |
|||
} |
|||
} |
|||
except requests.exceptions.HTTPError as error: |
|||
return { |
|||
'type': 'ir.actions.client', |
|||
'tag': 'display_notification', |
|||
'params': { |
|||
'title': _('Error'), |
|||
'message': _(error), |
|||
'sticky': False, |
|||
} |
|||
} |
|
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 589 B |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 967 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 228 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 82 KiB |
After Width: | Height: | Size: 83 KiB |
After Width: | Height: | Size: 88 KiB |
After Width: | Height: | Size: 237 KiB |
After Width: | Height: | Size: 135 KiB |
After Width: | Height: | Size: 105 KiB |
After Width: | Height: | Size: 106 KiB |
After Width: | Height: | Size: 69 KiB |
After Width: | Height: | Size: 90 KiB |
After Width: | Height: | Size: 102 KiB |
After Width: | Height: | Size: 83 KiB |
After Width: | Height: | Size: 102 KiB |
After Width: | Height: | Size: 64 KiB |
After Width: | Height: | Size: 52 KiB |
After Width: | Height: | Size: 45 KiB |
After Width: | Height: | Size: 69 KiB |
After Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 60 KiB |
After Width: | Height: | Size: 116 KiB |
After Width: | Height: | Size: 111 KiB |
After Width: | Height: | Size: 63 KiB |
After Width: | Height: | Size: 53 KiB |
After Width: | Height: | Size: 55 KiB |
After Width: | Height: | Size: 74 KiB |
After Width: | Height: | Size: 107 KiB |
After Width: | Height: | Size: 108 KiB |
After Width: | Height: | Size: 260 KiB |
After Width: | Height: | Size: 157 KiB |
After Width: | Height: | Size: 57 KiB |
After Width: | Height: | Size: 90 KiB |
After Width: | Height: | Size: 162 KiB |
After Width: | Height: | Size: 236 KiB |
After Width: | Height: | Size: 147 KiB |
After Width: | Height: | Size: 115 KiB |
After Width: | Height: | Size: 148 KiB |
After Width: | Height: | Size: 87 KiB |
After Width: | Height: | Size: 98 KiB |
After Width: | Height: | Size: 97 KiB |
After Width: | Height: | Size: 14 KiB |
@ -0,0 +1,632 @@ |
|||
<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: #017E84; 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;"> |
|||
Odoo Zendesk Connector</h1> |
|||
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">Connect the Odoo with Zendesk</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 of 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"> |
|||
The module 'Odoo Zendesk Connector' is used to connect the Odoo with |
|||
Zendesk.By Using this, we are able to both Import/Export many tickets |
|||
between Odoo and Zendesk, moreover that, it is possible to create, |
|||
update, and delete the of Zendesk from Odoo |
|||
</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: 40px; margin-bottom: 40px"> |
|||
<img src="assets/misc/check-box.png" class="mr-2" /> |
|||
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">One click API integration.</span> |
|||
</div> |
|||
<div class="d-flex align-items-center" style="margin-top: 40px; margin-bottom: 40px"> |
|||
<img src="assets/misc/check-box.png" class="mr-2" /> |
|||
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Can easily Create a ticket to Zendesk </span> |
|||
</div> |
|||
<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;">It is possible to update and delete a zendesk |
|||
ticket</span> |
|||
</div> |
|||
<div class="d-flex align-items-center" style="margin-top: 40px; margin-bottom: 40px"> |
|||
<img src="assets/misc/check-box.png" class="mr-2" /> |
|||
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Synchronized the stages and priorities of a ticket</span> |
|||
</div> |
|||
<div class="d-flex align-items-center" style="margin-top: 40px; margin-bottom: 40px"> |
|||
<img src="assets/misc/check-box.png" class="mr-2" /> |
|||
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Synchronized the contacts</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;">Create an account in Zendesk </h3> |
|||
<a href="https://www.zendesk.com/in/login/">https://www.zendesk.com/in/login/</a> |
|||
<img src="assets/screenshots/oz1.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;">From your account go to Admin Center</h3> |
|||
<img src="assets/screenshots/oz2.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;">From Admin Center go to Apps and integrations and select |
|||
Zendesk API |
|||
</h3> |
|||
<img src="assets/screenshots/oz3.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;">From Zendesk API activate password access and Token access</h3> |
|||
<img src="assets/screenshots/oz4.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;">Company domain</h3> |
|||
<img src="assets/screenshots/oz5.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;">Give the credentials and enable connection</h3> |
|||
<img src="assets/screenshots/new_zendesk_01.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;">Create a zendesk ticket by clicking the button</h3> |
|||
<img src="assets/screenshots/new_zendesk_02.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;">Can see the ticket in Zendesk</h3> |
|||
<img src="assets/screenshots/new_zendesk_03.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;">After creating the ticket in Zendesk we can see the |
|||
Id of that ticket corresponding in the Zendesk</h3> |
|||
<img src="assets/screenshots/new_zendesk_04.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;">Can update a ticket, simply by clicking UPDATE button</h3> |
|||
<img src="assets/screenshots/new_zendesk_05.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;">Can see the Updated ticket in the Zendesk</h3> |
|||
<img src="assets/screenshots/new_zendesk_06.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;">By clicking on the button 'Delete From Zendesk' can easily delete |
|||
that ticket from the Zendesk</h3> |
|||
<img src="assets/screenshots/new_zendesk_07.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;">Can see that ticket is deleted</h3> |
|||
<img src="assets/screenshots/new_zendesk_08.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;">To import/export tickets, click on the menu 'Import/Export Tickets'</h3> |
|||
<img src="assets/screenshots/new_zendesk_09.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;">Can see a wizard will open and in that you can provide two dates, |
|||
between in which we want to import/export tickets</h3> |
|||
<img src="assets/screenshots/new_zendesk_10.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;">Can see the exported two tickets</h3> |
|||
<img src="assets/screenshots/new_zendesk_11.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;">To import the tickets </h3> |
|||
<img src="assets/screenshots/new_zendesk_12.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;">Can see all the imported tickets</h3> |
|||
<img src="assets/screenshots/new_zendesk_13.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/openai_odoo_base/" |
|||
target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" |
|||
style="border-radius: 0px;" |
|||
src="assets/modules/1.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/woo_commerce/" |
|||
target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" |
|||
style="border-radius: 0px;" |
|||
src="assets/modules/l2.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/shopify_odoo_connector/" |
|||
target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" |
|||
style="border-radius: 0px;" |
|||
src="assets/modules/l3.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/hr_zk_attendance/" |
|||
target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" |
|||
style="border-radius: 0px;" |
|||
src="assets/modules/l4.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/whatsapp_redirect/" |
|||
target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" |
|||
style="border-radius: 0px;" |
|||
src="assets/modules/l5.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/openai_website_product_media/" |
|||
target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" |
|||
style="border-radius: 0px;" |
|||
src="assets/modules/l6.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 & 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" |
|||
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" |
|||
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 --> |
@ -0,0 +1,26 @@ |
|||
<?xml version="1.0" encoding="utf-8" ?> |
|||
<odoo> |
|||
<!-- Inherited the form view of help.ticket and to add some fields and some button--> |
|||
<record id="view_helpdesk_form" model="ir.ui.view"> |
|||
<field name="name">help.ticket.view.form.inherit.odoo.zendesk.connector</field> |
|||
<field name="model">help.ticket</field> |
|||
<field name="inherit_id" ref="odoo_website_helpdesk.help_ticket_view_form"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//field[@name='email']" position="attributes"> |
|||
<attribute name="required">1</attribute> |
|||
</xpath> |
|||
<field name="end_date" position="after"> |
|||
<field name="zendesk_ticket_no"/> |
|||
<field name="is_ticket_from_zendesk" invisible="1"/> |
|||
</field> |
|||
<xpath expr="//header" position="inside"> |
|||
<button string="Create to Zendesk" |
|||
type="object" name="action_create_to_zendesk"/> |
|||
<button string="Update" |
|||
type="object" name="action_update_zendesk_ticket"/> |
|||
<button string="Delete From Zendesk" |
|||
type="object" name="action_delete_zendesk_ticket"/> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
</odoo> |
@ -0,0 +1,44 @@ |
|||
<?xml version="1.0" encoding="utf-8" ?> |
|||
<odoo> |
|||
<!-- Form view of the model import.export.ticket--> |
|||
<record id="import_export_ticket_view_form" model="ir.ui.view"> |
|||
<field name="name">import.export.ticket.view.form</field> |
|||
<field name="model">import.export.ticket</field> |
|||
<field name="arch" type="xml"> |
|||
<form> |
|||
<sheet> |
|||
<group col="5"> |
|||
<group colspan="2"> |
|||
<field name="start_date"/> |
|||
<field name="end_date"/> |
|||
<footer> |
|||
<button class="oe_highlight" name="action_import_tickets" string="Import" type="object"/> |
|||
<button class="oe_highlight" name="action_export_tickets" string="Export" type="object"/> |
|||
</footer> |
|||
</group> |
|||
</group> |
|||
</sheet> |
|||
<div class="oe_chatter"> |
|||
<field name="message_follower_ids"/> |
|||
<field name="message_ids"/> |
|||
</div> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
<!-- Action of the model import.export.ticket--> |
|||
<record id="import_export_ticket_action" model="ir.actions.act_window"> |
|||
<field name="name">Import/Export Tickets</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="res_model">import.export.ticket</field> |
|||
<field name="view_mode">form</field> |
|||
<field name="view_id" ref="import_export_ticket_view_form"/> |
|||
<field name="target">new</field> |
|||
</record> |
|||
<!-- Menu for importing and exporting tickets--> |
|||
<menuitem |
|||
id="import_export_ticket_menu" |
|||
name="Import/Export Tickets" |
|||
action="import_export_ticket_action" |
|||
parent="odoo_website_helpdesk.helpdesk_dashboard_menu_root" |
|||
sequence="1"/> |
|||
</odoo> |
@ -0,0 +1,77 @@ |
|||
<?xml version="1.0" encoding="utf-8" ?> |
|||
<odoo> |
|||
<!-- Inherited the form view of res.config.settings and add some fields for |
|||
giving the credentials of zendesk--> |
|||
<record id="res_config_settings_view_form" model="ir.ui.view"> |
|||
<field name="name">res.config.settings.view.form.inherit.odoo.zendesk.connector</field> |
|||
<field name="model">res.config.settings</field> |
|||
<field name="inherit_id" ref="base.res_config_settings_view_form"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//div[@data-key='helpdesk_ticket']" position="inside"> |
|||
<h2>Connect Zendesk</h2> |
|||
<div class="row mt16 o_settings_container"> |
|||
<div class="col-12 col-lg-6 o_setting_box"> |
|||
<div class="o_setting_left_pane"> |
|||
<field name="is_connect_zendesk"/> |
|||
</div> |
|||
<div class="o_setting_right_pane"> |
|||
<label for="is_connect_zendesk"/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="row mt16 o_settings_container"> |
|||
<div class="col-12 col-lg-6 o_setting_box" |
|||
attrs="{'invisible': [('is_connect_zendesk', '=', False)]}"> |
|||
<div class="o_setting_right_pane"> |
|||
<label for="company_domain"/> |
|||
<div class="content-group"> |
|||
<div class="mt16"> |
|||
<field name="company_domain"/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-12 col-lg-6 o_setting_box" |
|||
attrs="{'invisible': [('is_connect_zendesk', '=', False)]}"> |
|||
<div class="o_setting_right_pane"> |
|||
<label for="company_email"/> |
|||
<div class="content-group"> |
|||
<div class="mt16"> |
|||
<field name="company_email"/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-12 col-lg-6 o_setting_box" |
|||
attrs="{'invisible': [('is_connect_zendesk', '=', False)]}"> |
|||
<div class="o_setting_right_pane"> |
|||
<label for="api_key"/> |
|||
<div class="content-group"> |
|||
<div class="mt16"> |
|||
<field name="api_key"/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-12 col-lg-6 o_setting_box" |
|||
attrs="{'invisible': [('is_connect_zendesk', '=', False)]}"> |
|||
<div class="o_setting_right_pane"> |
|||
<label for="password"/> |
|||
<div class="content-group"> |
|||
<div class="mt16"> |
|||
<field name="password" password="True"/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-12 col-lg-6 o_setting_box"> |
|||
<div class="o_setting_right_pane"> |
|||
<button class="oe_highlight" name="action_test_connection" string="Test Connection" type="object" |
|||
attrs="{'invisible': [('is_connect_zendesk', '=', False)]}"/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
</odoo> |