diff --git a/import_task_checklist/README.rst b/import_task_checklist/README.rst new file mode 100644 index 000000000..48985a3c3 --- /dev/null +++ b/import_task_checklist/README.rst @@ -0,0 +1,48 @@ +.. image:: https://img.shields.io/badge/license-LGPL--3-green.svg + :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 + +Import Employee Task Checklist in Project +========================================= +By Using This Module We Can Import Task Checklist From Both CSV and EXCEL Files Through The xlrd Package in Odoo + +Company +------- +* `Cybrosys Techno Solutions `__ + +Configuration +============= +* For working of this module we need to install project_task_checklist module. +* In Odoo 17 requirements, xlrd supported version is 1.2.0, so we need to install the package with that version +* Using the command 'pip3 install xlrd ' or From the python packages you can directly install the package with the version +* Sample CSV and XLS files are in kept in screenshots folder. + +License +------- +GNU Lesser General Public License, Version 3 (LGPL v3). +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Credits +------- +Developer: (V17) Nivedhya T, Contact : odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. +For support and more information, please visit `Our Website `__ + +Further information +=================== +HTML Description: ``__ diff --git a/import_task_checklist/__init__.py b/import_task_checklist/__init__.py new file mode 100644 index 000000000..030446576 --- /dev/null +++ b/import_task_checklist/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions() +# 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 +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## +from . import models +from . import wizard diff --git a/import_task_checklist/__manifest__.py b/import_task_checklist/__manifest__.py new file mode 100644 index 000000000..461cdf1ab --- /dev/null +++ b/import_task_checklist/__manifest__.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions() +# 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 +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## +{ + 'name': 'Import Employee Task Checklist in Project', + 'version': '17.0.1.0.0', + 'category': 'Project', + 'summary': "Import task check list via EXCEL and CSV", + 'description': 'By using this module we can import task checklist from both' + 'CSV and EXCEL files,through the xlrd package in Odoo', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['project', 'projects_task_checklists'], + 'data': ['security/ir.model.access.csv', + 'security/task_checklist_security.xml', + 'views/task_checklist_views.xml', + 'wizard/import_checklist_views.xml', + ], + 'images': ['static/description/banner.jpg'], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/import_task_checklist/doc/RELEASE_NOTES.md b/import_task_checklist/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..f99313bdd --- /dev/null +++ b/import_task_checklist/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 28.08.2024 +#### Version 17.0.1.0.0 +#### ADD + +- Initial commit for Import Employee Task Checklist in Project diff --git a/import_task_checklist/models/__init__.py b/import_task_checklist/models/__init__.py new file mode 100644 index 000000000..f8730077c --- /dev/null +++ b/import_task_checklist/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 . +# +################################################################## +from . import task_checklist diff --git a/import_task_checklist/models/task_checklist.py b/import_task_checklist/models/task_checklist.py new file mode 100644 index 000000000..495109214 --- /dev/null +++ b/import_task_checklist/models/task_checklist.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 . +# +################################################################## +from odoo import fields, models + + +class TaskChecklist(models.Model): + """Inheriting task checklist for adding company""" + _inherit = 'task.checklist' + + company_id = fields.Many2one( + comodel_name='res.company', + string='Company', + default=lambda self: self.env.company, + help="To add the company") diff --git a/import_task_checklist/security/ir.model.access.csv b/import_task_checklist/security/ir.model.access.csv new file mode 100644 index 000000000..5b34bd277 --- /dev/null +++ b/import_task_checklist/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink +access_import_task_checklist_user,access.import.task.checklist.user,model_import_task_checklist,base.group_user,1,1,1,1 diff --git a/import_task_checklist/security/task_checklist_security.xml b/import_task_checklist/security/task_checklist_security.xml new file mode 100644 index 000000000..4f5f9b350 --- /dev/null +++ b/import_task_checklist/security/task_checklist_security.xml @@ -0,0 +1,10 @@ + + + + + Task Checklist Multy Company Rule + + [('company_id','in', company_ids)] + + + diff --git a/import_task_checklist/static/description/assets/icons/check.png b/import_task_checklist/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/import_task_checklist/static/description/assets/icons/check.png differ diff --git a/import_task_checklist/static/description/assets/icons/chevron.png b/import_task_checklist/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/import_task_checklist/static/description/assets/icons/chevron.png differ diff --git a/import_task_checklist/static/description/assets/icons/cogs.png b/import_task_checklist/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/import_task_checklist/static/description/assets/icons/cogs.png differ diff --git a/import_task_checklist/static/description/assets/icons/consultation.png b/import_task_checklist/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/import_task_checklist/static/description/assets/icons/consultation.png differ diff --git a/import_task_checklist/static/description/assets/icons/ecom-black.png b/import_task_checklist/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/import_task_checklist/static/description/assets/icons/ecom-black.png differ diff --git a/import_task_checklist/static/description/assets/icons/education-black.png b/import_task_checklist/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/import_task_checklist/static/description/assets/icons/education-black.png differ diff --git a/import_task_checklist/static/description/assets/icons/hotel-black.png b/import_task_checklist/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/import_task_checklist/static/description/assets/icons/hotel-black.png differ diff --git a/import_task_checklist/static/description/assets/icons/license.png b/import_task_checklist/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/import_task_checklist/static/description/assets/icons/license.png differ diff --git a/import_task_checklist/static/description/assets/icons/lifebuoy.png b/import_task_checklist/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/import_task_checklist/static/description/assets/icons/lifebuoy.png differ diff --git a/import_task_checklist/static/description/assets/icons/manufacturing-black.png b/import_task_checklist/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/import_task_checklist/static/description/assets/icons/manufacturing-black.png differ diff --git a/import_task_checklist/static/description/assets/icons/pos-black.png b/import_task_checklist/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/import_task_checklist/static/description/assets/icons/pos-black.png differ diff --git a/import_task_checklist/static/description/assets/icons/puzzle.png b/import_task_checklist/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/import_task_checklist/static/description/assets/icons/puzzle.png differ diff --git a/import_task_checklist/static/description/assets/icons/restaurant-black.png b/import_task_checklist/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/import_task_checklist/static/description/assets/icons/restaurant-black.png differ diff --git a/import_task_checklist/static/description/assets/icons/service-black.png b/import_task_checklist/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/import_task_checklist/static/description/assets/icons/service-black.png differ diff --git a/import_task_checklist/static/description/assets/icons/trading-black.png b/import_task_checklist/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/import_task_checklist/static/description/assets/icons/trading-black.png differ diff --git a/import_task_checklist/static/description/assets/icons/training.png b/import_task_checklist/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/import_task_checklist/static/description/assets/icons/training.png differ diff --git a/import_task_checklist/static/description/assets/icons/update.png b/import_task_checklist/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/import_task_checklist/static/description/assets/icons/update.png differ diff --git a/import_task_checklist/static/description/assets/icons/user.png b/import_task_checklist/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/import_task_checklist/static/description/assets/icons/user.png differ diff --git a/import_task_checklist/static/description/assets/icons/wrench.png b/import_task_checklist/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/import_task_checklist/static/description/assets/icons/wrench.png differ diff --git a/import_task_checklist/static/description/assets/misc/Cybrosys R.png b/import_task_checklist/static/description/assets/misc/Cybrosys R.png new file mode 100755 index 000000000..da4058087 Binary files /dev/null and b/import_task_checklist/static/description/assets/misc/Cybrosys R.png differ diff --git a/import_task_checklist/static/description/assets/misc/categories.png b/import_task_checklist/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/import_task_checklist/static/description/assets/misc/categories.png differ diff --git a/import_task_checklist/static/description/assets/misc/check-box.png b/import_task_checklist/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/import_task_checklist/static/description/assets/misc/check-box.png differ diff --git a/import_task_checklist/static/description/assets/misc/compass.png b/import_task_checklist/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/import_task_checklist/static/description/assets/misc/compass.png differ diff --git a/import_task_checklist/static/description/assets/misc/corporate.png b/import_task_checklist/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/import_task_checklist/static/description/assets/misc/corporate.png differ diff --git a/import_task_checklist/static/description/assets/misc/customer-support.png b/import_task_checklist/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/import_task_checklist/static/description/assets/misc/customer-support.png differ diff --git a/import_task_checklist/static/description/assets/misc/cybrosys-logo.png b/import_task_checklist/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/import_task_checklist/static/description/assets/misc/cybrosys-logo.png differ diff --git a/import_task_checklist/static/description/assets/misc/features.png b/import_task_checklist/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/import_task_checklist/static/description/assets/misc/features.png differ diff --git a/import_task_checklist/static/description/assets/misc/logo.png b/import_task_checklist/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/import_task_checklist/static/description/assets/misc/logo.png differ diff --git a/import_task_checklist/static/description/assets/misc/pictures.png b/import_task_checklist/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/import_task_checklist/static/description/assets/misc/pictures.png differ diff --git a/import_task_checklist/static/description/assets/misc/pie-chart.png b/import_task_checklist/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/import_task_checklist/static/description/assets/misc/pie-chart.png differ diff --git a/import_task_checklist/static/description/assets/misc/right-arrow.png b/import_task_checklist/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/import_task_checklist/static/description/assets/misc/right-arrow.png differ diff --git a/import_task_checklist/static/description/assets/misc/star.png b/import_task_checklist/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/import_task_checklist/static/description/assets/misc/star.png differ diff --git a/import_task_checklist/static/description/assets/misc/support.png b/import_task_checklist/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/import_task_checklist/static/description/assets/misc/support.png differ diff --git a/import_task_checklist/static/description/assets/misc/whatsapp.png b/import_task_checklist/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/import_task_checklist/static/description/assets/misc/whatsapp.png differ diff --git a/import_task_checklist/static/description/assets/modules/1.jpg b/import_task_checklist/static/description/assets/modules/1.jpg new file mode 100644 index 000000000..08bbafeb6 Binary files /dev/null and b/import_task_checklist/static/description/assets/modules/1.jpg differ diff --git a/import_task_checklist/static/description/assets/modules/2.png b/import_task_checklist/static/description/assets/modules/2.png new file mode 100644 index 000000000..a1209a01f Binary files /dev/null and b/import_task_checklist/static/description/assets/modules/2.png differ diff --git a/import_task_checklist/static/description/assets/modules/3.jpg b/import_task_checklist/static/description/assets/modules/3.jpg new file mode 100644 index 000000000..3d171226b Binary files /dev/null and b/import_task_checklist/static/description/assets/modules/3.jpg differ diff --git a/import_task_checklist/static/description/assets/modules/4.jpg b/import_task_checklist/static/description/assets/modules/4.jpg new file mode 100644 index 000000000..1f3f2e27f Binary files /dev/null and b/import_task_checklist/static/description/assets/modules/4.jpg differ diff --git a/import_task_checklist/static/description/assets/modules/5.jpg b/import_task_checklist/static/description/assets/modules/5.jpg new file mode 100644 index 000000000..0db717519 Binary files /dev/null and b/import_task_checklist/static/description/assets/modules/5.jpg differ diff --git a/import_task_checklist/static/description/assets/modules/6.jpg b/import_task_checklist/static/description/assets/modules/6.jpg new file mode 100644 index 000000000..cd62a577c Binary files /dev/null and b/import_task_checklist/static/description/assets/modules/6.jpg differ diff --git a/import_task_checklist/static/description/assets/screenshots/hero.gif b/import_task_checklist/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..56993e0c4 Binary files /dev/null and b/import_task_checklist/static/description/assets/screenshots/hero.gif differ diff --git a/import_task_checklist/static/description/assets/screenshots/screenshot1.png b/import_task_checklist/static/description/assets/screenshots/screenshot1.png new file mode 100644 index 000000000..5fef000de Binary files /dev/null and b/import_task_checklist/static/description/assets/screenshots/screenshot1.png differ diff --git a/import_task_checklist/static/description/assets/screenshots/screenshot2.png b/import_task_checklist/static/description/assets/screenshots/screenshot2.png new file mode 100644 index 000000000..934a97982 Binary files /dev/null and b/import_task_checklist/static/description/assets/screenshots/screenshot2.png differ diff --git a/import_task_checklist/static/description/assets/screenshots/screenshot3.png b/import_task_checklist/static/description/assets/screenshots/screenshot3.png new file mode 100644 index 000000000..d8f2d06df Binary files /dev/null and b/import_task_checklist/static/description/assets/screenshots/screenshot3.png differ diff --git a/import_task_checklist/static/description/assets/screenshots/screenshot4.png b/import_task_checklist/static/description/assets/screenshots/screenshot4.png new file mode 100644 index 000000000..739536ec3 Binary files /dev/null and b/import_task_checklist/static/description/assets/screenshots/screenshot4.png differ diff --git a/import_task_checklist/static/description/assets/screenshots/screenshot5.png b/import_task_checklist/static/description/assets/screenshots/screenshot5.png new file mode 100644 index 000000000..54c64dfdb Binary files /dev/null and b/import_task_checklist/static/description/assets/screenshots/screenshot5.png differ diff --git a/import_task_checklist/static/description/assets/screenshots/screenshot6.png b/import_task_checklist/static/description/assets/screenshots/screenshot6.png new file mode 100644 index 000000000..b81676f7b Binary files /dev/null and b/import_task_checklist/static/description/assets/screenshots/screenshot6.png differ diff --git a/import_task_checklist/static/description/assets/screenshots/screenshot7.png b/import_task_checklist/static/description/assets/screenshots/screenshot7.png new file mode 100644 index 000000000..8e8bb1b15 Binary files /dev/null and b/import_task_checklist/static/description/assets/screenshots/screenshot7.png differ diff --git a/import_task_checklist/static/description/banner.jpg b/import_task_checklist/static/description/banner.jpg new file mode 100644 index 000000000..856b892ad Binary files /dev/null and b/import_task_checklist/static/description/banner.jpg differ diff --git a/import_task_checklist/static/description/icon.png b/import_task_checklist/static/description/icon.png new file mode 100644 index 000000000..bcf0dc56d Binary files /dev/null and b/import_task_checklist/static/description/icon.png differ diff --git a/import_task_checklist/static/description/index.html b/import_task_checklist/static/description/index.html new file mode 100644 index 000000000..469de5597 --- /dev/null +++ b/import_task_checklist/static/description/index.html @@ -0,0 +1,721 @@ + + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Import Employee Task Checklist in Project +

+

+ By Using This Module We Can Import Task Checklist From Both + CSV and EXCEL Files Through The xlrd Package in Odoo. +

+
+ +
+
+
+
+
+

+ Key Highlights +

+
+
+
+
+
+ +
+
+

+ Easy to import checklist through CSV and EXCEL file.

+
+
+
+
+
+
+ +
+
+

+ Available in Odoo 17.0 Community,Enterprise and Odoo.sh

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

+ Import Task Checklist menu under Configuration tab of + Project.

+
+
+
+
+
+
+ +
+
+

+ We can import both CSV and EXCEL files.

+
+
+
+
+
+
+ +
+
+

+ When we upload a file and clicking on the IMPORT button it + will create a new Task Checklist.

+
+
+
+
+
+
+ +
+
+

+ After uploading a file we can see the success message.

+
+
+
+
+
+
+ +
+
+

+ Imported Task Checklist is listed here

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

+ Multi Company Access for Task Checklist.

+
+
+
+
+
+
+
    +
  • + Available in Odoo 17.0 Community,Enterprise and Odoo.sh +
  • +
  • + + Easy to import checklist through CSV and EXCEL file. +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:28th August 2024 +
+

+ + Initial Commit for Import Employee Task Checklist in Project.

+
+
+
+
+
+
+
+

+ Related Products

+
+
+ +
+
+

+ Our Services

+ +
+
+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Customization

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Support

+
+
+
+
+
+
+ service-icon +
+
+

Hire + Odoo Developer

+
+
+
+
+ +
+
+ service-icon +
+
+

Odoo + Integration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Migration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Consultancy

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Licensing Consultancy

+
+
+
+
+
+
+

+ Our Industries

+ +
+
+
+
+
+
+ +

Trading

+

Easily procure and sell your products

+
+
+
+
+ +

POS

+

Easy configuration and convivial experience

+
+
+
+
+ +

+ Education

+

A platform for educational management

+
+
+
+
+ +

+ Manufacturing

+

Plan, track and schedule your operations

+
+
+
+
+ +

E-commerce & + Website

+

Mobile friendly, awe-inspiring product pages

+
+
+
+
+ +

Service + Management

+

Keep track of services and invoice

+
+
+
+
+ +

+ Restaurant

+

Run your bar or restaurant methodically

+
+
+
+
+ +

Hotel + Management

+

An all-inclusive hotel management application

+
+
+
+
+
+
+

+ Support

+
+
+
+
+
+
+
+ +
+ Need + Help? +

Got + questions or need help? Get in touch.

+
odoo@cybrosys.com +
+
+
+
+
+
+
+
+ +
+ WhatsApp +

Say hi to + us on WhatsApp!

+
+91 + 99456767686 +
+
+
+
+
+
+
+
+
+ + + + + + diff --git a/import_task_checklist/views/task_checklist_views.xml b/import_task_checklist/views/task_checklist_views.xml new file mode 100644 index 000000000..faa166634 --- /dev/null +++ b/import_task_checklist/views/task_checklist_views.xml @@ -0,0 +1,18 @@ + + + + + + task.checklist.view.tree.inherit.import.task.checklist + + task.checklist + + + + + + + + + diff --git a/import_task_checklist/wizard/__init__.py b/import_task_checklist/wizard/__init__.py new file mode 100644 index 000000000..ef1e5cd8f --- /dev/null +++ b/import_task_checklist/wizard/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 . +# +################################################################## +from . import import_task_checklist diff --git a/import_task_checklist/wizard/import_checklist_views.xml b/import_task_checklist/wizard/import_checklist_views.xml new file mode 100644 index 000000000..c076c1e4f --- /dev/null +++ b/import_task_checklist/wizard/import_checklist_views.xml @@ -0,0 +1,50 @@ + + + + + import.task.checklist.view.form + import.task.checklist + +
+ + + + + + + + + + + + +
+
+
+
+
+ + + Import Task Checklist + import.task.checklist + form + new + + + +
diff --git a/import_task_checklist/wizard/import_task_checklist.py b/import_task_checklist/wizard/import_task_checklist.py new file mode 100644 index 000000000..d8e7439e8 --- /dev/null +++ b/import_task_checklist/wizard/import_task_checklist.py @@ -0,0 +1,109 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 . +# +################################################################## +import base64 +import csv +import io +import xlrd +from odoo import fields, models, _ +from odoo.exceptions import UserError + + +class ImportTaskCheckList(models.TransientModel): + """To import task checklist, + here we can upload the files csv or xlsx format""" + _name = 'import.task.checklist' + _description = 'Import Task checklist from excel and csv' + + file_type = fields.Selection([('csv', 'CSV File'), ('xls', 'EXCEL File')], + string='Import File Type', default='csv', + help="Here we can choose the type of the file") + company_id = fields.Many2one('res.company', string="Company", + default=lambda self: self.env.company, + help="To get the current company") + file_content = fields.Binary(string='File Content', attachment=True, + required=True, help="To upload the file") + filename = fields.Char(string='File Name', required=True, + help="To get the file name") + + def action_import_task_checklist_xlsx(self): + """To import task checklist in xlsx format, + it will create a new checklist from this file""" + try: + book = xlrd.open_workbook( + file_contents=(base64.decodebytes(self.file_content))) + except xlrd.biffh.XLRDError: + raise UserError(_('Only excel files are supported.')) + for sheet in book.sheets(): + for row in range(sheet.nrows): + if row >= 1: + row_values = sheet.row_values(row) + main = self.env['task.checklist'].sudo().search( + [('name', '=', row_values[1])]) + name = main.mapped('name') + if row_values[1] not in name: + self.env['task.checklist'].sudo().create({ + 'name': row_values[2], + 'description': row_values[1], + }) + message = _("Successfully Imported!") + return { + 'type': 'ir.actions.client', + 'tag': 'display_notification', + 'params': { + 'message': message, + 'type': 'success', + 'sticky': False, + } + } + + def action_import_task_checklist_csv(self): + """To import task checklist in csv format, + it will create a new checklist from this file""" + try: + file = base64.b64decode(self.file_content) + data = io.StringIO(file.decode("utf-8")) + data.seek(0) + file_reader = [] + csv_reader = csv.reader(data, delimiter=',') + file_reader.extend(csv_reader) + file_reader.pop(0) + for row in file_reader: + main = self.env['task.checklist'].sudo().search( + [('name', '=', row[1])]) + name = main.mapped('name') + if row[1] not in name: + self.env['task.checklist'].sudo().create({ + 'name': row[2], + 'description': row[1], + }) + except: + raise UserError(_('Only csv files are supported.')) + message = _("Successfully Imported!") + return { + 'type': 'ir.actions.client', + 'tag': 'display_notification', + 'params': { + 'message': message, + 'type': 'success', + 'sticky': False, + } + }