Browse Source

Nov 16 [ADD]: Initial Commit 'odoo_slack_connector'

pull/221/merge
AjmalCybro 2 years ago
parent
commit
10527dd138
  1. 17
      odoo_slack_connector/README.rst
  2. 8
      odoo_slack_connector/__init__.py
  3. 49
      odoo_slack_connector/__manifest__.py
  4. 15
      odoo_slack_connector/data/scheduled_action.xml
  5. 6
      odoo_slack_connector/doc/RELEASE_NOTES.md
  6. 28
      odoo_slack_connector/models/__init__.py
  7. 66
      odoo_slack_connector/models/mail_channel.py
  8. 116
      odoo_slack_connector/models/mail_message.py
  9. 143
      odoo_slack_connector/models/res_company.py
  10. 30
      odoo_slack_connector/models/res_partner.py
  11. 65
      odoo_slack_connector/models/res_users.py
  12. 7
      odoo_slack_connector/security/ir.model.access.csv
  13. BIN
      odoo_slack_connector/static/description/assets/icons/check.png
  14. BIN
      odoo_slack_connector/static/description/assets/icons/chevron.png
  15. BIN
      odoo_slack_connector/static/description/assets/icons/cogs.png
  16. BIN
      odoo_slack_connector/static/description/assets/icons/consultation.png
  17. BIN
      odoo_slack_connector/static/description/assets/icons/ecom-black.png
  18. BIN
      odoo_slack_connector/static/description/assets/icons/education-black.png
  19. BIN
      odoo_slack_connector/static/description/assets/icons/hotel-black.png
  20. BIN
      odoo_slack_connector/static/description/assets/icons/license.png
  21. BIN
      odoo_slack_connector/static/description/assets/icons/lifebuoy.png
  22. BIN
      odoo_slack_connector/static/description/assets/icons/manufacturing-black.png
  23. BIN
      odoo_slack_connector/static/description/assets/icons/pos-black.png
  24. BIN
      odoo_slack_connector/static/description/assets/icons/puzzle.png
  25. BIN
      odoo_slack_connector/static/description/assets/icons/restaurant-black.png
  26. BIN
      odoo_slack_connector/static/description/assets/icons/service-black.png
  27. BIN
      odoo_slack_connector/static/description/assets/icons/trading-black.png
  28. BIN
      odoo_slack_connector/static/description/assets/icons/training.png
  29. BIN
      odoo_slack_connector/static/description/assets/icons/update.png
  30. BIN
      odoo_slack_connector/static/description/assets/icons/user.png
  31. BIN
      odoo_slack_connector/static/description/assets/icons/wrench.png
  32. BIN
      odoo_slack_connector/static/description/assets/misc/categories.png
  33. BIN
      odoo_slack_connector/static/description/assets/misc/check-box.png
  34. BIN
      odoo_slack_connector/static/description/assets/misc/compass.png
  35. BIN
      odoo_slack_connector/static/description/assets/misc/corporate.png
  36. BIN
      odoo_slack_connector/static/description/assets/misc/customer-support.png
  37. BIN
      odoo_slack_connector/static/description/assets/misc/cybrosys-logo.png
  38. BIN
      odoo_slack_connector/static/description/assets/misc/features.png
  39. BIN
      odoo_slack_connector/static/description/assets/misc/logo.png
  40. BIN
      odoo_slack_connector/static/description/assets/misc/pictures.png
  41. BIN
      odoo_slack_connector/static/description/assets/misc/pie-chart.png
  42. BIN
      odoo_slack_connector/static/description/assets/misc/right-arrow.png
  43. BIN
      odoo_slack_connector/static/description/assets/misc/star.png
  44. BIN
      odoo_slack_connector/static/description/assets/misc/support.png
  45. BIN
      odoo_slack_connector/static/description/assets/misc/whatsapp.png
  46. BIN
      odoo_slack_connector/static/description/assets/modules/1.png
  47. BIN
      odoo_slack_connector/static/description/assets/modules/2.png
  48. BIN
      odoo_slack_connector/static/description/assets/modules/3.png
  49. BIN
      odoo_slack_connector/static/description/assets/modules/4.png
  50. BIN
      odoo_slack_connector/static/description/assets/modules/5.gif
  51. BIN
      odoo_slack_connector/static/description/assets/modules/6.png
  52. BIN
      odoo_slack_connector/static/description/assets/screenshots/1.png
  53. BIN
      odoo_slack_connector/static/description/assets/screenshots/2.png
  54. BIN
      odoo_slack_connector/static/description/assets/screenshots/3.png
  55. BIN
      odoo_slack_connector/static/description/assets/screenshots/4.png
  56. BIN
      odoo_slack_connector/static/description/assets/screenshots/5.png
  57. BIN
      odoo_slack_connector/static/description/assets/screenshots/6.png
  58. BIN
      odoo_slack_connector/static/description/assets/screenshots/hero.gif
  59. BIN
      odoo_slack_connector/static/description/banner.png
  60. BIN
      odoo_slack_connector/static/description/icon.png
  61. 553
      odoo_slack_connector/static/description/index.html
  62. 16
      odoo_slack_connector/views/mail_channel.xml
  63. 15
      odoo_slack_connector/views/mail_message.xml
  64. 48
      odoo_slack_connector/views/res_company.xml
  65. 16
      odoo_slack_connector/views/res_partner.xml
  66. 17
      odoo_slack_connector/views/res_users.xml

17
odoo_slack_connector/README.rst

@ -0,0 +1,17 @@
Slack Odoo Connector
====================
Allows to integrate with slack.
Installation
============
- www.odoo.com/documentation/16.0/setup/install.html
- Install our custom addon
Configuration
=============
Need to generate slack API token
Credits
=======
Developer: Viswanth K v15 @ cybrosys, odoo@cybrosys.com
Viswanth K v16 @ cybrosys, odoo@cybrosys.com

8
odoo_slack_connector/__init__.py

@ -0,0 +1,8 @@
from . import models
def slack_uninstall_hook(cr, registry):
cr.execute("DELETE FROM res_partner WHERE is_slack_user='true'")
cr.execute("DELETE FROM mail_channel WHERE is_slack='true'")
cr.execute("DELETE FROM res_users WHERE is_slack_internal_users='true'")
cr.commit()

49
odoo_slack_connector/__manifest__.py

@ -0,0 +1,49 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2022-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': "Slack Odoo Connector",
'version': '16.0.1.0.0',
'summary': "Integrate slack with Odoo",
'description': "This module will help you to connect with slack to manage slack Conversations",
'category': 'Extra Tools',
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'depends': ['contacts', 'mail'],
'website': 'https://www.cybrosys.com',
'data': [
'security/ir.model.access.csv',
'data/scheduled_action.xml',
'views/res_company.xml',
'views/mail_message.xml',
'views/mail_channel.xml',
'views/res_partner.xml',
'views/res_users.xml'
],
'images': ['static/description/banner.png'],
'license': 'LGPL-3',
'installable': True,
'auto_install': False,
'uninstall_hook': 'slack_uninstall_hook'
}

15
odoo_slack_connector/data/scheduled_action.xml

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data noupdate="1">
<record id="ir_cron_scheduler_synchronization_slack_odoo" model="ir.cron">
<field name="name">Auto Synchronization of slack and odoo</field>
<field name="model_id" ref="model_mail_message"/>
<field name="state">code</field>
<field name="code">model.synchronization_slack()</field>
<field name="user_id" ref="base.user_root"/>
<field name="interval_number">1</field>
<field name="interval_type">minutes</field>
<field name="numbercall">-1</field>
</record>
</data>
</odoo>

6
odoo_slack_connector/doc/RELEASE_NOTES.md

@ -0,0 +1,6 @@
## Module <odoo_slack_connector>
#### 27.10.2022
#### Version 16.0.1.0.0
##### ADD
- Initial commit for Slack

28
odoo_slack_connector/models/__init__.py

@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2022-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 res_company
from . import mail_message
from . import mail_channel
from . import res_partner
from . import res_users

66
odoo_slack_connector/models/mail_channel.py

@ -0,0 +1,66 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2022-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, json
from odoo import models, fields
class MailChannel(models.Model):
_inherit = 'mail.channel'
_description = 'Slack Channel'
is_slack = fields.Boolean("Slack", default=False)
channel = fields.Char("ID")
msg_date = fields.Datetime()
def sync_members(self):
"""To load members into channels"""
company_record = self.env.user.company_id
payload = {}
headers = {
'Authorization': 'Bearer ' + company_record.token
}
for channels in self:
slack_user_list = []
sample_list = []
slack_user_list.clear()
current_channel_user_list = []
current_channel_user_list.clear()
if channels.is_slack:
url = "https://slack.com/api/conversations.members?channel=" + channels.channel
channel_member_resonse = requests.request("GET", url,
headers=headers,
data=payload)
channel_members = channel_member_resonse.__dict__['_content']
dict_channel_members = channel_members.decode("UTF-8")
channel_member = json.loads(dict_channel_members)
for slack_user_id in channel_member['members']:
contact = self.env['res.partner'].search(
[('slack_user_id', '=', slack_user_id)])
slack_user_list.append(contact.id)
for last_seen_partner_ids in channels.channel_member_ids:
current_channel_user_list.append(
last_seen_partner_ids.partner_id.id)
for contact_id in slack_user_list:
if contact_id not in current_channel_user_list:
sample_list.append((0, 0, {'partner_id': contact_id}))
channels.channel_member_ids = sample_list

116
odoo_slack_connector/models/mail_message.py

@ -0,0 +1,116 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2022-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 datetime import date, time
from odoo import fields, models, api
import requests, re, json
from odoo.http import request
from datetime import datetime
from dateutil import tz
def remove_html(string):
regex = re.compile(r'<[^>]+>')
return regex.sub('', string)
class MailMessage(models.Model):
_inherit = 'mail.message'
_description = 'Slack Message'
is_slack = fields.Boolean(string="Slack", default=False)
channel = fields.Many2one('mail.channel')
@api.model
def create(self, vals):
"""Over riding the create method to sent message to slack"""
res = super().create(vals)
to_zone = tz.gettz('Asia/Kolkata')
channel_date = datetime.today().strftime('%Y-%m-%d %H:%M:%S')
company_record = self.env.user.company_id
channels = self.env['mail.channel'].search([('is_slack', '=', True)])
for channel in channels:
msg = self.env['mail.message'].search(
[('model', '=', 'mail.channel'), ('res_id', '=', channel.id),
('is_slack', '=', False)])
if msg:
for rec in msg:
payload = {}
headers = {
'Authorization': 'Bearer ' + company_record.token
}
new_text = remove_html(rec.body)
url = "https://slack.com/api/chat.postMessage?channel=" + rec.record_name + "&" + "text=" + new_text
requests.request("POST", url, headers=headers, data=payload)
rec.is_slack = True
converted_time = datetime.strptime(channel_date,'%Y-%m-%d %H:%M:%S').astimezone(to_zone)
channel.msg_date = converted_time.strftime('%Y-%m-%d %H:%M:%S')
return res
def synchronization_slack(self):
"""scheduled action to retrieve message from slack"""
channel_date = datetime.today().strftime('%Y-%m-%d %H:%M:%S')
if self.env.company.slack_sync:
to_zone = tz.gettz('Asia/Kolkata')
for channel_id in self.env['mail.channel'].search(
[('is_slack', '=', 'true')]):
company_record = self.env.user.company_id
payload = {}
headers = {'Authorization': 'Bearer ' + company_record.token}
url = "https://slack.com/api/conversations.history?channel=" + channel_id.channel
channel_response = requests.request("GET", url, headers=headers,
data=payload)
channels_response = channel_response.__dict__['_content']
dict_channels = channels_response.decode("UTF-8")
channels_history = json.loads(dict_channels)
channels_history['messages'].reverse()
if not channel_id.msg_date:
converted_time = datetime.strptime(channel_date,
'%Y-%m-%d %H:%M:%S').astimezone(
to_zone)
channel_id.msg_date = converted_time.strftime(
'%Y-%m-%d %H:%M:%S')
else:
for i in channels_history['messages']:
if 'user' in i:
users = self.env['res.users'].search(
[('slack_user_id', '=', i['user'])])
dt_object = (
datetime.fromtimestamp(float(i['ts'])).strftime(
'%Y-%m-%d %H:%M:%S'))
date_time_obj = datetime.strptime(dt_object,
'%Y-%m-%d %H:%M:%S')
converted_time = date_time_obj.astimezone(to_zone)
if datetime.strptime(converted_time.strftime(
'%Y-%m-%d %H:%M:%S'),
'%Y-%m-%d %H:%M:%S') > channel_id.msg_date:
self.with_user(users.id).create({
'body': i['text'],
'record_name': channel_id.name,
'model': 'mail.channel',
'is_slack': True,
'res_id': channel_id.id,
})
converted_time = datetime.strptime(channel_date,
'%Y-%m-%d %H:%M:%S').astimezone(
to_zone)
channel_id.msg_date = converted_time.strftime(
'%Y-%m-%d %H:%M:%S')

143
odoo_slack_connector/models/res_company.py

@ -0,0 +1,143 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2022-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 odoo import fields, models
import requests, json
class ResCompanyInherited(models.Model):
_inherit = 'res.company'
_description = 'Slack Api'
token = fields.Char(required=True, string="Slack Token")
slack_users_ids = fields.One2many('res.company.slack.users',
'res_company_id',
"All Users")
slack_channel_ids = fields.One2many('res.company.slack.channels',
'res_company_id',
"Channels")
slack_sync = fields.Boolean(default=False)
def sync_conversations(self):
"""To sync channels and members from slack"""
self.slack_sync = True
url1 = "https://slack.com/api/users.list"
url2 = "https://slack.com/api/conversations.list"
url3 = "https://slack.com/api/users.info?user="
payload = {}
headers = {
'Authorization': 'Bearer ' + self.token
}
users_response = requests.request("GET", url1, headers=headers,
data=payload)
users_response = users_response.__dict__['_content']
dict_users = users_response.decode("UTF-8")
users = json.loads(dict_users)
channel_list = []
channel_response = requests.request("GET", url2, headers=headers,
data=payload)
channels_response = channel_response.__dict__['_content']
dict_channels = channels_response.decode("UTF-8")
channels = json.loads(dict_channels)
search_channel = self.env['mail.channel'].search([])
search_channel.sync_members()
self.env['res.users'].search([]).sync_users()
for i in search_channel:
channel_list.append(i.channel)
for channel in channels['channels']:
if channel['id'] not in channel_list:
self.env['mail.channel'].create([
{
'name': channel['name'],
'channel': channel['id'],
'is_slack': True,
}, ])
users_list = []
slack_id_list = []
slack_internal_user_list = []
members_list = []
channels_list = []
record_channel_list = []
record = self.env.user.company_id
for in_channel in self.slack_channel_ids:
record_channel_list.append(in_channel.name)
for channel in channels['channels']:
if channel['name'] not in record_channel_list:
channels_list.append((0, 0,
{'name': channel['name']}
))
self.slack_channel_ids = channels_list
record_user_list = []
for rec in record.slack_users_ids:
record_user_list.append(rec.user)
for rec in users['members']:
if 'email' in rec['profile']:
email = rec['profile']['email']
else:
email = ''
if rec['id'] not in record_user_list:
users_list.append((0, 0,
{'name': rec['real_name'],
'user': rec['id'],
'email': email},
))
self.slack_users_ids = users_list
for partner_id in self.env['res.partner'].search([]):
slack_id_list.append(partner_id.slack_user_id)
for rec in users['members']:
# if rec['is_email_confirmed'] is True:
if 'email' in rec['profile']:
email = rec['profile']['email']
else:
email = ''
if rec['id'] not in slack_id_list:
vals = {
'name': rec['real_name'],
'slack_user_id': rec['id'],
'is_slack_user': True,
'email': email
}
self.env['res.partner'].create(vals)
class SlackUsersLines(models.Model):
_name = 'res.company.slack.users'
_description = 'Slack users'
name = fields.Char(string="Name")
email = fields.Char(string="Email")
user = fields.Char(string="User ID")
res_company_id = fields.Many2one("res.company")
class SlackChannelLines(models.Model):
_name = 'res.company.slack.channels'
_description = 'Slack Channels'
name = fields.Char(string="Name")
res_company_id = fields.Many2one("res.company")

30
odoo_slack_connector/models/res_partner.py

@ -0,0 +1,30 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2022-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 odoo import fields, models
class ResPartner(models.Model):
_inherit = 'res.partner'
_description = 'Slack members'
slack_user_id = fields.Char(string="Slack User ID")
is_slack_user = fields.Boolean("Slack User", default=False)

65
odoo_slack_connector/models/res_users.py

@ -0,0 +1,65 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2022-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 odoo import fields, models
import requests, json
class ResPartner(models.Model):
_inherit = 'res.users'
_description = 'Slack users'
slack_user_id = fields.Char(string="Slack User ID")
is_slack_internal_users = fields.Boolean("Slack User", default=False)
def sync_users(self):
"""To load slack users"""
slack_internal_user_list = []
url1 = "https://slack.com/api/users.list"
company_record = self.env.user.company_id
payload = {}
headers = {
'Authorization': 'Bearer ' + company_record.token
}
users_response = requests.request("GET", url1, headers=headers,
data=payload)
users_response = users_response.__dict__['_content']
dict_users = users_response.decode("UTF-8")
users = json.loads(dict_users)
for user_id in self:
slack_internal_user_list.append(user_id.slack_user_id)
for rec in users['members']:
if rec['is_email_confirmed'] is True:
if 'email' in rec['profile']:
email = rec['profile']['email']
else:
email = ''
if rec['id'] not in slack_internal_user_list:
vals = {
'name': rec['real_name'],
'slack_user_id': rec['id'],
'is_slack_internal_users': True,
'login': email,
}
self.create(vals)

7
odoo_slack_connector/security/ir.model.access.csv

@ -0,0 +1,7 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_res_company_slack_users,access.res.company.slack.users,model_res_company_slack_users,base.group_user,1,1,1,1
access_res_company_slack_channels,access.res.company.slack.channels,model_res_company_slack_channels,base.group_user,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_res_company_slack_users access.res.company.slack.users model_res_company_slack_users base.group_user 1 1 1 1
3 access_res_company_slack_channels access.res.company.slack.channels model_res_company_slack_channels base.group_user 1 1 1 1

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
odoo_slack_connector/static/description/assets/modules/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

BIN
odoo_slack_connector/static/description/assets/modules/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
odoo_slack_connector/static/description/assets/modules/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
odoo_slack_connector/static/description/assets/modules/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

BIN
odoo_slack_connector/static/description/assets/modules/5.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

BIN
odoo_slack_connector/static/description/assets/modules/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

BIN
odoo_slack_connector/static/description/assets/screenshots/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

BIN
odoo_slack_connector/static/description/assets/screenshots/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

BIN
odoo_slack_connector/static/description/assets/screenshots/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

BIN
odoo_slack_connector/static/description/assets/screenshots/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

BIN
odoo_slack_connector/static/description/assets/screenshots/5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB

BIN
odoo_slack_connector/static/description/assets/screenshots/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

BIN
odoo_slack_connector/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

BIN
odoo_slack_connector/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

553
odoo_slack_connector/static/description/index.html

@ -0,0 +1,553 @@
<div style="background-color: #714B67; min-height: 600px; width: 100%; padding: 15px; position: relative;">
<!-- TITLE BAR -->
<div
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>
</div>
<!-- END OF TITLE BAR -->
<!-- APP HERO -->
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;">Slack Odoo Connector</h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">To Integrate Odoo with Slack</p>
<!-- END OF APP HERO -->
<img src="assets/screenshots/hero.gif"
style="width: 75%; height: auto; position: absolute; margin-left: auto; margin-right: auto; top: 45%; left: 12%; right: auto;" />
</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;">See key 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">
This module will help you to connect with slack to manage slack Conversations.
In addition it also help you to import slack channels and their members into 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 integration with slack</span>
</div>
</div>
<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;">Send and Receive messages from public channels</span>
</div>
</div>
<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;">Synchronizes messages from odoo to slack instantly</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 New Slack App</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Initially you need to goto this link https://api.slack.com/apps/ to create a slack app.</p>
<img src="assets/screenshots/1.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;">Add necessary permission to the app</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
To communicate with slack, you need to allow some permissions, for this go inside the slack app and navigate to the 'OAuth & Permissions'-->'Scopes'-->'User Token Scopes' and enable permissions such as 'mpim:read, im:read, groups:read, channels:read, chat:write, chat:write:user, chat:write:bot, users:read'.
</p>
<img src="assets/screenshots/2.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;">Generate Slack API Token</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
After assign necessary permission we need to reinstall the slack app in workspace again, then we can use 'User OAuth Token' to connect odoo with slack</p>
<img src="assets/screenshots/3.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;">Connecting with Slack</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
With the help of 'User OAuth Token' we can connect with slack, in result slack channels and their members will be loaded into odoo.</p>
<img src="assets/screenshots/4.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;">Auto Synchronization</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Here we uses a scheduled action to Synchronize communication between slack and odoo.</p>
<img src="assets/screenshots/5.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;">Communicating with Slack channels</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
After assign necessary permission we need to reinstall the slack app in workspace again, then we can use 'User OAuth Token' to connect odoo with slack</p>
<img src="assets/screenshots/6.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/15.0/dynamic_accounts_report/" 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/15.0/custom_gantt_view/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;"
src="assets/modules/2.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/15.0/project_custom_gantt/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;"
src="assets/modules/3.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/15.0/account_reports_xlsx/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;"
src="assets/modules/4.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/15.0/base_accounting_kit/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;"
src="assets/modules/5.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/15.0/hr_payroll_community/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;"
src="assets/modules/6.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 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 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 -->

16
odoo_slack_connector/views/mail_channel.xml

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data>
<record id="mail_channel_inherit_form_view" model="ir.ui.view">
<field name="name">mail_channel_inherit_view</field>
<field name="model">mail.channel</field>
<field name="inherit_id" ref="mail.mail_channel_view_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='description']" position="after">
<field name="is_slack" invisible="1"/>
<field name="channel"/>
</xpath>
</field>
</record>
</data>
</odoo>

15
odoo_slack_connector/views/mail_message.xml

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data>
<record id="mail_message_inherit_form_view" model="ir.ui.view">
<field name="name">mail_message_inherit_view</field>
<field name="model">mail.message</field>
<field name="inherit_id" ref="mail.mail_message_view_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='parent_id']" position="after">
<field name="is_slack"/>
</xpath>
</field>
</record>
</data>
</odoo>

48
odoo_slack_connector/views/res_company.xml

@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<data>
<record id="view_form_res_company_inherit" model="ir.ui.view">
<field name="name">res.company.for.inherit</field>
<field name="model">res.company</field>
<field name="inherit_id" ref="base.view_company_form"/>
<field name="arch" type="xml">
<data>
<xpath expr="//page[@name='general_info']" position="after">
<page name="stack_integration"
string="Slack Integration">
<group>
<group>
<field name="token"/>
</group>
<group>
<button name="sync_conversations"
string="Sync Conversations"
type="object"
class="oe_highlight"/>
</group>
</group>
<group>
<field name="slack_users_ids">
<tree editable="bottom" string="All Users"
create="false" delete="0">
<field name="name"/>
<field name="email"/>
<field name="user"/>
</tree>
</field>
</group>
<group>
<field name="slack_channel_ids">
<tree editable="bottom" string="Channels"
create="false" delete="0">
<field name="name"/>
</tree>
</field>
</group>
</page>
</xpath>
</data>
</field>
</record>
</data>
</odoo>

16
odoo_slack_connector/views/res_partner.xml

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data>
<record id="res_partner_form_inherit" model="ir.ui.view">
<field name="name">res.partner.form.inherit</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='vat']" position="after">
<field name="is_slack_user" invisible="1"/>
<field name="slack_user_id"/>
</xpath>
</field>
</record>
</data>
</odoo>

17
odoo_slack_connector/views/res_users.xml

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data>
<record id="res_users_form_inherit" model="ir.ui.view">
<field name="name">res.users.form.inherit</field>
<field name="model">res.users</field>
<field name="inherit_id" ref="base.view_users_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='login']" position="after">
<p>Slack User Id</p>
<field name="is_slack_internal_users" invisible="1"/>
<field name="slack_user_id"/>
</xpath>
</field>
</record>
</data>
</odoo>
Loading…
Cancel
Save