diff --git a/import_task_checklist/README.rst b/import_task_checklist/README.rst new file mode 100644 index 000000000..93e3a83e2 --- /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 15 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 +------- +General Public License, Version 3 (LGPL v3). +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Credits +------- +Developer: (V15) Mohammed Dilshad Tk, 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..a55513b69 --- /dev/null +++ b/import_task_checklist/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Mohammed Dilshad TK (odoo@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 . +# +############################################################################### +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..2a063c4c0 --- /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: Mohammed Dilshad TK (odoo@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 . +# +############################################################################### +{ + 'name': 'Import Employee Task Checklist in Project', + 'version': '15.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.png'], + '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..ccbd488f4 --- /dev/null +++ b/import_task_checklist/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 19.07.2024 +#### Version 15.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..7259bbbc9 --- /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: Mohammed Dilshad TK (odoo@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 . +# +############################################################################### +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..68b0d85a9 --- /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: Mohammed Dilshad TK (odoo@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 . +# +############################################################################### +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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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/logo.png b/import_task_checklist/static/description/assets/icons/logo.png new file mode 100755 index 000000000..478462d3e Binary files /dev/null and b/import_task_checklist/static/description/assets/icons/logo.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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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 100755 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/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/budget_image.png b/import_task_checklist/static/description/assets/modules/budget_image.png new file mode 100755 index 000000000..b50130c7d Binary files /dev/null and b/import_task_checklist/static/description/assets/modules/budget_image.png differ diff --git a/import_task_checklist/static/description/assets/modules/credit_image.png b/import_task_checklist/static/description/assets/modules/credit_image.png new file mode 100755 index 000000000..3ad04ecfd Binary files /dev/null and b/import_task_checklist/static/description/assets/modules/credit_image.png differ diff --git a/import_task_checklist/static/description/assets/modules/employee_image.png b/import_task_checklist/static/description/assets/modules/employee_image.png new file mode 100755 index 000000000..30ad58232 Binary files /dev/null and b/import_task_checklist/static/description/assets/modules/employee_image.png differ diff --git a/import_task_checklist/static/description/assets/modules/export_image.png b/import_task_checklist/static/description/assets/modules/export_image.png new file mode 100755 index 000000000..492980ad0 Binary files /dev/null and b/import_task_checklist/static/description/assets/modules/export_image.png differ diff --git a/import_task_checklist/static/description/assets/modules/gantt_image.png b/import_task_checklist/static/description/assets/modules/gantt_image.png new file mode 100755 index 000000000..1ae7cfe3b Binary files /dev/null and b/import_task_checklist/static/description/assets/modules/gantt_image.png differ diff --git a/import_task_checklist/static/description/assets/modules/quotation_image.png b/import_task_checklist/static/description/assets/modules/quotation_image.png new file mode 100755 index 000000000..499b1a72f Binary files /dev/null and b/import_task_checklist/static/description/assets/modules/quotation_image.png 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..fe899e0e0 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/success_msg.png b/import_task_checklist/static/description/assets/screenshots/success_msg.png new file mode 100644 index 000000000..510aeea49 Binary files /dev/null and b/import_task_checklist/static/description/assets/screenshots/success_msg.png differ diff --git a/import_task_checklist/static/description/assets/screenshots/task1.png b/import_task_checklist/static/description/assets/screenshots/task1.png new file mode 100644 index 000000000..7876c4402 Binary files /dev/null and b/import_task_checklist/static/description/assets/screenshots/task1.png differ diff --git a/import_task_checklist/static/description/assets/screenshots/task2.png b/import_task_checklist/static/description/assets/screenshots/task2.png new file mode 100644 index 000000000..d3e094275 Binary files /dev/null and b/import_task_checklist/static/description/assets/screenshots/task2.png differ diff --git a/import_task_checklist/static/description/assets/screenshots/tm03.png b/import_task_checklist/static/description/assets/screenshots/tm03.png new file mode 100644 index 000000000..bd4fa72ac Binary files /dev/null and b/import_task_checklist/static/description/assets/screenshots/tm03.png differ diff --git a/import_task_checklist/static/description/assets/screenshots/tm04.png b/import_task_checklist/static/description/assets/screenshots/tm04.png new file mode 100644 index 000000000..66889c516 Binary files /dev/null and b/import_task_checklist/static/description/assets/screenshots/tm04.png differ diff --git a/import_task_checklist/static/description/assets/screenshots/tm1.png b/import_task_checklist/static/description/assets/screenshots/tm1.png new file mode 100644 index 000000000..e62b308d5 Binary files /dev/null and b/import_task_checklist/static/description/assets/screenshots/tm1.png differ diff --git a/import_task_checklist/static/description/assets/screenshots/tm2.png b/import_task_checklist/static/description/assets/screenshots/tm2.png new file mode 100644 index 000000000..4f15828b2 Binary files /dev/null and b/import_task_checklist/static/description/assets/screenshots/tm2.png differ diff --git a/import_task_checklist/static/description/assets/screenshots/tm5.png b/import_task_checklist/static/description/assets/screenshots/tm5.png new file mode 100644 index 000000000..43124a321 Binary files /dev/null and b/import_task_checklist/static/description/assets/screenshots/tm5.png differ diff --git a/import_task_checklist/static/description/assets/screenshots/tm6.png b/import_task_checklist/static/description/assets/screenshots/tm6.png new file mode 100644 index 000000000..39fd0596f Binary files /dev/null and b/import_task_checklist/static/description/assets/screenshots/tm6.png differ diff --git a/import_task_checklist/static/description/banner.png b/import_task_checklist/static/description/banner.png new file mode 100644 index 000000000..bbbbb3354 Binary files /dev/null and b/import_task_checklist/static/description/banner.png 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..04a209f85 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 100755 index 000000000..33be71867 --- /dev/null +++ b/import_task_checklist/static/description/index.html @@ -0,0 +1,632 @@ +
+
+
+
+ +
+
+
+ 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 +

+ +
+
+ + +
+
+

+ Overview +

+
+
+

This module allows to import checklist of a task via EXCEL and CSV + files.

+
+
+
+
+

+ Features +

+
+
+
+ +
+
+

+ Easy to import checklist through CSV and EXCEL file.

+
+
+
+
+ +
+
+

+ Company wise checklists.

+
+
+
+
+
+

+ Screenshots +

+
+
+

+ 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

+ + +
+
+ +
+
+

Suggested Products

+
+ +
+
+ + + +
+
+
+

Our Services

+
+
+ +
+
+ +
+
+ Odoo + Customization
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Support
+
+ + +
+
+ +
+
+ Hire + Odoo + Developer
+
+ +
+
+ +
+
+ Odoo + Integration
+
+ +
+
+ +
+
+ Odoo + Migration
+
+ + +
+
+ +
+
+ Odoo + Consultancy
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ 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

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

Need Help?

+
+
+
+ + +
+ +
+ + +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ + +
\ No newline at end of file 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..b08207e3f --- /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..235f5db1a --- /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: Mohammed Dilshad TK (odoo@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 . +# +############################################################################### +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..a71b31593 --- /dev/null +++ b/import_task_checklist/wizard/import_checklist_views.xml @@ -0,0 +1,41 @@ + + + + + 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..ddee7d96f --- /dev/null +++ b/import_task_checklist/wizard/import_task_checklist.py @@ -0,0 +1,107 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Mohammed Dilshad TK (odoo@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 . +# +############################################################################### +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(self): + """To import task checklist in xlsx format and csv format + it will create a new checklist from this file.""" + if self.file_type == 'xls': + 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[0], + 'description': row_values[1], + }) + message = _("Successfully Imported!") + return { + 'type': 'ir.actions.client', + 'tag': 'display_notification', + 'params': { + 'message': message, + 'type': 'success', + 'sticky': False, + } + } + else: + 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[0], + '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, + } + }