Browse Source

Aug 31: [ADD] Initital Commits 'form_sticky_notes'

pull/332/merge
Cybrosys Technologies 8 months ago
parent
commit
d82c72a277
  1. 48
      form_sticky_notes/README.rst
  2. 32
      form_sticky_notes/__init__.py
  3. 57
      form_sticky_notes/__manifest__.py
  4. 5
      form_sticky_notes/doc/RELEASE_NOTES.md
  5. 25
      form_sticky_notes/models/__init__.py
  6. 31
      form_sticky_notes/models/ir_ui_view.py
  7. 39
      form_sticky_notes/models/res_users.py
  8. 40
      form_sticky_notes/models/stick_notes.py
  9. 5
      form_sticky_notes/security/ir.model.access.csv
  10. BIN
      form_sticky_notes/static/description/assets/icons/check.png
  11. BIN
      form_sticky_notes/static/description/assets/icons/chevron.png
  12. BIN
      form_sticky_notes/static/description/assets/icons/cogs.png
  13. BIN
      form_sticky_notes/static/description/assets/icons/consultation.png
  14. BIN
      form_sticky_notes/static/description/assets/icons/ecom-black.png
  15. BIN
      form_sticky_notes/static/description/assets/icons/education-black.png
  16. BIN
      form_sticky_notes/static/description/assets/icons/hotel-black.png
  17. BIN
      form_sticky_notes/static/description/assets/icons/license.png
  18. BIN
      form_sticky_notes/static/description/assets/icons/lifebuoy.png
  19. BIN
      form_sticky_notes/static/description/assets/icons/manufacturing-black.png
  20. BIN
      form_sticky_notes/static/description/assets/icons/modules/5.gif
  21. BIN
      form_sticky_notes/static/description/assets/icons/modules/barcode.png
  22. BIN
      form_sticky_notes/static/description/assets/icons/modules/fatoorah.png
  23. BIN
      form_sticky_notes/static/description/assets/icons/modules/integration_biometric.png
  24. BIN
      form_sticky_notes/static/description/assets/icons/modules/product_brand.png
  25. BIN
      form_sticky_notes/static/description/assets/icons/modules/website_cart.png
  26. BIN
      form_sticky_notes/static/description/assets/icons/pos-black.png
  27. BIN
      form_sticky_notes/static/description/assets/icons/puzzle.png
  28. BIN
      form_sticky_notes/static/description/assets/icons/restaurant-black.png
  29. BIN
      form_sticky_notes/static/description/assets/icons/service-black.png
  30. BIN
      form_sticky_notes/static/description/assets/icons/trading-black.png
  31. BIN
      form_sticky_notes/static/description/assets/icons/training.png
  32. BIN
      form_sticky_notes/static/description/assets/icons/update.png
  33. BIN
      form_sticky_notes/static/description/assets/icons/user.png
  34. BIN
      form_sticky_notes/static/description/assets/icons/wrench.png
  35. BIN
      form_sticky_notes/static/description/assets/misc/categories.png
  36. BIN
      form_sticky_notes/static/description/assets/misc/check-box.png
  37. BIN
      form_sticky_notes/static/description/assets/misc/compass.png
  38. BIN
      form_sticky_notes/static/description/assets/misc/corporate.png
  39. BIN
      form_sticky_notes/static/description/assets/misc/customer-support.png
  40. BIN
      form_sticky_notes/static/description/assets/misc/cybrosys-logo.png
  41. BIN
      form_sticky_notes/static/description/assets/misc/features.png
  42. BIN
      form_sticky_notes/static/description/assets/misc/logo.png
  43. BIN
      form_sticky_notes/static/description/assets/misc/pictures.png
  44. BIN
      form_sticky_notes/static/description/assets/misc/pie-chart.png
  45. BIN
      form_sticky_notes/static/description/assets/misc/right-arrow.png
  46. BIN
      form_sticky_notes/static/description/assets/misc/star.png
  47. BIN
      form_sticky_notes/static/description/assets/misc/support.png
  48. BIN
      form_sticky_notes/static/description/assets/misc/whatsapp.png
  49. BIN
      form_sticky_notes/static/description/assets/modules/5.gif
  50. BIN
      form_sticky_notes/static/description/assets/modules/barcode.png
  51. BIN
      form_sticky_notes/static/description/assets/modules/fatoorah.png
  52. BIN
      form_sticky_notes/static/description/assets/modules/integration_biometric.png
  53. BIN
      form_sticky_notes/static/description/assets/modules/product.png
  54. BIN
      form_sticky_notes/static/description/assets/modules/product_brand.png
  55. BIN
      form_sticky_notes/static/description/assets/modules/website_cart.png
  56. BIN
      form_sticky_notes/static/description/assets/screenshots/1.png
  57. BIN
      form_sticky_notes/static/description/assets/screenshots/10.png
  58. BIN
      form_sticky_notes/static/description/assets/screenshots/11.png
  59. BIN
      form_sticky_notes/static/description/assets/screenshots/2.png
  60. BIN
      form_sticky_notes/static/description/assets/screenshots/3.png
  61. BIN
      form_sticky_notes/static/description/assets/screenshots/4.png
  62. BIN
      form_sticky_notes/static/description/assets/screenshots/5.png
  63. BIN
      form_sticky_notes/static/description/assets/screenshots/6.png
  64. BIN
      form_sticky_notes/static/description/assets/screenshots/7.png
  65. BIN
      form_sticky_notes/static/description/assets/screenshots/8.png
  66. BIN
      form_sticky_notes/static/description/assets/screenshots/9.png
  67. BIN
      form_sticky_notes/static/description/assets/screenshots/hero.gif
  68. BIN
      form_sticky_notes/static/description/assets/screenshots/sticky1.png
  69. BIN
      form_sticky_notes/static/description/assets/screenshots/sticky2.png
  70. BIN
      form_sticky_notes/static/description/assets/screenshots/sticky3.png
  71. BIN
      form_sticky_notes/static/description/assets/screenshots/sticky4.png
  72. BIN
      form_sticky_notes/static/description/assets/screenshots/sticky5.png
  73. BIN
      form_sticky_notes/static/description/assets/screenshots/sticky6.png
  74. BIN
      form_sticky_notes/static/description/assets/screenshots/sticky7.png
  75. BIN
      form_sticky_notes/static/description/assets/screenshots/sticky8.png
  76. BIN
      form_sticky_notes/static/description/banner.png
  77. BIN
      form_sticky_notes/static/description/icon.png
  78. 690
      form_sticky_notes/static/description/index.html
  79. 28
      form_sticky_notes/static/src/js/ActionMenus.js
  80. 93
      form_sticky_notes/static/src/js/ViewButton.js
  81. 14
      form_sticky_notes/static/src/xml/ActionMenus.xml
  82. 14
      form_sticky_notes/views/ir_ui_view.xml
  83. 19
      form_sticky_notes/views/res_users_views.xml
  84. 52
      form_sticky_notes/views/stick_notes_views.xml
  85. 25
      form_sticky_notes/wizard/__init__.py
  86. 141
      form_sticky_notes/wizard/sticky_notes.py
  87. 60
      form_sticky_notes/wizard/sticky_notes_delete.py
  88. 32
      form_sticky_notes/wizard/sticky_notes_delete_views.xml
  89. 100
      form_sticky_notes/wizard/sticky_notes_update.py
  90. 35
      form_sticky_notes/wizard/sticky_notes_update_views.xml
  91. 39
      form_sticky_notes/wizard/sticky_notes_views.xml

48
form_sticky_notes/README.rst

@ -0,0 +1,48 @@
.. image:: https://img.shields.io/badge/license-LGPL--3-green.svg
:target: https://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: LGPL-3
Sticky Notes
=============
Sticky Notes is used to stick some notes in the form view only.
And we can edit and delete the sticky notes.
Configuration
=============
* No additional configurations needed
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
License
-------
General Public License, Version 3 (LGPL v3).
(https://www.odoo.com/documentation/user/16.0/legal/licenses/licenses.html)
Credits
-------
Developers: (V16) Gayathri V
Contacts: 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>`__

32
form_sticky_notes/__init__.py

@ -0,0 +1,32 @@
# -*- 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 LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import models
from . import wizard
from odoo import api, SUPERUSER_ID
def _uninstall_hook(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})
modules = env['ir.ui.view'].search(
[('sticky_identification_number', '!=', False)])
for rec in modules:
rec.unlink()

57
form_sticky_notes/__manifest__.py

@ -0,0 +1,57 @@
# -*- 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 LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
{
'name': 'Sticky Notes',
'version': "16.0.1.0.0",
'category': 'Productivity',
'summary': """An additional note for form views.We can create a note in the
form views as a sticky notes.""",
'description': """Sticky Notes is used to stick some notes in the form view
only.And we can edit delete the notes at the time of creation""",
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': "https://www.cybrosys.com",
'depends': ['base','web'],
'data': [
'security/ir.model.access.csv',
'views/stick_notes_views.xml',
'views/res_users_views.xml',
'views/res_users_views.xml',
'wizard/sticky_notes_views.xml',
'wizard/sticky_notes_update_views.xml',
'wizard/sticky_notes_delete_views.xml',
],
'assets': {
'web.assets_backend': [
'form_sticky_notes/static/src/js/ActionMenus.js',
'form_sticky_notes/static/src/js/ViewButton.js',
'form_sticky_notes/static/src/xml/ActionMenus.xml',
],
},
'images': ['static/description/banner.png'],
'license': 'LGPL-3',
'uninstall_hook': '_uninstall_hook',
'installable': True,
'auto_install': False,
'application': False,
}

5
form_sticky_notes/doc/RELEASE_NOTES.md

@ -0,0 +1,5 @@
## Module <form_sticky_notes>
#### 05.08.2024
#### Version 16.0.1.0.0
##### ADD
- Initial commit for Sticky Notes

25
form_sticky_notes/models/__init__.py

@ -0,0 +1,25 @@
"""Sticky notes"""
# -*- 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 LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import ir_ui_view
from . import res_users
from . import stick_notes

31
form_sticky_notes/models/ir_ui_view.py

@ -0,0 +1,31 @@
"""Sticky notes"""
# -*- 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 LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields,models
class IrUiView(models.Model):
"""This class is used to return the sticky notes"""
_inherit = 'ir.ui.view'
sticky_identification_number = fields.Char(string='Sticky Note',
help="Identify each sticky "
"notes")

39
form_sticky_notes/models/res_users.py

@ -0,0 +1,39 @@
"""Sticky notes"""
# -*- 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 LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import models
class ResUsers(models.Model):
"""This class is used to return the sticky notes"""
_inherit = 'res.users'
def action_user_sticky_notes(self):
"""To return the sticky notes created by the user"""
return {
'type': 'ir.actions.act_window',
'target': 'current',
'name': 'ASD',
'view_type': 'tree',
'view_mode': 'kanban',
'res_model': 'stick.notes',
}

40
form_sticky_notes/models/stick_notes.py

@ -0,0 +1,40 @@
"""Sticky notes"""
# -*- 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 LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class StickyNotes(models.Model):
"""The sticky note class"""
_name = 'stick.notes'
_description = 'Stick notes'
notes = fields.Text(string='Notes', help="Notes of sticky")
created_id = fields.Many2one('res.users',
default=lambda self: self.env.user,
string="Created By", help='Notes created user')
date = fields.Date(default=fields.Date.today(), string="Date",
help="Creation date of the form")
related_model_name = fields.Char(string='Related Model',
help="Name of the related model")
related_model = fields.Integer(string='Related Model Id',
help=" Id of the related model")

5
form_sticky_notes/security/ir.model.access.csv

@ -0,0 +1,5 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access.access_stick_notes_user,access.stick.notes.user,model_stick_notes,base.group_user,1,1,1,1
access.access_sticky_notes_user,access.sticky.notes.user,model_sticky_notes,base.group_user,1,1,1,1
access.access_sticky_notes_update_user,access.sticky.notes.update.user,model_sticky_notes_update,base.group_user,1,1,1,1
access.access_sticky_notes_delete_user,access.sticky.notes.delete.user,model_sticky_notes_delete,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.access_stick_notes_user access.stick.notes.user model_stick_notes base.group_user 1 1 1 1
3 access.access_sticky_notes_user access.sticky.notes.user model_sticky_notes base.group_user 1 1 1 1
4 access.access_sticky_notes_update_user access.sticky.notes.update.user model_sticky_notes_update base.group_user 1 1 1 1
5 access.access_sticky_notes_delete_user access.sticky.notes.delete.user model_sticky_notes_delete base.group_user 1 1 1 1

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

BIN
form_sticky_notes/static/description/assets/icons/modules/5.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

BIN
form_sticky_notes/static/description/assets/icons/modules/barcode.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
form_sticky_notes/static/description/assets/icons/modules/fatoorah.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

BIN
form_sticky_notes/static/description/assets/icons/modules/integration_biometric.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

BIN
form_sticky_notes/static/description/assets/icons/modules/product_brand.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

BIN
form_sticky_notes/static/description/assets/icons/modules/website_cart.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

BIN
form_sticky_notes/static/description/assets/modules/barcode.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
form_sticky_notes/static/description/assets/modules/fatoorah.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

BIN
form_sticky_notes/static/description/assets/modules/integration_biometric.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

BIN
form_sticky_notes/static/description/assets/modules/product.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

BIN
form_sticky_notes/static/description/assets/modules/product_brand.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

BIN
form_sticky_notes/static/description/assets/modules/website_cart.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 KiB

BIN
form_sticky_notes/static/description/assets/screenshots/sticky1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

BIN
form_sticky_notes/static/description/assets/screenshots/sticky2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

BIN
form_sticky_notes/static/description/assets/screenshots/sticky3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 KiB

BIN
form_sticky_notes/static/description/assets/screenshots/sticky4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

BIN
form_sticky_notes/static/description/assets/screenshots/sticky5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 KiB

BIN
form_sticky_notes/static/description/assets/screenshots/sticky6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

BIN
form_sticky_notes/static/description/assets/screenshots/sticky7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

BIN
form_sticky_notes/static/description/assets/screenshots/sticky8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

BIN
form_sticky_notes/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

BIN
form_sticky_notes/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

690
form_sticky_notes/static/description/index.html

@ -0,0 +1,690 @@
<div style="background-color: #714B67; min-height: 600px; width: 100%; padding:
15px; position: relative;">
<!-- TITLE BAR -->
<div class="d-flex align-items-center justify-content-between"
style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;">
<img src="assets/misc/cybrosys-logo.png" width="42" height="42" style="width: 42px; height: 42px;" />
<div>
<div
style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Community
</div>
<div
style="color: #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>Enterprise
</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>>Odoo.sh
</div>
</div>
</div>
<!-- END OF TITLE BAR -->
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
<!-- APP HERO -->
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;">
Sticky Notes</h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">
An Additional Note For Form Views.
</p>
<!-- END OF APP HERO -->
<img src="assets/screenshots/hero.gif" class="img-responsive"
style="width: 80%; margin-left: 10%; margin-right: 10%;"/>
</div>
</div>
</div>
</div>
<!-- NAVIGATION SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px; margin-top: 300px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/compass.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Explore This
Module</h2>
</div>
<div class="row my-4" style="font-family: 'Montserrat', sans-serif;">
<div class="col-sm-12 col-md-6 my-3">
<a href="#overview">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Overview</span>
<span
style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">Learn
more about this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#features">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Features</span>
<span
style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View
features of this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#screenshots">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Screenshots</span>
<span
style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View
screenshots 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">
Sticky Notes is used to stick some notes in the form view only.
And we can edit and delete the notes.
</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: 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;">We can add a sticky note in the form views.</span>
</div>
</div>
<div class="col-sm-12 col-md-6">
<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;">Compatible in Enterprise and community.</span>
</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;">
Install the module.</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
After Installing the module a button will be appeared in the form views.</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;">
Clicking the button a wizard will be open to create the note.</h3>
<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;">
After clicking the stick Button the note will be created.</h3>
<img src="assets/screenshots/sticky1.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;">
Created Notes</h3>
<img src="assets/screenshots/sticky2.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;">
Click on edit button to edit the note</h3>
<img src="assets/screenshots/sticky3.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;">
Edit the sticky note.Additionally, there is an option to change the colors."</h3>
<img src="assets/screenshots/sticky4.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;">
Updated note.</h3>
<img src="assets/screenshots/sticky5.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;">
Click on delete icon to delete the note.</h3>
<img src="assets/screenshots/sticky6.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;">
Click on Delete Button </h3>
<img src="assets/screenshots/sticky7.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
After Deleting the note.</h3>
<img src="assets/screenshots/sticky8.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;">
On the user record there is a button to show the created notes.</h3>
<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;">
User created notes.</h3>
<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/myfatoorah_payment_gateway/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/fatoorah.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/website_cart_clear/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/website_cart.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/integration_biometric.png">
</div>
</a>
</div>
</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/product_brand_ecommerce/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/product.png">
</div>
</a>
</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/product_brand_ecommerce/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/product_brand.png">
</div>
</a>
</div>
<!-- <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">-->
<!-- <a href="https://apps.odoo.com/apps/modules/15.0/base_accounting_kit/" target="_blank">-->
<!-- <div style="border-radius:10px">-->
<!-- <img class="img img-responsive center-block" style="border-radius: 0px;"-->
<!-- src="assets/modules/5.png">-->
<!-- </div>-->
<!-- </a>-->
<!-- </div>-->
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/ecommerce_barcode_search/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/barcode.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>
</div>
</div>
<!-- END OF SUPPORT -->

28
form_sticky_notes/static/src/js/ActionMenus.js

@ -0,0 +1,28 @@
/** @odoo-module **/
import { patch } from "@web/core/utils/patch";
import { ActionMenus } from "@web/search/action_menus/action_menus";
patch(ActionMenus.prototype, 'sticky_notes_odoo/js/action_menus', {
setup() {
this._super(...arguments);
},
//The function is used to do an action for creating the sticky notes.
StickyButton() {
var view_id = this.env.config.viewId
var res_model = this.props.resModel
var id = this.actionService.currentController.props.resId
this.actionService.doAction({
type: 'ir.actions.act_window',
res_model: 'sticky.notes',
view_mode: 'form',
view_type: 'form',
views: [[false, 'form']],
target: 'new',
context: {
'default_active_model': id,
'default_active_model_name': res_model,
'default_active_view':view_id,
},
});
},
});

93
form_sticky_notes/static/src/js/ViewButton.js

@ -0,0 +1,93 @@
/** @odoo-module **/
import { ViewButton } from '@web/views/view_button/view_button';
import { patch } from "@web/core/utils/patch";
import { DROPDOWN } from "@web/core/dropdown/dropdown";
import { pick } from "@web/core/utils/objects";
patch(ViewButton.prototype,'@web/views/view_button/view_button', {
setup() {
this._super(...arguments);
},
//This is used to edit the sticky notes
onClick(ev) {
var view_id = this.env.config.viewId
if(ev.target.name == 'edit_notes'){
var id = this.env.model.__bm_load_params__.res_id
var res_model = this.env.model.__bm_load_params__.modelName
var str = ev.target.parentElement.parentElement.textContent.trim()
const heading = str.slice(0, str.indexOf(' '));
const notes = str.slice(str.indexOf(' ')+ 1);
var styleString = ev.target.parentElement.parentElement.getAttribute('style')
var propertyIndex = styleString.indexOf('background-color');
if (propertyIndex !== -1) {
var startIndex = styleString.indexOf(':', propertyIndex) + 1;
var endIndex = styleString.indexOf(';', startIndex);
if (endIndex === -1) {
endIndex = styleString.length;
}
}
var propertyIndexTextcolor = styleString.indexOf('text-color');
var startIndexTextcolor = styleString.indexOf(':', propertyIndexTextcolor) + 1;
var endIndexTextcolor = styleString.indexOf(';', startIndexTextcolor);
var action = this.env.model.actionService.doAction({
type: 'ir.actions.act_window',
res_model: 'sticky.notes.update',
view_mode: 'form',
view_type: 'form',
views: [[false, 'form']],
target: 'new',
context: {
'default_background_color': (styleString.substring(startIndex, endIndex)).trim(),
'default_text_color': (styleString.substring(startIndexTextcolor, endIndexTextcolor)).trim(),
'default_heading':heading,
'default_note':notes,
'default_prev_heading':heading,
'default_prev_notes':notes,
'view_id': view_id,
'default_active_model': id,
'default_active_model_name':res_model,
},
});
}
// delete the sticky notes
else if(ev.target.name == 'delete_notes'){
var id = this.env.model.__bm_load_params__.res_id
var res_model = this.env.model.__bm_load_params__.modelName
var action = this.env.model.actionService.doAction({
type: 'ir.actions.act_window',
res_model: 'sticky.notes.delete',
view_mode: 'form',
view_type: 'form',
views: [[false, 'form']],
target: 'new',
context: {
'default_note':ev.target.parentElement.parentElement.textContent,
'default_active_model': id,
'default_active_model_name':res_model,
'view_id': view_id,
},
});
this.env.model.load()
}
else{
if (this.props.tag === "a") {
ev.preventDefault();
}
if (this.props.onClick) {
return this.props.onClick();
}
this.env.onClickViewButton({
clickParams: this.clickParams,
getResParams: () =>
pick(this.props.record, "context", "evalContext", "resModel", "resId", "resIds"),
beforeExecute: () => {
if (this.env[DROPDOWN]) {
this.env[DROPDOWN].close();
}
},
disableAction: this.props.disable,
enableAction: this.props.enable,
});
}
}
});

14
form_sticky_notes/static/src/xml/ActionMenus.xml

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This is used add the sticky note button in the form views-->
<templates id="template" xml:space="preserve">
<t t-name="form_sticky_notes.sticky_notes_button"
t-inherit="web.ActionMenus"
t-inherit-mode="extension" owl="1">
<xpath expr="div[hasclass('o_cp_action_menus')]" position="after">
<div id="sticky_button" class="pointer" style="cursor: pointer;"
t-on-click="StickyButton">
<i class="fa fa-thumb-tack"/>
</div>
</xpath>
</t>
</templates>

14
form_sticky_notes/views/ir_ui_view.xml

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--Added a field in the view to identify the sticky note -->
<odoo>
<record id="view_view_form" model="ir.ui.view">
<field name="model">ir.ui.view</field>
<field name="name">ir.ui.view.view.form</field>
<field name="inherit_id" ref="base.view_view_form"/>
<field name="arch" type="xml">
<field name="model" position="before">
<field name="sticky_identification_number"/>
</field>
</field>
</record>
</odoo>

19
form_sticky_notes/views/res_users_views.xml

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!--This is used to add a new button-->
<record id="view_users_form" model="ir.ui.view">
<field name="name">res.users.view.form.inherit.form.sticky.notes
</field>
<field name="model">res.users</field>
<field name="inherit_id" ref="base.view_users_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='access_rights']" position="inside">
<group string="Sticky Notes">
<button class="fa fa-thumb-tack =" type="object"
name="action_user_sticky_notes"
string="Sticky notes"/>
</group>
</xpath>
</field>
</record>
</odoo>

52
form_sticky_notes/views/stick_notes_views.xml

@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Records for the sticky notes-->
<record id="stick_notes_view_form" model="ir.ui.view">
<field name="name">stick.notes.view.form</field>
<field name="model">stick.notes</field>
<field name="arch" type="xml">
<form string="form">
<sheet>
<group>
<field name="notes"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="stick_notes_view_kanban" model="ir.ui.view">
<field name="name">stick.notes.view.kanban</field>
<field name="model">stick.notes</field>
<field name="arch" type="xml">
<kanban class="o_kanban_mobile">
<field name="notes"/>
<field name="created_id"/>
<field name="date"/>
<templates>
<t t-name="kanban-box">
<div class="oe_kanban_global_click">
<div class="oe_kanban_details">
<div>
<strong>
<field name="created_id"/>
</strong>
</div>
<div>
<strong>
<field name="date"/>
</strong>
</div>
<div>
<div>
<span>Notes</span>
</div>
<field name="notes"/>
</div>
</div>
</div>
</t>
</templates>
</kanban>
</field>
</record>
</odoo>

25
form_sticky_notes/wizard/__init__.py

@ -0,0 +1,25 @@
"""Sticky notes"""
# -*- 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 LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import sticky_notes
from . import sticky_notes_delete
from . import sticky_notes_update

141
form_sticky_notes/wizard/sticky_notes.py

@ -0,0 +1,141 @@
"""Sticky notes"""
# -*- 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 LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from uuid import uuid4
from odoo import exceptions, fields, models, _
class StickyNotes(models.TransientModel):
"""Used to create sticky notes"""
_name = 'sticky.notes'
_description = 'Sticky notes'
color = fields.Char(string='Color', default='Yellow',
help="Background color of the sticky note", size=7)
note = fields.Text(string='Note', help='Text of the sticky note')
active_model = fields.Integer(string='Id', help='Id of the active model')
active_model_name = fields.Char(string='Active Model name',
help='Name of active model for the '
'current record')
active_view = fields.Integer(string='Active View Id',
help='View id of the record')
text_color = fields.Char(string='Text Color', default='White',
help="Text color of the sticky notes", size=7)
heading = fields.Char(string='Heading', required=True, help='Heading of '
'the note')
def action_stick_notes(self):
"""This method is used to create sticky notes"""
if not self.note:
raise exceptions.ValidationError(_("Enter the note."))
else:
self.env['stick.notes'].create({
'notes': self.note,
})
views = self.env['ir.ui.view'].browse(self.env.context['default_active_view'])
for rec in views.inherit_children_ids:
name = rec.name.split('.')[0]
if name.strip() == 'Sticky Notes':
arch = ("""<xpath expr="//div[hasclass('sticky_notes_edit_delete')]" position="inside">
<div draggable="true"
role="alert" style="height:126px;width:200px;background-color:%s;text-color:%s;"
class="card js_sticky_notes alert col-2" id="%s" attrs="{'invisible':[('id',
'!=',%s)]}"><div class="sticky_buttons" style="display:flex;justify-content:flex-end;">
<button name="edit_notes"
class="fa fa-pencil js_edit_notes"></button><button
name="delete_notes" class="btn-btn-primary fa fa-trash
js_note_delete"></button></div><div>
<h3 style="color:%s"> <i> %s </i> </h3></div>
<div><b style="color:%s"> %s </b></div></div>
</xpath>""" % (
self.color, self.text_color,
str(self.active_model) + str(uuid4())[7:-18],
self.active_model, self.text_color, self.heading,
self.text_color,
self.note))
view_data = {
'name': "Sticky Notes .{}".format(str(self.id)),
'type': 'kanban',
'model': self.active_model_name,
'priority': 1,
'inherit_id': views.id,
'mode': 'extension',
'sticky_identification_number': str(self.id),
'arch_base': arch.encode('utf-8')
}
self.env["ir.ui.view"].create(view_data)
return {
'type': 'ir.actions.client',
'tag': 'reload',
}
else:
base_arch = ("""<xpath expr="//form/sheet" position="before">
<div
class="sticky_notes_edit_delete o_form_sheet"
style="display: flex;gap: 10px;padding: 0;background: none;border: none;box-shadow: none;"/>
</xpath> """)
view_data = {
'name': "",
'type': 'kanban',
'model': self.active_model_name,
'priority': 1,
'inherit_id': views.id,
'mode': 'extension',
'sticky_identification_number': str(self.id),
'arch_base': base_arch.encode('utf-8')
}
self.env["ir.ui.view"].create(view_data)
arch = ("""<xpath expr="//div[hasclass('sticky_notes_edit_delete')]"
position="inside">
<div draggable="true"
role="alert" style="height:126px;width:200px;
background-color:%s;text-color:%s;"
class="card js_sticky_notes alert col-2" id="%s"
attrs="{'invisible':[('id',
'!=',%s)]}"><div class="sticky_buttons" style="display:flex;justify-content:flex-end;"> <button
name="edit_notes"
class="fa fa-pencil js_edit_notes"></button><button
name="delete_notes" class="btn-btn-primary fa fa-trash
js_note_delete"></button></div><div>
<h3 style="color:%s"> <i> %s </i> </h3></div>
<div><b style="color:%s"> %s </b></div></div>
</xpath>""" % (
self.color, self.text_color,
str(self.active_model) + str(uuid4())[7:-18],
self.active_model, self.text_color, self.heading,
self.text_color,
self.note))
view_data = {
'name': "Sticky Notes .{}".format(str(self.id)),
'type': 'kanban',
'model': self.active_model_name,
'priority': 1,
'inherit_id': views.id,
'mode': 'extension',
'sticky_identification_number': str(self.id),
'arch_base': arch.encode('utf-8')
}
self.env["ir.ui.view"].create(view_data)
return {
'type': 'ir.actions.client',
'tag': 'reload',
}

60
form_sticky_notes/wizard/sticky_notes_delete.py

@ -0,0 +1,60 @@
"""Sticky notes"""
# -*- 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 LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class StickyNotesDelete(models.TransientModel):
"""This is ued to confirm the note to be deleted or not."""
_name = 'sticky.notes.delete'
_description = 'Sticky notes delete wizard'
color = fields.Char(string='Color', default='Yellow',
help='Color of the note')
note = fields.Text(string='Note', help='The note that we want to stick')
active_model = fields.Integer(string='Id', help='The current record id')
active_model_name = fields.Char(string='Active Model name',
help='Current records model name')
active_view = fields.Integer(string='Active View Id',
help='Current records view id')
def action_delete_notes(self):
"""This is used to delete the note"""
record_view = self.env['ir.ui.view'].browse(
self.env.context.get('view_id'))
for rec in record_view.inherit_children_ids:
stick_notes = rec.name.split('.')[0]
if stick_notes.strip() == 'Sticky Notes':
arch_note = rec.arch.split('<b ')[1].split('</b>')[0].split('>')[1]
arch_heading = rec.arch.split('<i')[1].split('</i>')[0].split('>')[1]
note_trim = self.note.replace(" ", "")
heading_note = arch_heading+arch_note
heading_note_trim = heading_note.replace(" ", "")
if note_trim.strip() == heading_note_trim.strip():
stick_note_view = self.env['ir.ui.view'].browse(
self.env.context['view_id']).inherit_children_ids.filtered(
lambda l: l.name == rec.name.strip())
stick_note_view.unlink()
return {
'type': 'ir.actions.client',
'tag': 'reload',
}

32
form_sticky_notes/wizard/sticky_notes_delete_views.xml

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- This is used to delete the sticky notes-->
<record id="sticky_notes_delete_action" model="ir.actions.act_window">
<field name="name">Sticky Notes Deletion</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">sticky.notes.delete</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
<record id="sticky_notes_delete_view_form" model="ir.ui.view">
<field name="name">sticky.notes.delete.view.form</field>
<field name="model">sticky.notes.delete</field>
<field name="arch" type="xml">
<form string="wizard">
<sheet>
<div class="oe_title">
Do you want to delete the note?
</div>
</sheet>
<footer>
<button name="action_delete_notes"
class="btn-primary create_note"
string="Delete" type="object"/>
<button class="btn-secondary"
string="Cancel" special="cancel"/>
</footer>
</form>
</field>
</record>
</odoo>

100
form_sticky_notes/wizard/sticky_notes_update.py

@ -0,0 +1,100 @@
"""Sticky notes"""
# -*- 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 LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from uuid import uuid4
from odoo import fields, models
class StickyNotesUpdate(models.TransientModel):
"""This is used to update the sticky notes"""
_name = 'sticky.notes.update'
_description = 'Sticky notes update wizard'
background_color = fields.Char(string='Background Color',
help="Color of notes")
text_color = fields.Char(string='Text Color',
help="Color of Text")
note = fields.Text(string='Note', help="Text for the sticky note",
required=True)
heading = fields.Text(string='Heading', help="Heading of the sticky notes",
required=True)
active_model = fields.Integer(string='Id', help="The active model id")
active_model_name = fields.Char(string='Active Model name',
help="Active model name of the note")
active_view = fields.Integer(string='Active View Id',
help="Active view id of the note")
prev_heading = fields.Text(string='Prev Heading', help="previous heading "
"of the sticky note")
prev_notes = fields.Text(string='Prev notes', help="Previous notes of "
"sticky note")
def action_update_notes(self):
"""This is used to update the edited text to the sticky notes"""
record_view = self.env['ir.ui.view'].browse(
self.env.context.get('view_id'))
for rec in record_view.inherit_children_ids:
stick_notes = rec.name.split('.')[0]
if stick_notes.strip() == 'Sticky Notes':
arch_note = \
rec.arch.split('<b ')[1].split('</b>')[0].split('>')[1]
arch_heading = \
rec.arch.split('<i')[1].split('</i>')[0].split('>')[1]
current_record = (self.prev_heading + self.prev_notes).replace(
" ", "")
rec_record = (arch_heading + arch_note).replace(" ", "")
if current_record == rec_record:
rec.unlink()
views = self.env['ir.ui.view'].browse(
self.env.context['view_id'])
arch = ("""<xpath expr="//div[hasclass('sticky_notes_edit_delete')]" position="inside">
<div draggable="true"
role="alert" style="height:126px;width:200px;background-color:%s;text-color:%s;"
class="card js_sticky_notes alert col-2" id="%s" attrs="{'invisible':[('id',
'!=',%s)]}"><div class="sticky_buttons" style="display:flex;justify-content:flex-end;"> <button name="edit_notes"
class="fa fa-pencil js_edit_notes"></button><button
name="delete_notes" class="btn-btn-primary fa fa-trash
js_note_delete"></button></div><div>
<h3 style="color:%s"> <i> %s </i> </h3></div>
<div><b style="color:%s"> %s </b></div></div>
</xpath>""" % (
self.background_color, self.text_color,
str(self.active_model) + str(uuid4())[7:-18],
self.active_model, self.text_color, self.heading,
self.text_color,
self.note))
view_data = {
'name': "Sticky Notes .{}".format(str(self.id)),
'type': 'kanban',
'model': self.active_model_name,
'priority': 1,
'inherit_id': views.id,
'mode': 'extension',
'sticky_identification_number': str(self.id),
'arch_base': arch.encode('utf-8')
}
self.env["ir.ui.view"].create(view_data)
return {
'type': 'ir.actions.client',
'tag': 'reload',
}

35
form_sticky_notes/wizard/sticky_notes_update_views.xml

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- This is used to update the sticky note-->
<record id="sticky_notes_update_action" model="ir.actions.act_window">
<field name="name">Sticky Notes Update</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">sticky.notes.update</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
<record id="sticky_notes_update_view_form" model="ir.ui.view">
<field name="name">sticky.notes.update.view.form</field>
<field name="model">sticky.notes.update</field>
<field name="arch" type="xml">
<form string="wizard">
<group>
<group>
<field name="background_color" widget="color"/>
<field name="text_color" widget="color"/>
<field name="heading"/>
<field name="note"/>
</group>
<field name="prev_heading" invisible="1"/>
<field name="prev_notes" invisible="1"/>
</group>
<footer>
<button name="action_update_notes" class="btn-primary"
string="Update" type="object"/>
<button class="btn-secondary"
string="Cancel" special="cancel"/>
</footer>
</form>
</field>
</record>
</odoo>

39
form_sticky_notes/wizard/sticky_notes_views.xml

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Sticky notes creation wizard-->
<record id="sticky_notes_action" model="ir.actions.act_window">
<field name="name">Sticky Notes</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">sticky.notes</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
<record id="sticky_notes_view_form" model="ir.ui.view">
<field name="name">sticky.notes.create</field>
<field name="model">sticky.notes</field>
<field name="arch" type="xml">
<form string="wizard">
<group>
<group>
<field name="heading"/>
<field name="color" widget="color"/>
<field name="text_color" widget="color"/>
</group>
<notebook>
<page string="Note">
<field name="note"/>
</page>
</notebook>
</group>
<footer>
<button name="action_stick_notes"
class="btn-primary create_note"
string="Stick" type="object"/>
<button class="btn-secondary"
string="Cancel" special="cancel"/>
</footer>
</form>
</field>
</record>
</odoo>
Loading…
Cancel
Save