diff --git a/mailer_cloud_connector/README.rst b/mailer_cloud_connector/README.rst new file mode 100644 index 000000000..7cc2b3aef --- /dev/null +++ b/mailer_cloud_connector/README.rst @@ -0,0 +1,41 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Mailer Cloud Connector +======================= +Odoo MailerCloud Connector + +Configuration +============= +Set up your account's api key in odoo and sync your contacts using special properties + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +Developer: Ramees Jaman KT, Contact: odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit `Our Website `__ + +Further information +=================== +HTML Description: ``__ diff --git a/mailer_cloud_connector/__init__.py b/mailer_cloud_connector/__init__.py new file mode 100644 index 000000000..93ac0ca98 --- /dev/null +++ b/mailer_cloud_connector/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-TODAY Cybrosys Technologies(). +# Author: Ramees Jaman (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ + +from . import models diff --git a/mailer_cloud_connector/__manifest__.py b/mailer_cloud_connector/__manifest__.py new file mode 100644 index 000000000..a9ec259d8 --- /dev/null +++ b/mailer_cloud_connector/__manifest__.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-TODAY Cybrosys Technologies(). +# Author: Ramees Jaman (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +{ + 'name': 'Mailer Cloud Connector', + 'version': '16.0.1.0.0', + 'category': 'Email Marketing', + 'summary': 'Odoo Mailer Cloud Connector V16', + 'description': 'Odoo Mailer Cloud Connector v16', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'images': ['static/description/banner.png'], + 'website': 'https://www.cybrosys.com', + 'depends': ['base', 'sale', 'purchase'], + 'data': [ + 'security/ir.model.access.csv', + 'data/property_data.xml', + 'views/mailer_cloud_sync.xml', + 'views/res_partner.xml', + ], + 'assets': { + 'web.assets_backend': [ + 'mailer_cloud_connector/static/src/scss/style.scss', + 'mailer_cloud_connector/static/src/js/form_style.js' + ] + }, + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/mailer_cloud_connector/data/property_data.xml b/mailer_cloud_connector/data/property_data.xml new file mode 100644 index 000000000..9667df1cb --- /dev/null +++ b/mailer_cloud_connector/data/property_data.xml @@ -0,0 +1,79 @@ + + + + city + text + + + country + text + + + department + text + + + email + text + + + industry + text + + + job_title + text + + + last_name + text + + + lead_source + text + + + middle_name + text + + + name + text + + + organization + text + + + phone + text + + + salary + number + + + state + text + + + zip + number + + + \ No newline at end of file diff --git a/mailer_cloud_connector/doc/RELEASE_NOTES.md b/mailer_cloud_connector/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..bde46428b --- /dev/null +++ b/mailer_cloud_connector/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 21.12.2022 +#### Version 16.0.1.0.0 +#### ADD + +- App for connecting with Mailer Cloud Connector diff --git a/mailer_cloud_connector/models/__init__.py b/mailer_cloud_connector/models/__init__.py new file mode 100644 index 000000000..d6f223b29 --- /dev/null +++ b/mailer_cloud_connector/models/__init__.py @@ -0,0 +1,5 @@ +from . import mailer_cloud_sync +from . import mailer_cloud_propeties +from . import mailer_cloud_list +from . import contcat_sync +from . import contacts_inherit diff --git a/mailer_cloud_connector/models/contacts_inherit.py b/mailer_cloud_connector/models/contacts_inherit.py new file mode 100644 index 000000000..e97d23b06 --- /dev/null +++ b/mailer_cloud_connector/models/contacts_inherit.py @@ -0,0 +1,125 @@ +from odoo import fields, models, api +from odoo.exceptions import ValidationError +import requests +import json + + +class InheritContacts(models.Model): + _inherit = 'res.partner' + + partner_type = fields.Char(string='partner_type', + compute='_compute_partner_type') + mailer_cloud_id = fields.Char() + + def _compute_partner_type(self): + # computing partner type based on sale_order_count and purchase_order_count + for rec in self: + if rec.sale_order_count > 0 and rec.purchase_order_count > 0: + rec.partner_type = "Vendor and Customer" + elif rec.sale_order_count > 0: + rec.partner_type = "Customer" + elif rec.purchase_order_count > 0: + rec.partner_type = "Vendor" + else: + rec.partner_type = None + + @api.model + def create(self, vals_list): + res = super(InheritContacts, self).create(vals_list) + contact_sync = self.env['mailer.cloud.api.sync'].search( + [('contact_sync_active', '=', True)], + order='contact_sync_time desc', limit=1) + if contact_sync: + try: + for rec in contact_sync: + contact_details_dict = {} + contact_details_dict.clear() + for i in range( + len(rec.contact_mapping_ids.mapped( + 'property_id.name'))): + if self.env['mailer.cloud.properties'].search( + [('id', '=', + rec.contact_mapping_ids.mapped( + 'property_id')[ + i].id)]).mailer_cloud_id != False: + contact_details_dict['custom_fields'] = { + rec.contact_mapping_ids.mapped( + 'property_id.mailer_cloud_id')[i]: + res.read([ + rec.contact_mapping_ids.mapped( + 'contact_fields')[i]])[0][ + rec.contact_mapping_ids.mapped( + 'contact_fields')[i]] or ' '} + for key, value in contact_details_dict[ + 'custom_fields'].items(): + if isinstance(value, float): + contact_details_dict[ + 'custom_fields'].update( + {key: round(value)}) + + else: + contact_details_dict[ + rec.contact_mapping_ids.mapped( + 'property_id.name')[ + i]] = res.read([ + rec.contact_mapping_ids.mapped( + 'contact_fields')[i]])[0][ + rec.contact_mapping_ids.mapped( + 'contact_fields')[i]] or ' ' + for key, value in contact_details_dict.items(): + if isinstance(value, float): + contact_details_dict.update( + {key: round(value)}) + contact_details_dict[ + 'list_id'] = rec.list_id.mailer_cloud_id + url = "https://cloudapi.mailercloud.com/v1/contacts" + payload = json.dumps(contact_details_dict) + headers = { + 'Authorization': rec.api_key, + 'Content-Type': 'application/json' + } + + response = requests.request("POST", url, headers=headers, + data=payload) + if response.status_code in (400, 401): + raise ValidationError( + response.json()['errors'][0]['message']) + except Exception as e: + raise ValidationError(e) + return res + + def write(self, vals): + res = super(InheritContacts, self).write(vals) + contact_sync = self.env['mailer.cloud.api.sync'].search( + [('contact_sync_active', '=', True)], + order='contact_sync_time desc', limit=1) + if contact_sync: + update_dict = {} + for key, vals in vals.items(): + for rec in contact_sync.contact_mapping_ids: + if key == rec.contact_fields and rec.property_id.mailer_cloud_id != False: + update_dict['custom_fields'] = { + rec.property_id.mailer_cloud_id: round( + vals) if type(vals) == float else vals} + elif key == rec.contact_fields: + update_dict[key] = round(vals) if type( + vals) == float else vals + else: + continue + if len(update_dict) > 0: + try: + url = "https://cloudapi.mailercloud.com/v1/contacts/" + self.email + payload = json.dumps(update_dict) + headers = { + 'Authorization': contact_sync.api_key, + 'Content-Type': 'application/json' + } + + response = requests.request("PUT", url, headers=headers, + data=payload) + + except Exception as e: + raise ValidationError(e) + else: + pass + return res diff --git a/mailer_cloud_connector/models/contcat_sync.py b/mailer_cloud_connector/models/contcat_sync.py new file mode 100644 index 000000000..0a219d454 --- /dev/null +++ b/mailer_cloud_connector/models/contcat_sync.py @@ -0,0 +1,18 @@ +from odoo import fields, models + + +class ContactContactSync(models.Model): + _name = 'contact.sync' + + property_id = fields.Many2one('mailer.cloud.properties', required=True, + string='Mailer Cloud Properties') + contact_fields = fields.Selection( + selection=lambda self: self.dynamic_selection(), required=True, + string='Odoo fields') + sync_id = fields.Many2one('mailer.cloud.api.sync') + + def dynamic_selection(self): + select = [] + for key in self.env['res.partner'].fields_get().keys(): + select.append((key, key.capitalize())) + return select diff --git a/mailer_cloud_connector/models/mailer_cloud_list.py b/mailer_cloud_connector/models/mailer_cloud_list.py new file mode 100644 index 000000000..d7f8a1482 --- /dev/null +++ b/mailer_cloud_connector/models/mailer_cloud_list.py @@ -0,0 +1,9 @@ +from odoo import fields, models + + +class MailerCloudList(models.Model): + _name = 'mailer.cloud.list' + + mailer_cloud_id = fields.Char() + name = fields.Char(string='Name') + authorization_id = fields.Many2one('mailer.cloud.api.sync') diff --git a/mailer_cloud_connector/models/mailer_cloud_propeties.py b/mailer_cloud_connector/models/mailer_cloud_propeties.py new file mode 100644 index 000000000..ce86e7e76 --- /dev/null +++ b/mailer_cloud_connector/models/mailer_cloud_propeties.py @@ -0,0 +1,40 @@ +from odoo import fields, models, api +import json +import requests + + +class MailerCloudList(models.Model): + _name = 'mailer.cloud.properties' + + mailer_cloud_id = fields.Char() + name = fields.Char(string='Property Name', required=True) + type = fields.Selection([ + ('text', 'Text'), + ('number', 'Number'), + ('date', 'Date'), + ('textarea', 'Textarea')], string='Type', required=True) + authorization_id = fields.Many2one('mailer.cloud.api.sync', + ondelete='cascade') + + @api.model + def create(self, vals_list): + res = super(MailerCloudList, self).create(vals_list) + try: + url = "https://cloudapi.mailercloud.com/v1/contact/property" + + payload = json.dumps({ + "name": res.name, + "type": res.type + }) + headers = { + 'Authorization': res.authorization_id.api_key, + 'Content-Type': 'application/json' + } + response = requests.request("POST", url, headers=headers, + data=payload) + res.write({ + 'mailer_cloud_id': response.json()['id'] + }) + except Exception as e: + pass + return res diff --git a/mailer_cloud_connector/models/mailer_cloud_sync.py b/mailer_cloud_connector/models/mailer_cloud_sync.py new file mode 100644 index 000000000..da3197675 --- /dev/null +++ b/mailer_cloud_connector/models/mailer_cloud_sync.py @@ -0,0 +1,212 @@ +from odoo import models, fields +import requests +import json +from odoo.exceptions import ValidationError + + +class MailerCloudApiSync(models.Model): + _name = 'mailer.cloud.api.sync' + + api_key = fields.Char(string='Api Key', required=True) + active = fields.Boolean(string='Check') + email = fields.Char(string='Email') + name = fields.Char(string="Name") + plan = fields.Char(string='Plan') + remaining_contacts = fields.Integer(string='Remaining Contacts') + total_contacts = fields.Integer(string='Total Contacts') + used_contacts = fields.Integer(string='Used Contacts') + list_id = fields.Many2one('mailer.cloud.list', string='List') + contact_mapping_ids = fields.One2many('contact.sync', 'sync_id') + contact_sync_active = fields.Boolean() + contact_sync_time = fields.Datetime() + + def action_sync(self): + # test connection api + self.write({'contact_mapping_ids': [(5, 0, 0)]}) + try: + url = "https://cloudapi.mailercloud.com/v1/client/plan" + + payload = "" + headers = { + 'Authorization': self.api_key, + 'Content-Type': 'application/json' + } + + response = requests.request("GET", url, headers=headers, + data=payload) + if response.status_code == 200: + self.write({ + 'email': response.json()['data']['email'], + 'name': response.json()['data']['name'], + 'plan': response.json()['data']['plan'], + 'remaining_contacts': response.json()['data'][ + 'remaining_contacts'], + 'total_contacts': response.json()['data'][ + 'total_contacts'], + 'used_contacts': response.json()['data']['used_contacts'], + 'active': True, + 'contact_mapping_ids': + [(0, 0, {'property_id': self.env.ref( + 'mailer_cloud_connector.property_data_name').id, + 'contact_fields': 'name'}), + (0, 0, {'property_id': self.env.ref( + 'mailer_cloud_connector.property_data_email').id, + 'contact_fields': 'email'})] + }) + self.get_list(self.id) + self.get_properties() + else: + raise ValidationError(response.json()['errors'][0]['message']) + except Exception as e: + raise ValidationError(e) + + def get_list(self, user): + # getting list of particular api + self.env['mailer.cloud.list'].search([]).unlink() + try: + url = "https://cloudapi.mailercloud.com/v1/lists/search" + + payload = json.dumps({ + "limit": 100, + "list_type": 1, + "page": 1, + "search_name": "", + "sort_field": "name", + "sort_order": "asc" + }) + headers = { + 'Authorization': self.api_key, + 'Content-Type': 'application/json' + } + + response = requests.request("POST", url, headers=headers, + data=payload) + if response.status_code == 200: + for rec in response.json()['data']: + self.env['mailer.cloud.list'].create({ + 'name': rec['name'], + 'mailer_cloud_id': rec['id'], + 'authorization_id': user, + }) + elif response.status_code == 400: + raise ValidationError(response.json()['error']['message']) + elif response.status_code == 401: + raise ValidationError(response.json()['errors'][0]['message']) + except Exception as e: + raise ValidationError(e) + + def get_properties(self): + # getting properties of particular api + try: + url = "https://cloudapi.mailercloud.com/v1/contact/property/search" + + payload = json.dumps({ + "limit": 100, + "page": 1, + "search": "" + }) + headers = { + 'Authorization': self.api_key, + 'Content-Type': 'application/json' + } + + response = requests.request("POST", url, headers=headers, + data=payload) + if response.status_code == 200: + for record in response.json()['data']: + if record['field_value'] not in self.env[ + 'mailer.cloud.properties'].search( + [('authorization_id', '=', False)]).mapped('name'): + if record['field_type'] == 'Text': + type_name = 'text' + elif record['field_type'] == 'Number': + type_name = 'number' + elif record['field_type'] == 'Date': + type_name = 'date' + elif record['field_type'] == 'Textarea': + type_name = 'textarea' + self.env.cr.execute("""INSERT INTO mailer_cloud_properties(mailer_cloud_id,name,type,authorization_id) + VALUES('%s','%s','%s',%s)""" % ( + record['id'], record['field_value'], type_name, + self.id)) + elif response.status_code == 400: + raise ValidationError(response.json()['error']['message']) + elif response.status_code == 401: + raise ValidationError(response.json()['errors'][0]['message']) + except Exception as e: + raise ValidationError(e) + + def action_contact_sync(self): + # for syncing contacts + if self.list_id: + try: + contact_details = [] + contact_details.clear() + res = self.env['res.partner'].search([], limit=50) + for j in res: + contact_details_dict = {} + contact_details_dict.clear() + for i in range( + len(self.contact_mapping_ids.mapped( + 'property_id.name'))): + if self.env['mailer.cloud.properties'].search( + [('id', '=', + self.contact_mapping_ids.mapped( + 'property_id')[ + i].id)]).mailer_cloud_id != False: + contact_details_dict['custom_fields'] = { + self.contact_mapping_ids.mapped( + 'property_id.mailer_cloud_id')[i]: + self.env['res.partner'].search_read( + [('id', '=', j.id)], [ + self.contact_mapping_ids.mapped( + 'contact_fields')[i]])[0][ + self.contact_mapping_ids.mapped( + 'contact_fields')[i]] or ' '} + for key, value in contact_details_dict[ + 'custom_fields'].items(): + if isinstance(value, float): + contact_details_dict[ + 'custom_fields'].update( + {key: round(value)}) + + else: + contact_details_dict[ + self.contact_mapping_ids.mapped( + 'property_id.name')[ + i]] = self.env['res.partner'].search_read( + [('id', '=', j.id)], [ + self.contact_mapping_ids.mapped( + 'contact_fields')[i]])[0][ + self.contact_mapping_ids.mapped( + 'contact_fields')[i]] or ' ' + for key, value in contact_details_dict.items(): + if isinstance(value, float): + contact_details_dict.update( + {key: round(value)}) + contact_details.append(contact_details_dict) + url = "https://cloudapi.mailercloud.com/v1/contacts/batch" + payload = json.dumps({ + "contacts": contact_details, + "list_id": self.list_id.mailer_cloud_id + }) + headers = { + 'Authorization': self.api_key, + 'Content-Type': 'application/json' + } + response = requests.request("POST", url, headers=headers, + data=payload) + if response.status_code == 200: + self.write({ + 'contact_sync_active': True, + 'contact_sync_time': fields.Datetime.now() + }) + elif response.status_code == 400: + raise ValidationError(response.json()['errors']['message']) + elif response.status_code == 401: + raise ValidationError( + response.json()['errors'][0]['message']) + except Exception as e: + raise ValidationError(e) + else: + raise ValidationError("Please Choose a List") diff --git a/mailer_cloud_connector/security/ir.model.access.csv b/mailer_cloud_connector/security/ir.model.access.csv new file mode 100644 index 000000000..29457d8da --- /dev/null +++ b/mailer_cloud_connector/security/ir.model.access.csv @@ -0,0 +1,5 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +mailer_cloud_connector.access_mailer_cloud_api_sync,access_mailer_cloud_api_sync,mailer_cloud_connector.model_mailer_cloud_api_sync,base.group_user,1,1,1,1 +mailer_cloud_connector.access_mailer_cloud_list,access_mailer_cloud_list,mailer_cloud_connector.model_mailer_cloud_list,base.group_user,1,1,1,1 +mailer_cloud_connector.access_mailer_cloud_properties,access_mailer_cloud_properties,mailer_cloud_connector.model_mailer_cloud_properties,base.group_user,1,1,1,1 +mailer_cloud_connector.access_contact_sync,access_contact_sync,mailer_cloud_connector.model_contact_sync,base.group_user,1,1,1,1 \ No newline at end of file diff --git a/mailer_cloud_connector/static/description/assets/icons/check.png b/mailer_cloud_connector/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/icons/check.png differ diff --git a/mailer_cloud_connector/static/description/assets/icons/chevron.png b/mailer_cloud_connector/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/icons/chevron.png differ diff --git a/mailer_cloud_connector/static/description/assets/icons/cogs.png b/mailer_cloud_connector/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/icons/cogs.png differ diff --git a/mailer_cloud_connector/static/description/assets/icons/consultation.png b/mailer_cloud_connector/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/icons/consultation.png differ diff --git a/mailer_cloud_connector/static/description/assets/icons/ecom-black.png b/mailer_cloud_connector/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/icons/ecom-black.png differ diff --git a/mailer_cloud_connector/static/description/assets/icons/education-black.png b/mailer_cloud_connector/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/icons/education-black.png differ diff --git a/mailer_cloud_connector/static/description/assets/icons/hotel-black.png b/mailer_cloud_connector/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/icons/hotel-black.png differ diff --git a/mailer_cloud_connector/static/description/assets/icons/license.png b/mailer_cloud_connector/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/icons/license.png differ diff --git a/mailer_cloud_connector/static/description/assets/icons/lifebuoy.png b/mailer_cloud_connector/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/icons/lifebuoy.png differ diff --git a/mailer_cloud_connector/static/description/assets/icons/manufacturing-black.png b/mailer_cloud_connector/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/icons/manufacturing-black.png differ diff --git a/mailer_cloud_connector/static/description/assets/icons/pos-black.png b/mailer_cloud_connector/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/icons/pos-black.png differ diff --git a/mailer_cloud_connector/static/description/assets/icons/puzzle.png b/mailer_cloud_connector/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/icons/puzzle.png differ diff --git a/mailer_cloud_connector/static/description/assets/icons/restaurant-black.png b/mailer_cloud_connector/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/icons/restaurant-black.png differ diff --git a/mailer_cloud_connector/static/description/assets/icons/service-black.png b/mailer_cloud_connector/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/icons/service-black.png differ diff --git a/mailer_cloud_connector/static/description/assets/icons/trading-black.png b/mailer_cloud_connector/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/icons/trading-black.png differ diff --git a/mailer_cloud_connector/static/description/assets/icons/training.png b/mailer_cloud_connector/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/icons/training.png differ diff --git a/mailer_cloud_connector/static/description/assets/icons/update.png b/mailer_cloud_connector/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/icons/update.png differ diff --git a/mailer_cloud_connector/static/description/assets/icons/user.png b/mailer_cloud_connector/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/icons/user.png differ diff --git a/mailer_cloud_connector/static/description/assets/icons/wrench.png b/mailer_cloud_connector/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/icons/wrench.png differ diff --git a/mailer_cloud_connector/static/description/assets/misc/categories.png b/mailer_cloud_connector/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/misc/categories.png differ diff --git a/mailer_cloud_connector/static/description/assets/misc/check-box.png b/mailer_cloud_connector/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/misc/check-box.png differ diff --git a/mailer_cloud_connector/static/description/assets/misc/compass.png b/mailer_cloud_connector/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/misc/compass.png differ diff --git a/mailer_cloud_connector/static/description/assets/misc/corporate.png b/mailer_cloud_connector/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/misc/corporate.png differ diff --git a/mailer_cloud_connector/static/description/assets/misc/customer-support.png b/mailer_cloud_connector/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/misc/customer-support.png differ diff --git a/mailer_cloud_connector/static/description/assets/misc/cybrosys-logo.png b/mailer_cloud_connector/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/misc/cybrosys-logo.png differ diff --git a/mailer_cloud_connector/static/description/assets/misc/features.png b/mailer_cloud_connector/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/misc/features.png differ diff --git a/mailer_cloud_connector/static/description/assets/misc/logo.png b/mailer_cloud_connector/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/misc/logo.png differ diff --git a/mailer_cloud_connector/static/description/assets/misc/pictures.png b/mailer_cloud_connector/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/misc/pictures.png differ diff --git a/mailer_cloud_connector/static/description/assets/misc/pie-chart.png b/mailer_cloud_connector/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/misc/pie-chart.png differ diff --git a/mailer_cloud_connector/static/description/assets/misc/right-arrow.png b/mailer_cloud_connector/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/misc/right-arrow.png differ diff --git a/mailer_cloud_connector/static/description/assets/misc/star.png b/mailer_cloud_connector/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/misc/star.png differ diff --git a/mailer_cloud_connector/static/description/assets/misc/support.png b/mailer_cloud_connector/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/misc/support.png differ diff --git a/mailer_cloud_connector/static/description/assets/misc/whatsapp.png b/mailer_cloud_connector/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/misc/whatsapp.png differ diff --git a/mailer_cloud_connector/static/description/assets/modules/1.png b/mailer_cloud_connector/static/description/assets/modules/1.png new file mode 100644 index 000000000..5238bdeab Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/modules/1.png differ diff --git a/mailer_cloud_connector/static/description/assets/modules/2.png b/mailer_cloud_connector/static/description/assets/modules/2.png new file mode 100644 index 000000000..1ae7cfe3b Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/modules/2.png differ diff --git a/mailer_cloud_connector/static/description/assets/modules/3.png b/mailer_cloud_connector/static/description/assets/modules/3.png new file mode 100644 index 000000000..3c3ff1afb Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/modules/3.png differ diff --git a/mailer_cloud_connector/static/description/assets/modules/4.png b/mailer_cloud_connector/static/description/assets/modules/4.png new file mode 100644 index 000000000..3fae4631e Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/modules/4.png differ diff --git a/mailer_cloud_connector/static/description/assets/modules/5.gif b/mailer_cloud_connector/static/description/assets/modules/5.gif new file mode 100644 index 000000000..2a5f8e659 Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/modules/5.gif differ diff --git a/mailer_cloud_connector/static/description/assets/modules/6.png b/mailer_cloud_connector/static/description/assets/modules/6.png new file mode 100644 index 000000000..7f2815273 Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/modules/6.png differ diff --git a/mailer_cloud_connector/static/description/assets/modules/approval_image.png b/mailer_cloud_connector/static/description/assets/modules/approval_image.png new file mode 100644 index 000000000..84fe94e80 Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/modules/approval_image.png differ diff --git a/mailer_cloud_connector/static/description/assets/modules/budget_image.png b/mailer_cloud_connector/static/description/assets/modules/budget_image.png new file mode 100644 index 000000000..fe6aa6fe4 Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/modules/budget_image.png differ diff --git a/mailer_cloud_connector/static/description/assets/modules/export_image.png b/mailer_cloud_connector/static/description/assets/modules/export_image.png new file mode 100644 index 000000000..4e4ea0e51 Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/modules/export_image.png differ diff --git a/mailer_cloud_connector/static/description/assets/modules/magento_image.png b/mailer_cloud_connector/static/description/assets/modules/magento_image.png new file mode 100644 index 000000000..39de0820f Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/modules/magento_image.png differ diff --git a/mailer_cloud_connector/static/description/assets/modules/pos_image.png b/mailer_cloud_connector/static/description/assets/modules/pos_image.png new file mode 100644 index 000000000..c5932894b Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/modules/pos_image.png differ diff --git a/mailer_cloud_connector/static/description/assets/modules/shopify_image.png b/mailer_cloud_connector/static/description/assets/modules/shopify_image.png new file mode 100644 index 000000000..c6d92c16d Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/modules/shopify_image.png differ diff --git a/mailer_cloud_connector/static/description/assets/screenshots/Screenshot1.png b/mailer_cloud_connector/static/description/assets/screenshots/Screenshot1.png new file mode 100644 index 000000000..3d1105673 Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/screenshots/Screenshot1.png differ diff --git a/mailer_cloud_connector/static/description/assets/screenshots/Screenshot2.png b/mailer_cloud_connector/static/description/assets/screenshots/Screenshot2.png new file mode 100644 index 000000000..62132b3a4 Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/screenshots/Screenshot2.png differ diff --git a/mailer_cloud_connector/static/description/assets/screenshots/Screenshot3.png b/mailer_cloud_connector/static/description/assets/screenshots/Screenshot3.png new file mode 100644 index 000000000..59bd7dd86 Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/screenshots/Screenshot3.png differ diff --git a/mailer_cloud_connector/static/description/assets/screenshots/hero.gif b/mailer_cloud_connector/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..631770211 Binary files /dev/null and b/mailer_cloud_connector/static/description/assets/screenshots/hero.gif differ diff --git a/mailer_cloud_connector/static/description/banner.png b/mailer_cloud_connector/static/description/banner.png new file mode 100644 index 000000000..7f44b3cfd Binary files /dev/null and b/mailer_cloud_connector/static/description/banner.png differ diff --git a/mailer_cloud_connector/static/description/cybro_logo.png b/mailer_cloud_connector/static/description/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/mailer_cloud_connector/static/description/cybro_logo.png differ diff --git a/mailer_cloud_connector/static/description/icon.png b/mailer_cloud_connector/static/description/icon.png new file mode 100644 index 000000000..7497103e8 Binary files /dev/null and b/mailer_cloud_connector/static/description/icon.png differ diff --git a/mailer_cloud_connector/static/description/images/logo.png b/mailer_cloud_connector/static/description/images/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/mailer_cloud_connector/static/description/images/logo.png differ diff --git a/mailer_cloud_connector/static/description/index.html b/mailer_cloud_connector/static/description/index.html new file mode 100644 index 000000000..0b7641d25 --- /dev/null +++ b/mailer_cloud_connector/static/description/index.html @@ -0,0 +1,645 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ Mailer Cloud Connector

+

+ Odoo Mailer Cloud Connector V16

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

+ Explore This + Module

+
+ + + + +
+
+ +
+

+ Overview +

+
+
+
+ The Mailer Cloud Connector module helps to connect the all Odoo contact + with Mailer Cloud.You can create Mailer Cloud properties from Odoo. + After contact syncing contact create and update action of Odoo will be + connected + with Mailer Cloud. +
+
+ + + +
+
+ +
+

+ Features +

+
+
+
+
+ +
+ Connect Multiple Apis + You can sync Odoo contacts with multiple apis +
+
+
+
+
+ +
+ Connect Contact create and update action with Mailer Cloud. + After Connecting with Odoo the contact creation and update of Odoo action automatically connected with Mailer Cloud +
+
+
+
+ + + +
+
+ +
+

+ Screenshots +

+
+
+
+
+

+ Test Connection

+ +
+
+

+ Mailer Cloud Property creation area

+ +
+
+

+ Connecting Odoo contacts with Mailer Cloud

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

+ Related + Products +

+
+
+
+

Suggested Products

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

+ Our Services +

+
+ +
+
+
+
+ +
+
+ Odoo + Customization
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Support
+
+ + +
+
+ +
+
+ Hire + Odoo + Developer
+
+ +
+
+ +
+
+ Odoo + Integration
+
+ +
+
+ +
+
+ Odoo + Migration
+
+ + +
+
+ +
+
+ Odoo + Consultancy
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+ +
+ + + + + +
+
+ +
+

+ Our + Industries +

+
+ +
+
+
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+ +
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+ +
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+ +
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+ +
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+ +
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+ +
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+ +
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

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

+ Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? + Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+ +91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+ \ No newline at end of file diff --git a/mailer_cloud_connector/static/src/scss/style.scss b/mailer_cloud_connector/static/src/scss/style.scss new file mode 100644 index 000000000..1a9ea287f --- /dev/null +++ b/mailer_cloud_connector/static/src/scss/style.scss @@ -0,0 +1,3 @@ +.o_form_view.o_xxl_form_view .mailer_cloud .o_form_sheet_bg > .o_form_sheet { + width: 60% !important; +} \ No newline at end of file diff --git a/mailer_cloud_connector/views/mailer_cloud_sync.xml b/mailer_cloud_connector/views/mailer_cloud_sync.xml new file mode 100644 index 000000000..cc8cce446 --- /dev/null +++ b/mailer_cloud_connector/views/mailer_cloud_sync.xml @@ -0,0 +1,96 @@ + + + mailer.cloud.api.sync.form.view + mailer.cloud.api.sync + +
+
+
+ + + + + +
+ + + + + + + + + + + + + + +