@ -0,0 +1,46 @@ |
|||||
|
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg |
||||
|
:target: https://www.gnu.org/licenses/agpl-3.0-standalone.html |
||||
|
:alt: License: AGPL-3 |
||||
|
|
||||
|
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 <https://cybrosys.com/>`__ |
||||
|
|
||||
|
License |
||||
|
------- |
||||
|
Affero General Public License v3.0 (AGPL v3) |
||||
|
(https://www.gnu.org/licenses/agpl-3.0-standalone.html) |
||||
|
|
||||
|
Credits |
||||
|
------- |
||||
|
Developer: (V17) Afra K, Contact : odoo@cybrosys.com |
||||
|
|
||||
|
Contacts |
||||
|
-------- |
||||
|
* Mail Contact : odoo@cybrosys.com |
||||
|
* Website : https://cybrosys.com |
||||
|
|
||||
|
Bug Tracker |
||||
|
----------- |
||||
|
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. |
||||
|
|
||||
|
Maintainer |
||||
|
========== |
||||
|
.. image:: https://cybrosys.com/images/logo.png |
||||
|
:target: https://cybrosys.com |
||||
|
|
||||
|
This module is maintained by Cybrosys Technologies. |
||||
|
|
||||
|
For support and more information, please visit `Our Website <https://cybrosys.com/>`__ |
||||
|
|
||||
|
Further information |
||||
|
=================== |
||||
|
HTML Description: `<static/description/index.html>`__ |
@ -0,0 +1,22 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-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 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 <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from . import models |
@ -0,0 +1,52 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-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 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 <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
{ |
||||
|
'name': 'Mailer Cloud Connector', |
||||
|
'version': '17.0.1.0.0', |
||||
|
'category': 'Email Marketing', |
||||
|
'summary': 'Connect the odoo to the mailer cloud.', |
||||
|
'description': 'This module helps to connect the odoo to the mailer cloud and to ' |
||||
|
'synchronize the contacts', |
||||
|
'author': 'Cybrosys Techno Solutions', |
||||
|
'company': 'Cybrosys Techno Solutions', |
||||
|
'maintainer': 'Cybrosys Techno Solutions', |
||||
|
'website': 'https://www.cybrosys.com', |
||||
|
'depends': ['base', 'sale', 'purchase'], |
||||
|
'data': [ |
||||
|
'security/ir.model.access.csv', |
||||
|
'data/property_data.xml', |
||||
|
'views/mailer_cloud_sync_views.xml', |
||||
|
'views/res_partner_views.xml', |
||||
|
], |
||||
|
'assets': { |
||||
|
'web.assets_backend': [ |
||||
|
'mailer_cloud_connector/static/src/scss/style.scss', |
||||
|
'mailer_cloud_connector/static/src/js/form_style.js' |
||||
|
] |
||||
|
}, |
||||
|
'images': ['static/description/banner.jpg'], |
||||
|
'license': 'AGPL-3', |
||||
|
'installable': True, |
||||
|
'auto_install': False, |
||||
|
'application': False, |
||||
|
} |
||||
|
|
@ -0,0 +1,81 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo> |
||||
|
<data> |
||||
|
<!-- properties data for mailer cloud --> |
||||
|
<record id="property_data_city" |
||||
|
model="mailer.cloud.properties"> |
||||
|
<field name="name">city</field> |
||||
|
<field name="type">text</field> |
||||
|
</record> |
||||
|
<record id="property_data_country" |
||||
|
model="mailer.cloud.properties"> |
||||
|
<field name="name">country</field> |
||||
|
<field name="type">text</field> |
||||
|
</record> |
||||
|
<record id="property_data_department" |
||||
|
model="mailer.cloud.properties"> |
||||
|
<field name="name">department</field> |
||||
|
<field name="type">text</field> |
||||
|
</record> |
||||
|
<record id="property_data_email" |
||||
|
model="mailer.cloud.properties"> |
||||
|
<field name="name">email</field> |
||||
|
<field name="type">text</field> |
||||
|
</record> |
||||
|
<record id="property_data_industry" |
||||
|
model="mailer.cloud.properties"> |
||||
|
<field name="name">industry</field> |
||||
|
<field name="type">text</field> |
||||
|
</record> |
||||
|
<record id="property_data_job_title" |
||||
|
model="mailer.cloud.properties"> |
||||
|
<field name="name">job_title</field> |
||||
|
<field name="type">text</field> |
||||
|
</record> |
||||
|
<record id="property_data_last_name" |
||||
|
model="mailer.cloud.properties"> |
||||
|
<field name="name">last_name</field> |
||||
|
<field name="type">text</field> |
||||
|
</record> |
||||
|
<record id="property_data_lead_source" |
||||
|
model="mailer.cloud.properties"> |
||||
|
<field name="name">lead_source</field> |
||||
|
<field name="type">text</field> |
||||
|
</record> |
||||
|
<record id="property_data_middle_name" |
||||
|
model="mailer.cloud.properties"> |
||||
|
<field name="name">middle_name</field> |
||||
|
<field name="type">text</field> |
||||
|
</record> |
||||
|
<record id="property_data_name" |
||||
|
model="mailer.cloud.properties"> |
||||
|
<field name="name">name</field> |
||||
|
<field name="type">text</field> |
||||
|
</record> |
||||
|
<record id="property_data_organization" |
||||
|
model="mailer.cloud.properties"> |
||||
|
<field name="name">organization</field> |
||||
|
<field name="type">text</field> |
||||
|
</record> |
||||
|
<record id="property_data_phone" |
||||
|
model="mailer.cloud.properties"> |
||||
|
<field name="name">phone</field> |
||||
|
<field name="type">text</field> |
||||
|
</record> |
||||
|
<record id="property_data_salary" |
||||
|
model="mailer.cloud.properties"> |
||||
|
<field name="name">salary</field> |
||||
|
<field name="type">number</field> |
||||
|
</record> |
||||
|
<record id="property_data_state" |
||||
|
model="mailer.cloud.properties"> |
||||
|
<field name="name">state</field> |
||||
|
<field name="type">text</field> |
||||
|
</record> |
||||
|
<record id="property_data_zip" |
||||
|
model="mailer.cloud.properties"> |
||||
|
<field name="name">zip</field> |
||||
|
<field name="type">number</field> |
||||
|
</record> |
||||
|
</data> |
||||
|
</odoo> |
@ -0,0 +1,7 @@ |
|||||
|
## Module <mailer_cloud_connector> |
||||
|
|
||||
|
#### 24.01.2024 |
||||
|
#### Version 17.0.1.0.0 |
||||
|
#### ADD |
||||
|
|
||||
|
- Initial commit for Mailer Cloud Connector |
@ -0,0 +1,26 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-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 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 <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from . import mailer_cloud_sync |
||||
|
from . import mailer_cloud_propeties |
||||
|
from . import mailer_cloud_list |
||||
|
from . import contcat_sync |
||||
|
from . import res_partner |
@ -0,0 +1,47 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-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 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 <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class ContactContactSync(models.Model): |
||||
|
""" Model to synchronize the contacts""" |
||||
|
_name = 'contact.sync' |
||||
|
_description = "Contact Sync" |
||||
|
|
||||
|
property_id = fields.Many2one( |
||||
|
'mailer.cloud.properties', |
||||
|
required=True, string='Mailer Cloud Properties', |
||||
|
help='Reference to the Mailer Cloud properties associated with this record.') |
||||
|
contact_fields = fields.Selection( |
||||
|
selection=lambda self: self.dynamic_selection(), |
||||
|
required=True, string='Odoo Fields', |
||||
|
help='Selection of Odoo fields to be synchronized with Mailer Cloud.') |
||||
|
sync_id = fields.Many2one( |
||||
|
'mailer.cloud.api.sync', string='Synchronization', |
||||
|
help='Reference to the Mailer Cloud API synchronization associated with this record.') |
||||
|
|
||||
|
def dynamic_selection(self): |
||||
|
""" Generate a dynamic selection for Odoo fields. |
||||
|
|
||||
|
This method dynamically generates a selection list for Odoo fields |
||||
|
based on the available fields in the 'res.partner' model.""" |
||||
|
return [(key, key.capitalize()) for key in self.env['res.partner'].fields_get().keys()] |
@ -0,0 +1,41 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-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 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 <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class MailerCloudList(models.Model): |
||||
|
""" Model representing a list in the Mailer Cloud.""" |
||||
|
_name = 'mailer.cloud.list' |
||||
|
_description = 'List of Mail Cloud' |
||||
|
|
||||
|
mailer_cloud = fields.Char( |
||||
|
string='Mailer Cloud ID', |
||||
|
help='Unique identifier for the Mailer Cloud associated ' |
||||
|
'with this record.') |
||||
|
name = fields.Char( |
||||
|
string='Name', |
||||
|
help='Name or title associated with this record.') |
||||
|
authorization_id = fields.Many2one( |
||||
|
'mailer.cloud.api.sync', |
||||
|
string='Authorization', |
||||
|
help='Reference to the Mailer Cloud API synchronization ' |
||||
|
'associated with this record.') |
@ -0,0 +1,79 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-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 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 <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
import json |
||||
|
import requests |
||||
|
from odoo import api, fields, models |
||||
|
|
||||
|
|
||||
|
class MailerCloudList(models.Model): |
||||
|
""" |
||||
|
Model representing properties in Mailer Cloud associated with Odoo records. |
||||
|
""" |
||||
|
_name = 'mailer.cloud.properties' |
||||
|
_description = 'List of Mail Cloud properties' |
||||
|
|
||||
|
mailer_cloud = fields.Char(string='Mailer Cloud', |
||||
|
help="Mailer Cloud property identifier.") |
||||
|
name = fields.Char( |
||||
|
string='Property Name', required=True, |
||||
|
help="Name of the Mailer Cloud property.") |
||||
|
type = fields.Selection( |
||||
|
[ |
||||
|
('text', 'Text'), |
||||
|
('number', 'Number'), |
||||
|
('date', 'Date'), |
||||
|
('textarea', 'Textarea') |
||||
|
], |
||||
|
string='Type', required=True, |
||||
|
help="Type of the Mailer Cloud property.") |
||||
|
authorization_id = fields.Many2one( |
||||
|
'mailer.cloud.api.sync', ondelete='cascade', |
||||
|
help="Authorization associated with this property.") |
||||
|
|
||||
|
@api.model |
||||
|
def create(self, vals_list): |
||||
|
""" |
||||
|
Override the create method to synchronize property creation with Mailer Cloud. |
||||
|
|
||||
|
:param vals_list: Dictionary of values for creating the record. |
||||
|
:return: Newly created record. |
||||
|
""" |
||||
|
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': response.json()['id'] |
||||
|
}) |
||||
|
except Exception: |
||||
|
pass |
||||
|
return res |
@ -0,0 +1,279 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-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 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 <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
import json |
||||
|
import requests |
||||
|
from odoo import models, fields |
||||
|
from odoo.exceptions import ValidationError |
||||
|
|
||||
|
|
||||
|
class MailerCloudApiSync(models.Model): |
||||
|
""" |
||||
|
Model representing the synchronization configuration for Mailer Cloud API. |
||||
|
|
||||
|
This model stores information about the Mailer Cloud API synchronization, including the API key, |
||||
|
synchronization status, user details, plan information, associated mailing list, contact mappings, |
||||
|
and synchronization activity. |
||||
|
""" |
||||
|
_name = 'mailer.cloud.api.sync' |
||||
|
_description = 'Mail Cloud API' |
||||
|
|
||||
|
api_key = fields.Char( |
||||
|
string='Api Key', |
||||
|
required=True, |
||||
|
help='API key for connecting to Mailer Cloud.') |
||||
|
active = fields.Boolean( |
||||
|
string='Active', |
||||
|
help='Check to activate the Mailer Cloud API synchronization.') |
||||
|
email = fields.Char( |
||||
|
string='Email', |
||||
|
help='Email associated with the Mailer Cloud API user.') |
||||
|
name = fields.Char( |
||||
|
string="Name", |
||||
|
help='Name associated with the Mailer Cloud API user.') |
||||
|
plan = fields.Char( |
||||
|
string='Plan', |
||||
|
help='Current plan of the Mailer Cloud API user.') |
||||
|
remaining_contacts = fields.Integer( |
||||
|
string='Remaining Contacts', |
||||
|
help='Remaining contact quota in the Mailer Cloud API user\'s plan.') |
||||
|
total_contacts = fields.Integer( |
||||
|
string='Total Contacts', |
||||
|
help='Total contact quota in the Mailer Cloud API user\'s plan.') |
||||
|
used_contacts = fields.Integer( |
||||
|
string='Used Contacts', |
||||
|
help='Number of contacts used in the Mailer Cloud API user\'s plan.') |
||||
|
list_id = fields.Many2one( |
||||
|
'mailer.cloud.list', string='Mailing List', |
||||
|
help='Default mailing list associated with the Mailer Cloud API user.') |
||||
|
contact_mapping_ids = fields.One2many( |
||||
|
'contact.sync', 'sync_id', string='Contact Mapping Ids', |
||||
|
help='Mappings between Odoo contact fields and Mailer Cloud properties for synchronization.') |
||||
|
contact_sync_active = fields.Boolean(string='Contact Sync Active', |
||||
|
help='Check to activate contact synchronization with Mailer Cloud.') |
||||
|
contact_sync_time = fields.Datetime(string='Contact Sync time', |
||||
|
help='Timestamp of the last contact synchronization activity.') |
||||
|
|
||||
|
def action_sync(self): |
||||
|
""" |
||||
|
Test connection to Mailer Cloud API and synchronize information. |
||||
|
|
||||
|
This function tests the connection to the Mailer Cloud API and retrieves information |
||||
|
about the API user's plan. It updates the relevant fields in the current record and triggers |
||||
|
synchronization of lists and properties associated with the API user. |
||||
|
|
||||
|
:raises: ValidationError if there is an issue with the API connection or synchronization process. |
||||
|
""" |
||||
|
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): |
||||
|
""" |
||||
|
Retrieve Mailer Cloud lists associated with the current API user. |
||||
|
|
||||
|
This function sends a request to the Mailer Cloud API to retrieve lists related to the |
||||
|
current API's authorization. It processes the response and creates records in the 'mailer.cloud.list' |
||||
|
model in Odoo. |
||||
|
|
||||
|
:param user: The authorization user associated with the lists. |
||||
|
:raises: ValidationError if there is an issue with the retrieval or record creation process. |
||||
|
""" |
||||
|
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': 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): |
||||
|
""" |
||||
|
Retrieve Mailer Cloud contact properties associated with the current API. |
||||
|
|
||||
|
This function sends a request to the Mailer Cloud API to retrieve contact properties |
||||
|
related to the current API's authorization. It processes the response and inserts |
||||
|
new properties into the 'mailer.cloud.properties' model in Odoo. |
||||
|
|
||||
|
:raises: ValidationError if there is an issue with the retrieval or insertion process. |
||||
|
""" |
||||
|
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,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): |
||||
|
""" |
||||
|
Synchronize contacts with Mailer Cloud. |
||||
|
|
||||
|
This function synchronizes contacts from Odoo's 'res.partner' model to Mailer Cloud. |
||||
|
It constructs the contact details and sends a batch request to the Mailer Cloud |
||||
|
API for contact synchronization. |
||||
|
|
||||
|
:raises: ValidationError if there is an issue with the synchronization process. |
||||
|
""" |
||||
|
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: |
||||
|
contact_details_dict['custom_fields'] = { |
||||
|
self.contact_mapping_ids.mapped( |
||||
|
'property_id.mailer_cloud')[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 |
||||
|
}) |
||||
|
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") |
@ -0,0 +1,159 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-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 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 <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
import json |
||||
|
import requests |
||||
|
from odoo import api, fields, models |
||||
|
from odoo.exceptions import ValidationError |
||||
|
|
||||
|
|
||||
|
class InheritContacts(models.Model): |
||||
|
""" |
||||
|
Extends the base 'res.partner' model to include additional fields related to Mailer Cloud integration. |
||||
|
|
||||
|
This class inherits from the 'res.partner' model and adds custom fields for Mailer Cloud integration, |
||||
|
including 'partner_type' and 'mailer_cloud'. |
||||
|
""" |
||||
|
_inherit = 'res.partner' |
||||
|
|
||||
|
partner_type = fields.Char( |
||||
|
string='Partner Type', compute='_compute_partner_type', |
||||
|
help='Type of the partner, computed based on specific criteria.') |
||||
|
mailer_cloud = fields.Char(string='Mailer Cloud', |
||||
|
help='Identifier for the partner in ' |
||||
|
'Mailer Cloud.') |
||||
|
|
||||
|
def _compute_partner_type(self): |
||||
|
""" |
||||
|
Compute method to determine the 'partner_type' based on specific criteria. |
||||
|
|
||||
|
This method computes the 'partner_type' field based on certain conditions or criteria. |
||||
|
""" |
||||
|
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): |
||||
|
""" |
||||
|
Create method to extend the creation of 'res.partner' records and synchronize data with Mailer Cloud. |
||||
|
|
||||
|
This method is called when creating a new 'res.partner' record. It extends the base creation process |
||||
|
to include synchronization with Mailer Cloud, if contact synchronization is active for any associated API. |
||||
|
|
||||
|
:param vals_list: List of dictionaries containing values for the new 'res.partner' record(s). |
||||
|
:return: Created 'res.partner' record(s). |
||||
|
:raises: ValidationError if there is an issue with the Mailer Cloud API synchronization. |
||||
|
""" |
||||
|
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: |
||||
|
contact_details_dict['custom_fields'] = { |
||||
|
rec.contact_mapping_ids.mapped('property_id.mailer_cloud')[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 |
||||
|
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): |
||||
|
""" |
||||
|
Extend the standard write method for 'res.partner' records and synchronize updates with Mailer Cloud. |
||||
|
|
||||
|
This method is called when updating an existing 'res.partner' record. It extends the base write process |
||||
|
to include synchronization with Mailer Cloud if contact synchronization is active for any associated API. |
||||
|
|
||||
|
:param vals: Dictionary of field-value pairs to update for the 'res.partner' record. |
||||
|
:return: Result of the standard write method. |
||||
|
:raises: ValidationError if there is an issue with the Mailer Cloud API synchronization. |
||||
|
""" |
||||
|
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: |
||||
|
update_dict['custom_fields'] = { |
||||
|
rec.property_id.mailer_cloud: 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' |
||||
|
} |
||||
|
requests.request("PUT", url, headers=headers, data=payload) |
||||
|
except Exception as e: |
||||
|
raise ValidationError(e) |
||||
|
else: |
||||
|
pass |
||||
|
return res |
|
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 80 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 589 B |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 565 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 967 B |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 43 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 912 KiB |
After Width: | Height: | Size: 228 KiB |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 49 KiB |
After Width: | Height: | Size: 85 KiB |
After Width: | Height: | Size: 81 KiB |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 67 KiB |
After Width: | Height: | Size: 77 KiB |
After Width: | Height: | Size: 85 KiB |
After Width: | Height: | Size: 88 KiB |
After Width: | Height: | Size: 237 KiB |
After Width: | Height: | Size: 71 KiB |
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 64 KiB |
After Width: | Height: | Size: 67 KiB |
After Width: | Height: | Size: 136 KiB |
After Width: | Height: | Size: 103 KiB |
After Width: | Height: | Size: 108 KiB |
After Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 88 KiB |
After Width: | Height: | Size: 15 KiB |
@ -0,0 +1,729 @@ |
|||||
|
<!DOCTYPE html> |
||||
|
<html lang="en"> |
||||
|
<head> |
||||
|
<meta charset="UTF-8"> |
||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
||||
|
<title>Odoo App 3 Index</title> |
||||
|
<!-- Bootstrap CSS --> |
||||
|
<link rel="stylesheet" |
||||
|
href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" |
||||
|
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" |
||||
|
crossorigin="anonymous"> |
||||
|
<link rel="stylesheet" |
||||
|
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"> |
||||
|
<link rel="preconnect" href="https://fonts.googleapis.com"> |
||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
||||
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" |
||||
|
rel="stylesheet"> |
||||
|
</head> |
||||
|
<body> |
||||
|
<section> |
||||
|
<div class="container" |
||||
|
style="font-family: 'Inter', sans-serif !important;background-color: #fff !important;"> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12 col-md-12 col-lg-12 d-flex justify-content-between flex-wrap align-items-sm-center" |
||||
|
style="border-bottom:1px solid rgba(0, 0, 0, 0.22)"> |
||||
|
<div class="my-3"> |
||||
|
<img src="assets/misc/Cybrosys R.png" |
||||
|
style="width:auto !important; height:40px !important"> |
||||
|
</div> |
||||
|
<div class="my-3 d-flex align-items-center"> |
||||
|
<div class="text-center" |
||||
|
style="background-color:#017E84 !important;font-size: 0.8rem !important; color:#fff !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;"> |
||||
|
Community |
||||
|
</div> |
||||
|
<div class="text-center" |
||||
|
style="background-color:#875A7B !important; color:#fff !important;font-size: 0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important;min-width: 120px !important;"> |
||||
|
Enterprise |
||||
|
</div> |
||||
|
<div class="text-center" |
||||
|
style="background-color:#7C7BAD !important; color:#fff !important;font-size: 0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;"> |
||||
|
Odoo.sh |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12 col-md-12 col-lg-12 text-center d-flex align-items-center flex-column" |
||||
|
style="margin: 80px 0px !important;"> |
||||
|
<h1 style="font-size: 2.8rem;font-weight: 700; color: |
||||
|
#1A202C;"> |
||||
|
Mailer Cloud Connector</h1> |
||||
|
<p class="my-3 mb-4" |
||||
|
style="max-width: 80%; font-weight: 400 !important; line-height: 32px; color: #718096;"> |
||||
|
This module helps you to connect the odoo to the mailer cloud. |
||||
|
</p> |
||||
|
<div style="width: 80%; margin-top: 3rem;"> |
||||
|
<img src="assets/screenshots/hero.gif" |
||||
|
class="img-responsive" width="100%" height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container mt-5 mb-5"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
||||
|
<p class="m-0" |
||||
|
style="font-weight: 600; font-size: 24px; color:#714b67 !important"> |
||||
|
Key Highlights |
||||
|
</p> |
||||
|
</div> |
||||
|
<div class="row py-4"> |
||||
|
<div class="col-md-6 col-sm-12 p-3"> |
||||
|
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
||||
|
background: #FFF; |
||||
|
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
||||
|
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
||||
|
display: flex; justify-content: center; align-items: center; |
||||
|
margin-right: 10px; flex-shrink: 0;"> |
||||
|
<i class="fa-solid fa-star " |
||||
|
style="color: #fff;font-size:14px;"></i> |
||||
|
</div> |
||||
|
<div> |
||||
|
<p style="color: #1A202C;font-weight: 600; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;"> |
||||
|
Connect Multiple Apis |
||||
|
</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-6 col-sm-12 p-3"> |
||||
|
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
||||
|
background: #FFF; |
||||
|
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
||||
|
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
||||
|
display: flex; justify-content: center; align-items: center; |
||||
|
margin-right: 10px; flex-shrink: 0;"> |
||||
|
<i class="fa-solid fa-star " |
||||
|
style="color: #fff;font-size:14px;"></i> |
||||
|
</div> |
||||
|
<div> |
||||
|
<p style="color: #1A202C;font-weight: 600; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;"> |
||||
|
|
||||
|
Connect Contact create and update action with Mailer Cloud. |
||||
|
</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container rounded"> |
||||
|
<ul class="nav nav-tabs d-flex" |
||||
|
style="width: fit-content;margin: 0 auto;gap: 1rem;"> |
||||
|
<li class="col text-center py-2 text-nowrap " |
||||
|
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"> |
||||
|
<a |
||||
|
class="active show" data-toggle="tab" href="#tab1" |
||||
|
style="color: #fff;font-weight: 500; background-color: #714B67; text-decoration: none;"> |
||||
|
<i class="fa-regular fa-image pr-2" |
||||
|
style="color: #fff;"></i> |
||||
|
Screenshots</a></li> |
||||
|
<li class="col text-center py-2 text-nowrap " |
||||
|
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"> |
||||
|
<a |
||||
|
data-toggle="tab" href="#tab2" |
||||
|
style="color: #fff;font-weight: 500; text-decoration: none;"><i |
||||
|
class="fa-solid fa-star pr-2" |
||||
|
style="color: #fff;"></i>Features</a></li> |
||||
|
<li class="col text-center py-2 text-nowrap " |
||||
|
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"> |
||||
|
<a |
||||
|
data-toggle="tab" href="#tab3" |
||||
|
style="color: #fff;font-weight: 500; text-decoration: none; background-color: #714B67;"><i |
||||
|
class="fa-solid fa-book-open pr-2" |
||||
|
style="color: #fff;"></i>Released Notes</a></li> |
||||
|
</ul> |
||||
|
<div class="tab-content" |
||||
|
style="background-color: rgba(121, 113, 119, 0.04);"> |
||||
|
<div id="tab1" class="tab-pane fade in active show"> |
||||
|
<div class="col-lg-12 py-2" |
||||
|
style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/image4.png" |
||||
|
class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Create the account in the mailer cloud and go to the Account |
||||
|
</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" |
||||
|
style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/image5.png" |
||||
|
class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Under the Integration there is a button API Keys |
||||
|
</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" |
||||
|
style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/image6.png" |
||||
|
class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Create a new API key. |
||||
|
</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" |
||||
|
style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/image7.png" |
||||
|
class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
New API Key |
||||
|
</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" |
||||
|
style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/image1.png" |
||||
|
class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Test Connection |
||||
|
</h4> |
||||
|
<p class="m-0" style="color:#718096"> Add the Api Key and test the connection</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" |
||||
|
style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/image2.png" |
||||
|
class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Mailer Cloud Property creation area |
||||
|
</h4> |
||||
|
<p class="m-0" style="color:#718096"> After test connection successful we can create mailer cloud properties</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" |
||||
|
style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/image3.png" |
||||
|
class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Connecting Odoo contacts with Mailer Cloud |
||||
|
</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div id="tab2" class="tab-pane fade"> |
||||
|
<div class="col-mg-12" style="padding: 1rem 4rem;"> |
||||
|
<ul style="list-style: none; padding: 1rem 0;font-weight: 500;"> |
||||
|
<li class="py-3" |
||||
|
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<span style="margin-right: 12px;"><img |
||||
|
src="assets/misc/star (1) 2.svg" |
||||
|
alt="" |
||||
|
width="16px"></span>You can sync Odoo contacts with multiple Apis. |
||||
|
</li> |
||||
|
<li class="py-3" |
||||
|
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<span style="margin-right: 12px;"><img |
||||
|
src="assets/misc/star (1) 2.svg" |
||||
|
alt="" |
||||
|
width="16px"></span> |
||||
|
After Connecting with Odoo the contact creation and update of Odoo action automatically connected with Mailer Cloud |
||||
|
</li> |
||||
|
<li class="py-3" |
||||
|
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<span style="margin-right: 12px;"><img |
||||
|
src="assets/misc/star (1) 2.svg" |
||||
|
alt="" |
||||
|
width="16px"></span>Support in Community, Enterprise & Odoo.sh. |
||||
|
</li> |
||||
|
|
||||
|
</ul> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div id="tab3" class="tab-pane fade"> |
||||
|
<div class="col-mg-12 active" style="padding: 1rem 4rem;"> |
||||
|
<div class="py-3" |
||||
|
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="d-flex mb-3" |
||||
|
style="font-size: 0.8rem; font-weight: 500;"><span>Version |
||||
|
17.0.1.0.0</span><span |
||||
|
class="px-2">|</span><span |
||||
|
style="color: #714B67;font-weight: 600;">Released on:27th Jan 2024</span> |
||||
|
</div> |
||||
|
<p class="m-0" |
||||
|
style=" color:#718096!important; font-size:1rem !important;line-height: 28px;"> |
||||
|
Initial commit for Mailer Cloud Connector</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container mt-5"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5"> |
||||
|
<p class="m-0" |
||||
|
style="font-weight: 600; font-size: 24px; color:#000 !important"> |
||||
|
Related Products</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div id="myCarousel" class="carousel slide py-3" data-ride="carousel"> |
||||
|
<div class="carousel-inner"> |
||||
|
<div class="carousel-item active"> |
||||
|
<div class="row p-4"> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/17.0/base_accounting_kit/" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px; "> |
||||
|
<img src="assets/modules/1.gif" alt="" width="100%" height="auto"> |
||||
|
|
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold">Odoo 17 Full Accounting |
||||
|
Kit</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/17.0/invoice_format_editor/" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px; "> |
||||
|
<img src="assets/modules/2.png" alt="" width="100%" height="auto"> |
||||
|
|
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold">Invoice Format |
||||
|
Editor</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/17.0/inventory_barcode_scanning/" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px; "> |
||||
|
<img src="assets/modules/3.png" alt="" width="100%" height="auto"> |
||||
|
|
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold">Barcode scanning in |
||||
|
Inventory</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="carousel-item"> |
||||
|
<div class="row p-4"> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/17.0/whatsapp_redirect/" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px; "> |
||||
|
<img src="assets/modules/4.jpg" alt="" width="100%" height="auto"> |
||||
|
|
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold">Send Whatsapp |
||||
|
Message</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/17.0/base_account_budget/" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px;"> |
||||
|
<img src="assets/modules/5.jpg" alt="" width="100%" height="auto"> |
||||
|
|
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold">Budget Management</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/17.0/product_barcode/" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px;"> |
||||
|
<img src="assets/modules/6.png" alt="" width="100%" height="auto"> |
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold">Product Barcode |
||||
|
Generator</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<a class="carousel-control-prev" href="#myCarousel" 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="#myCarousel" 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 class="container mt-5"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
||||
|
<p class="m-0" |
||||
|
style="font-weight: 600; font-size: 24px; color:#000 !important"> |
||||
|
Our Services</p> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container my-5"> |
||||
|
<div class="row py-3"> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#13EA36 ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/cogs.png" |
||||
|
alt="service-icon" width="38px" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo |
||||
|
Customization</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#DBC711; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/wrench.png" |
||||
|
alt="service-icon" width="38px" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo |
||||
|
Implementation</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#FF6B6B ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/lifebuoy.png" |
||||
|
alt="service-icon" width="38px" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo |
||||
|
Support</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#FFA801 ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/user.png" |
||||
|
alt="service-icon" width="38px" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Hire |
||||
|
Odoo Developer</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
||||
|
|
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#54A0FF; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/puzzle.png" |
||||
|
alt="service-icon" width="38px" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo |
||||
|
Integration</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#6D7680 ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/update.png" |
||||
|
alt="service-icon" width="38px" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo |
||||
|
Migration</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#786FA6 ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/consultation.png" |
||||
|
alt="service-icon" width="38px" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo |
||||
|
Consultancy</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#F8A5C2 ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/training.png" |
||||
|
alt="service-icon" width="38px" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo |
||||
|
Implementation</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#E6BE26; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/license.png" |
||||
|
alt="service-icon" width="38px" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo |
||||
|
Licensing Consultancy</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container mt-5"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
||||
|
<p class="m-0" |
||||
|
style="font-weight: 600; font-size: 24px; color:#000 !important"> |
||||
|
Our Industries</p> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container"> |
||||
|
<div class="row my-5 py-4"> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100 " |
||||
|
style="border-right: 1px solid rgb(209, 209, 209); border-bottom: 1px solid rgb(209, 209, 209); padding: 30px; box-shadow: 6px 0 10px rgba(228, 227, 227, 0.373);"> |
||||
|
<img src="assets/icons/trading-black.png" width="42px" |
||||
|
height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">Trading</p> |
||||
|
<p>Easily procure and sell your products</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-right: 1px solid rgb(209, 209, 209);border-bottom: 1px solid rgb(209, 209, 209); padding: 30px;"> |
||||
|
<img src="assets/icons/pos-black.png" width="42px" |
||||
|
height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">POS</p> |
||||
|
<p>Easy configuration and convivial experience</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-right: 1px solid rgb(209, 209, 209);border-bottom: 1px solid rgba(0, 0, 0, 0.2); padding: 30px; box-shadow: 0 5px 10px rgba(228, 227, 227, 0.373)"> |
||||
|
<img src="assets/icons/education-black.png" width="42px" |
||||
|
height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;"> |
||||
|
Education</p> |
||||
|
<p>A platform for educational management</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-bottom: 1px solid rgb(209, 209, 209); padding: 30px; "> |
||||
|
<img src="assets/icons/manufacturing-black.png" |
||||
|
width="42px" height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;"> |
||||
|
Manufacturing</p> |
||||
|
<p>Plan, track and schedule your operations</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px;"> |
||||
|
<img src="assets/icons/ecom-black.png" width="42px" |
||||
|
height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">E-commerce & |
||||
|
Website</p> |
||||
|
<p>Mobile friendly, awe-inspiring product pages</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px;box-shadow: 0 -5px 10px rgba(228, 227, 227, 0.373);"> |
||||
|
<img src="assets/icons/service-black.png" width="42px" |
||||
|
height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">Service |
||||
|
Management</p> |
||||
|
<p>Keep track of services and invoice</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px; "> |
||||
|
<img src="assets/icons/restaurant-black.png" |
||||
|
width="42px" height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;"> |
||||
|
Restaurant</p> |
||||
|
<p>Run your bar or restaurant methodically</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style=" padding: 30px;box-shadow: -5px 0 10px rgba(228, 227, 227, 0.373);"> |
||||
|
<img src="assets/icons/hotel-black.png" width="42px" |
||||
|
height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">Hotel |
||||
|
Management</p> |
||||
|
<p>An all-inclusive hotel management application</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container mt-5"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5"> |
||||
|
<p class="m-0" |
||||
|
style="font-weight: 600; font-size: 24px; color:#000 !important"> |
||||
|
Support</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container my-5"> |
||||
|
<div class="row" style="background-color: #FFFAFE;"> |
||||
|
<div class="col-md-6 pb-4 d-flex align-items-center justify-content-center" |
||||
|
style="border-right: 1px solid #D9D9D9;"> |
||||
|
<div style="padding: 30px;"> |
||||
|
<div class="d-flex align-items-center"> |
||||
|
<img src="assets/misc/support (1) 1.svg" alt="" |
||||
|
width="60px" style="margin-right: 12px;"> |
||||
|
<div style="padding: 0px 8px;"> |
||||
|
<span |
||||
|
style="color: #714B67;font-size: 24px;font-weight: 600;padding-bottom: 1rem;">Need |
||||
|
Help?</span> |
||||
|
<p class="m-0" style="color:#718096;">Got |
||||
|
questions or need help? Get in touch.</p> |
||||
|
<div style="font-weight: 400;"><span><img |
||||
|
src="assets/misc/support-email.svg" |
||||
|
alt="" |
||||
|
width="18px" |
||||
|
style="filter: invert(1);margin-right: 0.8rem;"></span>odoo@cybrosys.com |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-6 pb-4 d-flex align-items-center justify-content-center"> |
||||
|
<div style="padding: 30px;"> |
||||
|
<div class="d-flex align-items-center"> |
||||
|
<img src="assets/misc/whatsapp 1.svg" alt="" |
||||
|
width="60px" style="margin-right: 12px;"> |
||||
|
<div> |
||||
|
<span style="color: #714B67;font-size: 24px;font-weight: 600;">WhatsApp</span> |
||||
|
<p class="m-0" style="color:#718096;">Say hi to |
||||
|
us on WhatsApp!</p> |
||||
|
<div style="font-weight: 400; font-size: 16px;"><span><img |
||||
|
src="assets/misc/phone.svg" |
||||
|
alt="" width="14px" |
||||
|
style="filter: invert(1); margin-right: 0.8rem;"></span>+91 |
||||
|
99456767686 |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</section> |
||||
|
<!-- Optional JavaScript --> |
||||
|
<!-- jQuery first, then Popper.js, then Bootstrap JS --> |
||||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> |
||||
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> |
||||
|
</body> |
||||
|
</html> |
@ -0,0 +1,3 @@ |
|||||
|
.o_form_view.o_xxl_form_view .mailer_cloud .o_form_sheet_bg > .o_form_sheet { |
||||
|
width: 60% !important; |
||||
|
} |
@ -0,0 +1,102 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo> |
||||
|
<!-- Form view for the mailer cloud api sync --> |
||||
|
<record id="mailer_cloud_api_sync_view_form" model="ir.ui.view"> |
||||
|
<field name="name">mailer.cloud.api.sync.view.form</field> |
||||
|
<field name="model">mailer.cloud.api.sync</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<form class="mailer_cloud"> |
||||
|
<header> |
||||
|
<button name="action_sync" string="Test Connection" |
||||
|
type="object" class="oe_highlight" |
||||
|
invisible = "active"/> |
||||
|
</header> |
||||
|
<sheet> |
||||
|
<group> |
||||
|
<field name="api_key" style="max-width:50%;" |
||||
|
readonly = "active" |
||||
|
password="True"/> |
||||
|
<field name="active" invisible="1"/> |
||||
|
</group> |
||||
|
<br/> |
||||
|
<group name="account_details" string="Account Details" |
||||
|
invisible = "not active"> |
||||
|
<group> |
||||
|
<group class="details1"> |
||||
|
<field name="email" readonly="1"/> |
||||
|
<field name="total_contacts" readonly="1"/> |
||||
|
<field name="contact_sync_active" invisible="1"/> |
||||
|
</group> |
||||
|
<group class="details2"> |
||||
|
<field name="used_contacts" readonly="1"/> |
||||
|
<field name="remaining_contacts" readonly="1"/> |
||||
|
</group> |
||||
|
</group> |
||||
|
</group> |
||||
|
<notebook> |
||||
|
<page string="Contact Sync" |
||||
|
invisible = "not active"> |
||||
|
<label for="list_id"/> |
||||
|
<field name="list_id" |
||||
|
domain="[('authorization_id','=',active_id)]"/> |
||||
|
<field name="contact_mapping_ids"> |
||||
|
<tree editable="bottom"> |
||||
|
<field name="property_id" |
||||
|
context="{'default_authorization_id': parent.id}" |
||||
|
domain="['|', ('authorization_id','=',False), ('authorization_id','=',parent.id)]"/> |
||||
|
<field name="contact_fields"/> |
||||
|
</tree> |
||||
|
</field> |
||||
|
<button name="action_contact_sync" |
||||
|
class="oe_highlight" |
||||
|
string="Sync Contacts" type="object" |
||||
|
invisible = "contact_sync_active"/> |
||||
|
</page> |
||||
|
</notebook> |
||||
|
</sheet> |
||||
|
</form> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<!-- Tree view for the mailer cloud api sync --> |
||||
|
<record id="mailer_cloud_api_sync_tree_view" model="ir.ui.view"> |
||||
|
<field name="name">mailer.cloud.api.sync.tree.view</field> |
||||
|
<field name="model">mailer.cloud.api.sync</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<tree> |
||||
|
<field name="email"/> |
||||
|
<field name="used_contacts"/> |
||||
|
<field name="remaining_contacts"/> |
||||
|
<field name="total_contacts"/> |
||||
|
</tree> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!-- Menu and action view for the mailer cloud api sync --> |
||||
|
<record id="mailer_cloud_api_key_sync_action" |
||||
|
model="ir.actions.act_window"> |
||||
|
<field name="name">Mailer Cloud Sync</field> |
||||
|
<field name="res_model">mailer.cloud.api.sync</field> |
||||
|
<field name="view_mode">tree,form</field> |
||||
|
</record> |
||||
|
<menuitem id="main_mailer_cloud_menu" |
||||
|
name="Mailer Cloud Connector" web_icon="mailer_cloud_connector,static/description/icon.png"/> |
||||
|
<menuitem id="mailer_cloud_api_sync_menu" |
||||
|
name="Configuration" |
||||
|
parent="main_mailer_cloud_menu" |
||||
|
action="mailer_cloud_api_key_sync_action" |
||||
|
sequence="1"/> |
||||
|
|
||||
|
<!-- Form view for the mailer cloud properties --> |
||||
|
<record id="mailer_cloud_property_form_view" model="ir.ui.view"> |
||||
|
<field name="name">mailer.cloud.property.form.view</field> |
||||
|
<field name="model">mailer.cloud.properties</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<form> |
||||
|
<group> |
||||
|
<field name="name"/> |
||||
|
<field name="type"/> |
||||
|
</group> |
||||
|
</form> |
||||
|
</field> |
||||
|
</record> |
||||
|
</odoo> |
@ -0,0 +1,15 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo> |
||||
|
<!-- Inherited form view for the res partner --> |
||||
|
<record id="view_partner_form" model="ir.ui.view"> |
||||
|
<field name="name">res.partner.view.form.mail.cloud.connector</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='email']" position="after"> |
||||
|
<field name="supplier_rank" invisible="1"/> |
||||
|
<field name="customer_rank" invisible="1"/> |
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
|
</odoo> |