Browse Source

Jun 01 [ADD] : Initial Commit 'dropbox_integration'

pull/257/head
AjmalCybro 2 years ago
parent
commit
fddb66fefc
  1. 43
      dropbox_integration/README.rst
  2. 24
      dropbox_integration/__init__.py
  3. 54
      dropbox_integration/__manifest__.py
  4. 7
      dropbox_integration/doc/RELEASE_NOTES.md
  5. 37
      dropbox_integration/hooks.py
  6. 23
      dropbox_integration/models/__init__.py
  7. 65
      dropbox_integration/models/dropbox.py
  8. 102
      dropbox_integration/models/res_config_settings.py
  9. 4
      dropbox_integration/security/ir.model.access.csv
  10. BIN
      dropbox_integration/static/description/assets/icons/check.png
  11. BIN
      dropbox_integration/static/description/assets/icons/chevron.png
  12. BIN
      dropbox_integration/static/description/assets/icons/cogs.png
  13. BIN
      dropbox_integration/static/description/assets/icons/consultation.png
  14. BIN
      dropbox_integration/static/description/assets/icons/ecom-black.png
  15. BIN
      dropbox_integration/static/description/assets/icons/education-black.png
  16. BIN
      dropbox_integration/static/description/assets/icons/hotel-black.png
  17. BIN
      dropbox_integration/static/description/assets/icons/license.png
  18. BIN
      dropbox_integration/static/description/assets/icons/lifebuoy.png
  19. BIN
      dropbox_integration/static/description/assets/icons/manufacturing-black.png
  20. BIN
      dropbox_integration/static/description/assets/icons/pos-black.png
  21. BIN
      dropbox_integration/static/description/assets/icons/puzzle.png
  22. BIN
      dropbox_integration/static/description/assets/icons/restaurant-black.png
  23. BIN
      dropbox_integration/static/description/assets/icons/service-black.png
  24. BIN
      dropbox_integration/static/description/assets/icons/trading-black.png
  25. BIN
      dropbox_integration/static/description/assets/icons/training.png
  26. BIN
      dropbox_integration/static/description/assets/icons/update.png
  27. BIN
      dropbox_integration/static/description/assets/icons/user.png
  28. BIN
      dropbox_integration/static/description/assets/icons/wrench.png
  29. BIN
      dropbox_integration/static/description/assets/misc/categories.png
  30. BIN
      dropbox_integration/static/description/assets/misc/check-box.png
  31. BIN
      dropbox_integration/static/description/assets/misc/compass.png
  32. BIN
      dropbox_integration/static/description/assets/misc/corporate.png
  33. BIN
      dropbox_integration/static/description/assets/misc/customer-support.png
  34. BIN
      dropbox_integration/static/description/assets/misc/cybrosys-logo.png
  35. BIN
      dropbox_integration/static/description/assets/misc/features.png
  36. BIN
      dropbox_integration/static/description/assets/misc/logo.png
  37. BIN
      dropbox_integration/static/description/assets/misc/pictures.png
  38. BIN
      dropbox_integration/static/description/assets/misc/pie-chart.png
  39. BIN
      dropbox_integration/static/description/assets/misc/right-arrow.png
  40. BIN
      dropbox_integration/static/description/assets/misc/star.png
  41. BIN
      dropbox_integration/static/description/assets/misc/support.png
  42. BIN
      dropbox_integration/static/description/assets/misc/whatsapp.png
  43. BIN
      dropbox_integration/static/description/assets/modules/1.gif
  44. BIN
      dropbox_integration/static/description/assets/modules/2.png
  45. BIN
      dropbox_integration/static/description/assets/modules/3.png
  46. BIN
      dropbox_integration/static/description/assets/modules/4.png
  47. BIN
      dropbox_integration/static/description/assets/modules/5.png
  48. BIN
      dropbox_integration/static/description/assets/modules/6.png
  49. BIN
      dropbox_integration/static/description/assets/screenshots/1.png
  50. BIN
      dropbox_integration/static/description/assets/screenshots/10.png
  51. BIN
      dropbox_integration/static/description/assets/screenshots/11.png
  52. BIN
      dropbox_integration/static/description/assets/screenshots/2.png
  53. BIN
      dropbox_integration/static/description/assets/screenshots/3.png
  54. BIN
      dropbox_integration/static/description/assets/screenshots/4.png
  55. BIN
      dropbox_integration/static/description/assets/screenshots/5.png
  56. BIN
      dropbox_integration/static/description/assets/screenshots/6.png
  57. BIN
      dropbox_integration/static/description/assets/screenshots/7.png
  58. BIN
      dropbox_integration/static/description/assets/screenshots/8.png
  59. BIN
      dropbox_integration/static/description/assets/screenshots/9.png
  60. BIN
      dropbox_integration/static/description/assets/screenshots/hero.gif
  61. BIN
      dropbox_integration/static/description/banner.png
  62. BIN
      dropbox_integration/static/description/icon.png
  63. 715
      dropbox_integration/static/description/index.html
  64. BIN
      dropbox_integration/static/src/img/dropbox_icon.png
  65. BIN
      dropbox_integration/static/src/img/file.png
  66. 78
      dropbox_integration/static/src/js/dropbox.js
  67. 57
      dropbox_integration/static/src/scss/dropbox.scss
  68. 15
      dropbox_integration/static/src/xml/dropbox_dashboard.xml
  69. 14
      dropbox_integration/views/dashboard_view.xml
  70. 52
      dropbox_integration/views/res_config_settings_views.xml
  71. 23
      dropbox_integration/wizard/__init__.py
  72. 49
      dropbox_integration/wizard/authentication_wizard.py
  73. 35
      dropbox_integration/wizard/authentication_wizard_views.xml
  74. 73
      dropbox_integration/wizard/dropbox_upload.py
  75. 23
      dropbox_integration/wizard/dropbox_upload_views.xml

43
dropbox_integration/README.rst

@ -0,0 +1,43 @@
.. 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
Dropbox Integration
===================
The Dropbox files are displayed in this module. as well as in Dropbox
Configuration
=============
The user should create Dropbox client id, Dropbox secret from Dropbox Developer page with appropriate scopes.
Folder Id is the Name of folder in Dropbox.
Generate the auth code from Configuration settings and save the credentials.
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
Credits
-------
Developer: Aslam A K @cybrosys, 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>`__

24
dropbox_integration/__init__.py

@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Aslam A K( 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 <http://www.gnu.org/licenses/>.
#
###############################################################################
from . import models
from . import wizard
from .hooks import uninstall_hook

54
dropbox_integration/__manifest__.py

@ -0,0 +1,54 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Aslam A K( 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 <http://www.gnu.org/licenses/>.
#
###############################################################################
{
'name': "Dropbox Integration",
'version': "16.0.1.0.0'",
'category': "Document Management",
'summary': """ Dropbox Odoo Integration""",
'description': """This module was developed to upload to Dropbox as well
as access files from Dropbox in Odoo.""",
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': "https://www.cybrosys.com",
'depends': ['base', 'sale'],
'data': [
'security/ir.model.access.csv',
'views/res_config_settings_views.xml',
'views/dashboard_view.xml',
'wizard/authentication_wizard_views.xml',
'wizard/dropbox_upload_views.xml'
],
'assets': {
'web.assets_backend': [
'/dropbox_integration/static/src/js/dropbox.js',
'/dropbox_integration/static/src/xml/dropbox_dashboard.xml',
'/dropbox_integration/static/src/scss/dropbox.scss',
]},
'license': 'AGPL-3',
'external_dependencies': {'python': ['dropbox']},
'installable': True,
'application': True,
'auto_install': False,
'images': ['static/description/banner.png'],
'uninstall_hook': 'uninstall_hook',
}

7
dropbox_integration/doc/RELEASE_NOTES.md

@ -0,0 +1,7 @@
## Module <dropbox_integration>
#### 13.04.2023
#### Version 16.0.1.0.0
#### ADD
- Initial commit for Dropbox Integration

37
dropbox_integration/hooks.py

@ -0,0 +1,37 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Aslam A K( 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 <http://www.gnu.org/licenses/>.
#
###############################################################################
from odoo import SUPERUSER_ID, api
def uninstall_hook(cr, registry):
"""
Deletes System Parameters
"""
env = api.Environment(cr, SUPERUSER_ID, {})
env['ir.config_parameter'].sudo().search(
[('key', '=', 'dropbox_integration.client_id')]).unlink()
env['ir.config_parameter'].sudo().search(
[('key', '=', 'dropbox_integration.client_secret')]).unlink()
env['ir.config_parameter'].sudo().search(
[('key', '=', 'dropbox_integration.folder_id')]).unlink()
env['ir.config_parameter'].sudo().search(
[('key', '=', 'dropbox_integration.dropbox_button')]).unlink()

23
dropbox_integration/models/__init__.py

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

65
dropbox_integration/models/dropbox.py

@ -0,0 +1,65 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Aslam A K( 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 <http://www.gnu.org/licenses/>.
#
###############################################################################
import dropbox
from odoo import fields, models
class DropboxDashboard(models.Model):
"""
Dashboard model and stores the credentials
"""
_name = 'dropbox.dashboard'
_description = 'Stores Dropbox Credentials'
dropbox_client_id = fields.Char(string='Dropbox Client ID',
help="Dropbox Client ID")
dropbox_client_secret = fields.Char(string='Dropbox Client Secret',
help="Dropbox Client Secret")
dropbox_refresh_token = fields.Char(string='Dropbox Refresh Token',
help="Dropbox Access Token")
dropbox_access_token = fields.Char(string='Dropbox Access Token',
help="Dropbox Refresh Token")
dropbox_expire_date = fields.Datetime(string='Dropbox Expiry Date',
help="Dropbox Token expiry date")
def action_import_files(self):
"""
Import files from dropbox
"""
try:
access = self.env['dropbox.dashboard'].search([], order='id desc',
limit=1)
if not access:
return False
dbx = dropbox.Dropbox(app_key=access.dropbox_client_id,
app_secret=access.dropbox_client_secret,
oauth2_refresh_token=access.dropbox_refresh_token)
path = self.env['ir.config_parameter'].get_param(
'dropbox_integration.folder_id')
response = dbx.files_list_folder(path=path)
data = {}
for files in response.entries:
file = dbx.files_get_temporary_link(path=files.path_lower)
data[file.metadata.name] = file.link
return data
except Exception as e:
return ['e', e]

102
dropbox_integration/models/res_config_settings.py

@ -0,0 +1,102 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Aslam A K( 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 <http://www.gnu.org/licenses/>.
#
###############################################################################
import dropbox
from odoo import fields, models
from odoo.exceptions import ValidationError
class ResConfigSettings(models.TransientModel):
"""
Generates the refresh token
"""
_inherit = 'res.config.settings'
dropbox_client_id = fields.Char(string='dropbox Client ID', copy=False,
config_parameter=
'dropbox_integration.client_id',
help="Dropbox Client ID")
dropbox_client_secret = fields.Char(string='dropbox Client Secret',
copy=False,
config_parameter=
'dropbox_integration.client_secret',
help="Dropbox Client Secret")
dropbox_access_token = fields.Char(string='dropbox Access Token',
help="Dropbox Access Token")
dropbox_refresh_token = fields.Char(string='dropbox Refresh Token',
help="Dropbox Refresh Token")
dropbox_token_validity = fields.Datetime(string='dropbox Token Validity',
help="Dropbox Token Validity")
dropbox_folder_id = fields.Char(string='Folder ID',
config_parameter=
'dropbox_integration.folder_id',
help="Dropbox Folder ID")
dropbox_button = fields.Boolean(
config_parameter='dropbox_integration.dropbox_button',
default=False, help="Dropbox Button")
def action_get_dropbox_auth_code(self):
"""
Open a wizard to set up dropbox Authorization code
"""
return {
'type': 'ir.actions.act_window',
'name': 'Dropbox Authorization Wizard',
'res_model': 'authentication.wizard',
'view_mode': 'form',
'target': 'new',
'context': {'dropbox_auth': True}
}
def get_dropbox_auth_url(self):
"""
Return dropbox authorization url.
"""
dbx_auth = dropbox.oauth.DropboxOAuth2FlowNoRedirect(
self.env['ir.config_parameter'].get_param(
'dropbox_integration.client_id'),
self.env['ir.config_parameter'].get_param(
'dropbox_integration.client_secret'),
token_access_type='offline')
return dbx_auth.start()
def set_dropbox_refresh_token(self, auth_code):
"""
Generate and set the dropbox refresh token from authorization code.
"""
try:
client_id = self.env['ir.config_parameter'].get_param(
'dropbox_integration.client_id')
client_secret = self.env['ir.config_parameter'].get_param(
'dropbox_integration.client_secret')
dbx_auth = dropbox.oauth.DropboxOAuth2FlowNoRedirect(
client_id, client_secret,
token_access_type='offline')
outh_result = dbx_auth.finish(auth_code)
self.env['dropbox.dashboard'].create({
'dropbox_client_id': client_id,
'dropbox_client_secret': client_secret,
'dropbox_refresh_token': outh_result.refresh_token,
'dropbox_access_token': outh_result.access_token,
})
except Exception as e:
raise ValidationError(
'Failed to Connect with Dropbox ( %s .)' % e)

4
dropbox_integration/security/ir.model.access.csv

@ -0,0 +1,4 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_authentication_wizard,access.authentication.wizard,model_authentication_wizard,base.group_user,1,1,1,1
access_dropbox_upload,access.dropbox.upload,model_dropbox_upload,base.group_user,1,1,1,1
access_dropbox_dashboard,access.dropbox.dashboard,model_dropbox_dashboard,base.group_user,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_authentication_wizard access.authentication.wizard model_authentication_wizard base.group_user 1 1 1 1
3 access_dropbox_upload access.dropbox.upload model_dropbox_upload base.group_user 1 1 1 1
4 access_dropbox_dashboard access.dropbox.dashboard model_dropbox_dashboard base.group_user 1 1 1 1

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
dropbox_integration/static/description/assets/modules/1.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 284 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
dropbox_integration/static/description/assets/modules/5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

BIN
dropbox_integration/static/description/assets/screenshots/10.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

BIN
dropbox_integration/static/description/assets/screenshots/11.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
dropbox_integration/static/description/assets/screenshots/7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

BIN
dropbox_integration/static/description/assets/screenshots/8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 645 KiB

BIN
dropbox_integration/static/description/assets/screenshots/9.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 KiB

BIN
dropbox_integration/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

BIN
dropbox_integration/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

715
dropbox_integration/static/description/index.html

@ -0,0 +1,715 @@
<div style="background-color: #714B67; min-height: 600px; width: 100%; padding: 15px; position: relative;">
<!-- TITLE BAR -->
<div
style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;">
<img src="/assets/misc/cybrosys-logo.png" width="42" height="42"
style="width: 42px; height: 42px;"/>
<div>
<div style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Community
</div>
<div style="color: #875A7B; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Enterprise
</div>
</div>
</div>
<!-- END OF TITLE BAR -->
<!-- APP HERO -->
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;">
Dropbox Integration</h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">
Dropbox Integration allows to upload and download the files in Dropbox.
</p>
<!-- END OF APP HERO -->
<img src="assets/screenshots/hero.gif"
style="width: 75%; height: auto; position: absolute; margin-left: auto; margin-right: auto; top: 45%; left: 12%; right: auto;"/>
</div>
<!-- NAVIGATION SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px; margin-top: 300px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="/assets/misc/compass.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Explore This
Module</h2>
</div>
<div class="row my-4" style="font-family: 'Montserrat', sans-serif;">
<div class="col-sm-12 col-md-6 my-3">
<a href="#overview">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Overview</span>
<span
style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">Learn
more about this
module</span>
</div>
<img src="/assets/misc/right-arrow.png" width="36"
height="36"/>
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#features">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Features</span>
<span
style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View
features of this
module</span>
</div>
<img src="/assets/misc/right-arrow.png" width="36"
height="36"/>
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#screenshots">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Screenshots</span>
<span
style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View
screenshots for this
module</span>
</div>
<img src="/assets/misc/right-arrow.png" width="36"
height="36"/>
</div>
</a>
</div>
</div>
<!-- END OF NAVIGATION SECTION -->
<!-- OVERVIEW SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"
id="overview">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="/assets/misc/pie-chart.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Overview
</h2>
</div>
<div class="row"
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 py-4">
Dropbox is a file hosting service operated by the American company
Dropbox, Inc. Integrating Dropbox with Odoo can provide users with a
more convenient way to store and access their files within the Odoo
platform.
</div>
</div>
<!-- END OF OVERVIEW SECTION -->
<!-- FEATURES SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"
id="features">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/features.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Features
</h2>
</div>
<div class="row"
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center"
style="margin-top: 40px; margin-bottom: 40px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Easy File Management</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Displays all files from Dropbox</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Upload files to Dropbox</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Dynamic Search Bar</span>
</div>
</div>
</div>
<!-- END OF FEATURES SECTION -->
<!-- SCREENSHOTS SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"
id="screenshots">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pictures.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Screenshots
</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Dropbox api creation
</h3>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Register the app on Dropbox Developers page</p>
<img src="assets/screenshots/1.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
API key and secret
</h3>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Redirect URIs as return web address </p>
<img src="assets/screenshots/2.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Dropbox Scopes
</h3>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Read Write Scopes to access files.</p>
<img src="assets/screenshots/3.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Token setup
</h3>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Fill up the credentials and set up the dropbox connection with
auth code.
Goto --> Settngs--> Integrations
Provide dropbox folder name as Folder Id </p>
<img src="assets/screenshots/4.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
</h3>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Click the get auth code to generate auth code</p>
<img src="assets/screenshots/5.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
</h3>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Copy the Auth code</p>
<img src="assets/screenshots/6.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
</h3>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Paste the auth code generated from get auth code</p>
<img src="assets/screenshots/7.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Dropbox Integration Dashboard view</h3>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
</p>
<img src="assets/screenshots/8.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Upload files</h3>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Upload any files to Dropbox from here</p>
<img src="assets/screenshots/9.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Search console example </h3>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
</p>
<img src="assets/screenshots/10.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Search console example</h3>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
</p>
<img src="assets/screenshots/11.png" class="img-thumbnail">
</div>
</div>
</div>
<!-- END OF SCREENSHOTS SECTION -->
<!-- RELATED PRODUCTS -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="/assets/misc/categories.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Related
Products
</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div id="demo1" class="row carousel slide" data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner" style="padding: 30px;">
<div class="carousel-item" style="min-height: 198.656px;">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/auto_database_backup/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/1.gif">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/crm_dashboard/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/2.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/hr_zk_attendance/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/3.png">
</div>
</a>
</div>
</div>
<div class="carousel-item active"
style="min-height: 198.656px;">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/inventory_stock_dashboard_odoo/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/4.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/odoo_chatgpt_connector/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/5.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/whatsapp_mail_messaging/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/6.png">
</div>
</a>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo1" data-slide="prev"
style="width:35px; color:#000"> <span
class="carousel-control-prev-icon"><i
class="fa fa-chevron-left"
style="font-size:24px"></i></span>
</a> <a class="carousel-control-next" href="#demo1"
data-slide="next" style="width:35px; color:#000">
<span class="carousel-control-next-icon"><i
class="fa fa-chevron-right"
style="font-size:24px"></i></span>
</a>
</div>
</div>
</div>
<!-- END OF RELATED PRODUCTS -->
<!-- OUR SERVICES -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="/assets/misc/star.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Our Services
</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/cogs.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Customization</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/wrench.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/lifebuoy.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Support</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/user.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Hire
Odoo
Developer</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #54a0ff !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/puzzle.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Integration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/update.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Migration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/consultation.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Consultancy</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/training.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/license.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Licensing Consultancy</h6>
</div>
</div>
</div>
<!-- END OF OUR SERVICES -->
<!-- OUR INDUSTRIES -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="/assets/misc/corporate.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Our
Industries
</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/trading-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Trading
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easily procure
and
sell your products</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/pos-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
POS
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easy
configuration
and convivial experience</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/education-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Education
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
A platform for
educational management</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/manufacturing-black.png"
class="img-responsive mb-3" height="48px"
width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Manufacturing
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Plan, track and
schedule your operations</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/ecom-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
E-commerce &amp; Website
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Mobile
friendly,
awe-inspiring product pages</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/service-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Service Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Keep track of
services and invoice</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/restaurant-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Restaurant
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Run your bar or
restaurant methodically</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/hotel-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Hotel Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
An
all-inclusive
hotel management application</p>
</div>
</div>
</div>
</div>
<!-- END OF OUR INDUSTRIES -->
<!-- SUPPORT -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="/assets/misc/customer-support.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Support
</h2>
</div>
<div class="container mt-5">
<div class="row">
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4"
style="background-color: #714B67; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="/assets/misc/support.png" height="48" width="48"
style="width: 42px; height: 42px;"/>
</div>
<div>
<h4>Need Help?</h4>
<p style="line-height: 100%;">Got questions or need help?
Get in touch.</p>
<a href="mailto:odoo@cybrosys.com">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">
odoo@cybrosys.com</p>
</a>
</div>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4"
style="background-color: #2AC44D; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="/assets/misc/whatsapp.png" height="52" width="52"
style="width: 52px; height: 52px;"/>
</div>
<div>
<h4>WhatsApp</h4>
<p style="line-height: 100%;">Say hi to us on WhatsApp!</p>
<a href="https://api.whatsapp.com/send?phone=918606827707">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">
+91 86068
27707</p>
</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 my-5 d-flex justify-content-center align-items-center">
<img src="/assets/misc/logo.png" width="144" height="31"
style="width:144px; height: 31px; margin-top: 40px;"/>
</div>
</div>
</div>
<!-- END OF SUPPORT -->

BIN
dropbox_integration/static/src/img/dropbox_icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
dropbox_integration/static/src/img/file.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

78
dropbox_integration/static/src/js/dropbox.js

@ -0,0 +1,78 @@
odoo.define('dropbox_integration.dashboard', function (require) {
'use strict';
var AbstractAction = require('web.AbstractAction');
var core = require('web.core');
var rpc = require('web.rpc');
var DropboxDashboard = AbstractAction.extend({
template: 'DropboxDashboard',
events: {
'click #upload' : 'upload',
'keyup .header-search-input' : 'search_file'
},
/* Appends files retrieved by function(import_files) to div files */
init() {
this._super(...arguments);
var self = this;
rpc.query({
model: 'dropbox.dashboard',
method: 'action_import_files',
args:['']
}).then(function (result) {
if(result[0]=='e')
{
self.do_action({
'type': 'ir.actions.client',
'tag': 'display_notification',
'params': {
'message': 'Failed to Load Files [ '+result[1]+' ]',
'type': 'warning',
'sticky': false,
}
})
}
else if(!result){
self.do_action({
'type': 'ir.actions.client',
'tag': 'display_notification',
'params': {
'message': 'Please setup Access Token',
'type': 'warning',
'sticky': false,
}
})
}
else{
self.$('#files').empty();
var alt_src = "'dropbox_integration/static/src/img/file.png'"
$.each(Object.keys(result),function(index, name){
self.$('#files').append('<div class="col-sm-6 card dropbox_card" align="center"><a class="card-image-text dropbox_text" href="'+result[name]+'"><img class="card-img-top drop_box_image" align="center" src="'+result[name]+'" onerror="this.src='+alt_src+';"/<br/><br/>'+name+'</a></div>');
});
}
});
},
/* Calls upload function on click of upload */
upload: function (ev) {
this.do_action({
name: "Upload to Dropbox",
type: 'ir.actions.act_window',
res_model: 'dropbox.upload',
view_mode: 'form',
view_type: 'form',
views: [[false, 'form']],
target: 'new',
});
},
/* Search console function */
search_file: function (ev) {
var value = this.$('.header-search-input').val().toLowerCase()
this.$('.card').filter(function () {
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
});
},
});
core.action_registry.add("dropbox_dashboard", DropboxDashboard);
return DropboxDashboard;
});

57
dropbox_integration/static/src/scss/dropbox.scss

@ -0,0 +1,57 @@
.drop_box_image{
width: 180px;
height: 180px;
margin-top: 15px;
}
.dropbox_upload{
background-color: #006ce5;
color: white;
border-radius: 5px;
width: 100px;
margin-left: 10px;
}
.dropbox_card{
margin-left: 20px;
background: linear-gradient(295deg, rgba(24,125,223,0.3897934173669467) 0%, rgba(47,145,217,0) 100%);
width: 20rem;
height:22rem;
border-radius: 1.25rem;
margin:15px;
}
.dropbox_card:hover {
box-shadow: 0 4px 16px 0 rgba(0,0,0,1);
}
.dropbox_text{
color:black;
}
.content{
margin-left: 3px;
overflow-y: scroll;
height: 850px;
width: auto;
background-color: #ffffff;
}
.file-icon{
width: 65px;
}
.dropbox_section{
background: rgb(0,128,255);
background: radial-gradient(circle, rgba(0,128,255,1) 0%, rgba(0,82,255,0) 100%);
}
.header-search-input{
border-radius: 0.5rem;
height: 30px;
width: 400px;
outline: none;
border: none;
font-size: 15px;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
margin-left: 380px;
}

15
dropbox_integration/static/src/xml/dropbox_dashboard.xml

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Dashboard template -->
<template id="dropbox">
<t t-name="DropboxDashboard">
<section class="dashboard_main_section dropbox_section" id="main_section_manager">
<img src="/dropbox_integration/static/src/img/dropbox_icon.png"
style="width:200px; margin: 20px;"/>
<input class="btn dropbox_upload" type="button" value="Upload"
id="upload"/>
<input type="search" class="header-search-input"
placeholder="Search Files"/>
<div class="col row content" id="files"/>
</section>
</t>
</template>

14
dropbox_integration/views/dashboard_view.xml

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<data>
<record id="action_dropbox_dashboard" model="ir.actions.client">
<field name="name">Dropbox Dashboard</field>
<field name="tag">dropbox_dashboard</field>
<field name="target">current</field>
</record>
<menuitem id="dropbox_dashboard_menu_root"
name="Dropbox"
web_icon="dropbox_integration,static/description/icon.png"
action="action_dropbox_dashboard"/>
</data>
</odoo>

52
dropbox_integration/views/res_config_settings_views.xml

@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- SetupToken view on settings -->
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.dropbox.integration</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="base.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='integration']" position="inside">
<div class="col-12 col-lg-6 o_setting_box" id="dropbox">
<div class="o_setting_left_pane">
<field name="dropbox_button"
string="Dropbox"/>
</div>
<div class="o_setting_right_pane">
<label for="dropbox_button"/>
<div class="text-muted">
Synchronize with dropbox
</div>
</div>
<div class="o_setting_right_pane">
<span attrs="{'invisible': [('dropbox_button', '=', False)]}">
Client ID:
<field name="dropbox_client_id"
attrs="{'invisible': [('dropbox_button', '=', False)]}"/>
</span>
</div>
<div class="o_setting_right_pane">
<span attrs="{'invisible': [('dropbox_button', '=', False)]}">
Client Secret:
<field name="dropbox_client_secret" password="True"
attrs="{'invisible': [('dropbox_button', '=', False)]}"/>
</span>
</div>
<button string="Setup Access Token" class="o_setting_right_pane btn btn-link"
name="action_get_dropbox_auth_code" type="object"
attrs="{'invisible': [('dropbox_button', '=', False)]}">
<i class="fa fa-arrow-right"/>
Setup Token
</button>
<div class="o_setting_right_pane">
<span attrs="{'invisible': [('dropbox_button', '=', False)]}">
Folder ID:
<field name="dropbox_folder_id"
attrs="{'invisible': [('dropbox_button', '=', False)]}"/>
</span>
</div>
</div>
</xpath>
</field>
</record>
</odoo>

23
dropbox_integration/wizard/__init__.py

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

49
dropbox_integration/wizard/authentication_wizard.py

@ -0,0 +1,49 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Aslam A K( 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 <http://www.gnu.org/licenses/>.
#
###############################################################################
from odoo import models, fields, api
class AuthenticationWizard(models.TransientModel):
"""
Generates auth code
"""
_name = 'authentication.wizard'
_description = 'Authentication Code Wizard'
dropbox_authorization_code = fields.Char(
string='Dropbox Authorization Code', help='Dropbox Authorization Code')
dropbox_auth_url = fields.Char(string='Dropbox Authentication URL',
compute='_compute_dropbox_auth_url',
help='Dropbox Authentication URL')
@api.depends('dropbox_authorization_code')
def _compute_dropbox_auth_url(self):
dbx_config = self.env['res.config.settings'].browse(
self.env.context.get('active_id'))
for rec in self:
rec.dropbox_auth_url = dbx_config.get_dropbox_auth_url()
def action_setup_dropbox_token(self):
dbx_config = self.env['res.config.settings'].browse(
self.env.context.get('active_id'))
dbx_config.set_dropbox_refresh_token(
self.dropbox_authorization_code)

35
dropbox_integration/wizard/authentication_wizard_views.xml

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--Authorization Wizard View-->
<odoo>
<record id="auth_code_wizard_view_form" model="ir.ui.view">
<field name="name">authentication.wizard.form.dropbox.integration</field>
<field name="model">authentication.wizard</field>
<field name="arch" type="xml">
<form>
<group invisible="not context.get('dropbox_auth')">
<span>Get an authorization code and set it in the field
below.
</span>
<field name="dropbox_auth_url"
class="fa fa-arrow-right"
widget="url"
text="Get Authorization Code"
nolabel="1"/>
</group>
<group>
<field name="dropbox_authorization_code"
required="context.get('dropbox_auth')"
invisible="not context.get('dropbox_auth')"/>
</group>
<footer>
<button string="Confirm" type="object"
name="action_setup_dropbox_token"
class="btn-primary"
invisible="not context.get('dropbox_auth')"/>
<button string="Cancel" class="btn-secondary"
special="cancel"/>
</footer>
</form>
</field>
</record>
</odoo>

73
dropbox_integration/wizard/dropbox_upload.py

@ -0,0 +1,73 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Aslam A K( 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 <http://www.gnu.org/licenses/>.
#
###############################################################################
import dropbox
from odoo import models, fields
class DropboxUpload(models.TransientModel):
"""
For opening wizard view to upload files
"""
_name = "dropbox.upload"
file = fields.Binary("Attachment", help="Select a file to upload")
file_name = fields.Char("File Name", help="File Name")
def action_upload_file(self):
"""
upload files to dropbox
"""
try:
access = self.env['dropbox.dashboard'].search([], order='id desc',
limit=1)
dbx = dropbox.Dropbox(app_key=access.dropbox_client_id,
app_secret=access.dropbox_client_secret,
oauth2_refresh_token=access.dropbox_refresh_token)
attachment = self.env["ir.attachment"].search(
['|', ('res_field', '!=', False), ('res_field', '=', False),
('res_id', '=', self.id),
('res_model', '=', 'dropbox.upload')])
path = self.env['ir.config_parameter'].get_param(
'dropbox_integration.folder_id')
dropbox_destination = path + '/' + self.file_name
file = open((attachment._full_path(attachment.store_fname)), 'rb')
dbx.files_upload(file.read(), dropbox_destination)
file.close()
return {
'type': 'ir.actions.client',
'tag': 'display_notification',
'params': {
'type': 'success',
'message': 'File has been uploaded successfully. '
'Please refresh.',
'next': {'type': 'ir.actions.act_window_close'},
}
}
except Exception as e:
return {
'type': 'ir.actions.client',
'tag': 'display_notification',
'params': {
'type': 'warning',
'message': 'Failed to upload: %s' % e,
'next': {'type': 'ir.actions.act_window_close'},
}
}

23
dropbox_integration/wizard/dropbox_upload_views.xml

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Upload file wizard view -->
<record id="dropbox_upload_view_form" model="ir.ui.view">
<field name="name">dropbox.upload.wizard.form.dropbox.integration</field>
<field name="model">dropbox.upload</field>
<field name="arch" type="xml">
<form string="upload file wizard">
<group class="oe_title">
<field name="file" string="" filename="file_name"/>
<field name="file_name" invisible="1"/>
</group>
<footer>
<button string="Upload" name="action_upload_file" type="object"
class="oe_highlight" data-hotkey="q"
help="Confirm Upload"/>
<button string="Cancel" class="btn btn-secondary"
special="cancel" help="Cancel Upload"/>
</footer>
</form>
</field>
</record>
</odoo>
Loading…
Cancel
Save