| @ -1,48 +0,0 @@ | |||
| .. 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>`__ | |||
| @ -1,32 +0,0 @@ | |||
| # -*- 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() | |||
| @ -1,57 +0,0 @@ | |||
| # -*- 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, | |||
| } | |||
| @ -1,5 +0,0 @@ | |||
| ## Module <form_sticky_notes> | |||
| #### 05.08.2024 | |||
| #### Version 16.0.1.0.0 | |||
| ##### ADD | |||
| - Initial commit for Sticky Notes | |||
| @ -1,25 +0,0 @@ | |||
| """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 | |||
| @ -1,31 +0,0 @@ | |||
| """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") | |||
| @ -1,39 +0,0 @@ | |||
| """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', | |||
|         } | |||
| @ -1,40 +0,0 @@ | |||
| """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") | |||
| 
 | 
| Before Width: | Height: | Size: 3.6 KiB | 
| Before Width: | Height: | Size: 310 B | 
| Before Width: | Height: | Size: 1.3 KiB | 
| Before Width: | Height: | Size: 1.4 KiB | 
| Before Width: | Height: | Size: 576 B | 
| Before Width: | Height: | Size: 733 B | 
| Before Width: | Height: | Size: 911 B | 
| Before Width: | Height: | Size: 1.1 KiB | 
| Before Width: | Height: | Size: 1.2 KiB | 
| Before Width: | Height: | Size: 673 B | 
| Before Width: | Height: | Size: 1.3 MiB | 
| Before Width: | Height: | Size: 17 KiB | 
| Before Width: | Height: | Size: 81 KiB | 
| Before Width: | Height: | Size: 83 KiB | 
| Before Width: | Height: | Size: 83 KiB | 
| Before Width: | Height: | Size: 18 KiB | 
| Before Width: | Height: | Size: 878 B | 
| Before Width: | Height: | Size: 653 B | 
| Before Width: | Height: | Size: 905 B | 
| Before Width: | Height: | Size: 839 B | 
| Before Width: | Height: | Size: 427 B | 
| Before Width: | Height: | Size: 627 B | 
| Before Width: | Height: | Size: 1.2 KiB | 
| Before Width: | Height: | Size: 988 B | 
| Before Width: | Height: | Size: 1.2 KiB | 
| Before Width: | Height: | Size: 1.5 KiB | 
| Before Width: | Height: | Size: 1.1 KiB | 
| Before Width: | Height: | Size: 1.9 KiB | 
| Before Width: | Height: | Size: 1.1 KiB | 
| Before Width: | Height: | Size: 2.1 KiB | 
| Before Width: | Height: | Size: 4.4 KiB | 
| Before Width: | Height: | Size: 589 B | 
| Before Width: | Height: | Size: 3.4 KiB | 
| Before Width: | Height: | Size: 1.7 KiB | 
| Before Width: | Height: | Size: 2.3 KiB | 
| Before Width: | Height: | Size: 967 B | 
| Before Width: | Height: | Size: 1.6 KiB | 
| Before Width: | Height: | Size: 3.8 KiB | 
| Before Width: | Height: | Size: 5.0 KiB | 
| Before Width: | Height: | Size: 1.8 MiB | 
| Before Width: | Height: | Size: 17 KiB | 
| Before Width: | Height: | Size: 81 KiB | 
| Before Width: | Height: | Size: 83 KiB | 
| Before Width: | Height: | Size: 83 KiB | 
| Before Width: | Height: | Size: 83 KiB | 
| Before Width: | Height: | Size: 18 KiB | 
| Before Width: | Height: | Size: 99 KiB | 
| Before Width: | Height: | Size: 94 KiB | 
| Before Width: | Height: | Size: 56 KiB | 
| Before Width: | Height: | Size: 94 KiB | 
| Before Width: | Height: | Size: 102 KiB | 
| Before Width: | Height: | Size: 136 KiB | 
| Before Width: | Height: | Size: 111 KiB | 
| Before Width: | Height: | Size: 109 KiB | 
| Before Width: | Height: | Size: 139 KiB | 
| Before Width: | Height: | Size: 118 KiB | 
| Before Width: | Height: | Size: 141 KiB | 
| Before Width: | Height: | Size: 280 KiB | 
| Before Width: | Height: | Size: 121 KiB | 
| Before Width: | Height: | Size: 161 KiB | 
| Before Width: | Height: | Size: 173 KiB | 
| Before Width: | Height: | Size: 128 KiB | 
| Before Width: | Height: | Size: 165 KiB | 
| Before Width: | Height: | Size: 164 KiB | 
| Before Width: | Height: | Size: 132 KiB | 
| Before Width: | Height: | Size: 180 KiB | 
| Before Width: | Height: | Size: 90 KiB | 
| Before Width: | Height: | Size: 15 KiB | 
| @ -1,690 +0,0 @@ | |||
| <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 & 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 --> | |||
| @ -1,28 +0,0 @@ | |||
| /** @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, | |||
|             }, | |||
|         }); | |||
|     }, | |||
| }); | |||
| @ -1,93 +0,0 @@ | |||
| /** @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, | |||
|             }); | |||
|         } | |||
|     } | |||
| }); | |||
| @ -1,14 +0,0 @@ | |||
| <?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> | |||
| @ -1,14 +0,0 @@ | |||
| <?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> | |||
| @ -1,19 +0,0 @@ | |||
| <?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> | |||
| @ -1,52 +0,0 @@ | |||
| <?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> | |||
| @ -1,25 +0,0 @@ | |||
| """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 | |||
| @ -1,141 +0,0 @@ | |||
| """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', | |||
|             } | |||
| @ -1,60 +0,0 @@ | |||
| """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', | |||
|                     } | |||
| @ -1,32 +0,0 @@ | |||
| <?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> | |||
| 
 | |||
| @ -1,100 +0,0 @@ | |||
| """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', | |||
|                     } | |||
| @ -1,35 +0,0 @@ | |||
| <?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> | |||
| @ -1,39 +0,0 @@ | |||
| <?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> | |||