diff --git a/import_task_checklist/README.rst b/import_task_checklist/README.rst new file mode 100644 index 000000000..fa3c4bb49 --- /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 16 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: (V16) Thasni CP, 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..90550e153 --- /dev/null +++ b/import_task_checklist/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Thasni CP (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 +# 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..cb80b4d1a --- /dev/null +++ b/import_task_checklist/__manifest__.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Thasni CP (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 +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## +{ + 'name': 'Import Employee Task Checklist in Project', + 'version': '16.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..aef516aef --- /dev/null +++ b/import_task_checklist/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 03.11.2023 +#### Version 16.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..b7f1a7a1e --- /dev/null +++ b/import_task_checklist/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Thasni CP (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..1b507272a --- /dev/null +++ b/import_task_checklist/models/task_checklist.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Thasni CP (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 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/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.png b/import_task_checklist/static/description/assets/modules/1.png new file mode 100644 index 000000000..8047cf484 Binary files /dev/null and b/import_task_checklist/static/description/assets/modules/1.png differ diff --git a/import_task_checklist/static/description/assets/modules/2.jpg b/import_task_checklist/static/description/assets/modules/2.jpg new file mode 100644 index 000000000..9e2de064a Binary files /dev/null and b/import_task_checklist/static/description/assets/modules/2.jpg differ diff --git a/import_task_checklist/static/description/assets/modules/3.png b/import_task_checklist/static/description/assets/modules/3.png new file mode 100644 index 000000000..d0a1ba017 Binary files /dev/null and b/import_task_checklist/static/description/assets/modules/3.png differ diff --git a/import_task_checklist/static/description/assets/modules/4.png b/import_task_checklist/static/description/assets/modules/4.png new file mode 100644 index 000000000..6c8c8adc3 Binary files /dev/null and b/import_task_checklist/static/description/assets/modules/4.png differ diff --git a/import_task_checklist/static/description/assets/modules/5.png b/import_task_checklist/static/description/assets/modules/5.png new file mode 100644 index 000000000..4e8874e3f Binary files /dev/null and b/import_task_checklist/static/description/assets/modules/5.png differ diff --git a/import_task_checklist/static/description/assets/modules/6.png b/import_task_checklist/static/description/assets/modules/6.png new file mode 100644 index 000000000..5acf9a06a Binary files /dev/null and b/import_task_checklist/static/description/assets/modules/6.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..32e68964b 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/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/task_check_list_csv.csv b/import_task_checklist/static/description/assets/screenshots/task_check_list_csv.csv new file mode 100644 index 000000000..d16b7c5bc --- /dev/null +++ b/import_task_checklist/static/description/assets/screenshots/task_check_list_csv.csv @@ -0,0 +1,5 @@ +Name,Description +User,User assigned for the task +Employee,Employee assigned for the task +Equipment,Equipment used in the task +Completed,Task Completed diff --git a/import_task_checklist/static/description/assets/screenshots/task_checklist_sample_xlx.xlsx b/import_task_checklist/static/description/assets/screenshots/task_checklist_sample_xlx.xlsx new file mode 100644 index 000000000..4d2f9d520 Binary files /dev/null and b/import_task_checklist/static/description/assets/screenshots/task_checklist_sample_xlx.xlsx 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.jpg b/import_task_checklist/static/description/banner.jpg new file mode 100644 index 000000000..0d707dbba 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..17c7f3e46 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..ceebfaab4 --- /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

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

+ Explore This + Module

+
+ + + + +
+
+ +
+

+ 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. +
+
+
+
+ + + +
+
+ +
+

+ 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

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

+ Related + 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

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

+ Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need + help? Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on + WhatsApp!

+ +

+ +91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+ \ 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..ea3203cbe --- /dev/null +++ b/import_task_checklist/wizard/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Thasni CP (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..e2ca71f24 --- /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..0528dbdea --- /dev/null +++ b/import_task_checklist/wizard/import_task_checklist.py @@ -0,0 +1,109 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Thasni CP (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_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[0], + '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[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, + } + }