diff --git a/project_task_unique_code/README.rst b/project_task_unique_code/README.rst new file mode 100755 index 000000000..79b84d4d8 --- /dev/null +++ b/project_task_unique_code/README.rst @@ -0,0 +1,41 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Project Task Unique Code +======================= +This module helps to generate unique code for tasks. + +Configuration +============= +No additional configuration + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +Developer: Sagarika B @cybrosys, 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/project_task_unique_code/__init__.py b/project_task_unique_code/__init__.py new file mode 100644 index 000000000..43005c07c --- /dev/null +++ b/project_task_unique_code/__init__.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Sagarika B (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +############################################################################## +from . import models diff --git a/project_task_unique_code/__manifest__.py b/project_task_unique_code/__manifest__.py new file mode 100644 index 000000000..ac1114753 --- /dev/null +++ b/project_task_unique_code/__manifest__.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Sagarika B (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +############################################################################## +{ + 'name': 'Project Task Unique Code', + 'version': '15.0.1.0.0', + 'summary': """Auto Generated Task Unique Code""", + 'description': """"This module helps you to track each tasks with the + unique code which is generated automatically.""", + 'category': 'Services/Project', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "http://www.cybrosys.com", + 'depends': ['base', 'project'], + 'data': [ + 'views/project_views.xml', + 'views/project_task_views.xml' + ], + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/project_task_unique_code/doc/RELEASE_NOTES.md b/project_task_unique_code/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..ec3930ce4 --- /dev/null +++ b/project_task_unique_code/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 03.01.2023 +#### Version 15.0.1.0.0 +#### ADD + +- Initial commit for Project Task Unique Code diff --git a/project_task_unique_code/models/__init__.py b/project_task_unique_code/models/__init__.py new file mode 100644 index 000000000..88b9e2f58 --- /dev/null +++ b/project_task_unique_code/models/__init__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Sagarika B (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +############################################################################## +from . import project +from . import project_task diff --git a/project_task_unique_code/models/project.py b/project_task_unique_code/models/project.py new file mode 100644 index 000000000..b9b50df2b --- /dev/null +++ b/project_task_unique_code/models/project.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Sagarika B (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +############################################################################## +"""project related models""" +from odoo import api, fields, models + + +class Project(models.Model): + """inherit project.project""" + _inherit = "project.project" + + project_short_code = fields.Char(string="Short Code", required=True, + help="Set a short code here and this will" + " be used to generate serial number " + "for the project's tasks") + sequence_id = fields.Many2one( + 'ir.sequence', 'Reference Sequence', + check_company=True, copy=False) + + _sql_constraints = [ + ('project_code_uniq', 'unique(project_short_code, company_id)', + 'The project code must be unique per company!'), + ] + + @api.model_create_multi + def create(self, vals_list): + """extend create method to create sequence""" + for vals in vals_list: + if 'sequence_id' not in vals or not vals['sequence_id']: + vals['sequence_id'] = self.env['ir.sequence'].sudo().create({ + 'name': vals['name'] + ' Project Sequence', + 'prefix': vals['project_short_code'] + '-', 'padding': 3, + 'company_id': vals.get('company_id') or self.env.company.id, + }).id + return super().create(vals_list) diff --git a/project_task_unique_code/models/project_task.py b/project_task_unique_code/models/project_task.py new file mode 100644 index 000000000..b9f44eac3 --- /dev/null +++ b/project_task_unique_code/models/project_task.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Sagarika B (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +############################################################################## +"""task related models""" +from odoo import api, fields, models + + +class ProjectTask(models.Model): + """inherit project.task model""" + _inherit = 'project.task' + + unique_code = fields.Char(string="Unique Code", readonly=True) + + _sql_constraints = [ + ('unique_code', 'unique(unique_code, company_id)', + 'Code must be unique per company!'), + ] + + @api.model_create_multi + def create(self, vals_list): + """extend create method to generate code""" + for vals in vals_list: + project = self.env['project.project'].browse(vals.get('project_id')) + if project.sequence_id: + vals['unique_code'] = project.sequence_id.next_by_id() + return super().create(vals_list) diff --git a/project_task_unique_code/static/description/assets/icons/check.png b/project_task_unique_code/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/project_task_unique_code/static/description/assets/icons/check.png differ diff --git a/project_task_unique_code/static/description/assets/icons/chevron.png b/project_task_unique_code/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/project_task_unique_code/static/description/assets/icons/chevron.png differ diff --git a/project_task_unique_code/static/description/assets/icons/cogs.png b/project_task_unique_code/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/project_task_unique_code/static/description/assets/icons/cogs.png differ diff --git a/project_task_unique_code/static/description/assets/icons/consultation.png b/project_task_unique_code/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/project_task_unique_code/static/description/assets/icons/consultation.png differ diff --git a/project_task_unique_code/static/description/assets/icons/ecom-black.png b/project_task_unique_code/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/project_task_unique_code/static/description/assets/icons/ecom-black.png differ diff --git a/project_task_unique_code/static/description/assets/icons/education-black.png b/project_task_unique_code/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/project_task_unique_code/static/description/assets/icons/education-black.png differ diff --git a/project_task_unique_code/static/description/assets/icons/hotel-black.png b/project_task_unique_code/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/project_task_unique_code/static/description/assets/icons/hotel-black.png differ diff --git a/project_task_unique_code/static/description/assets/icons/license.png b/project_task_unique_code/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/project_task_unique_code/static/description/assets/icons/license.png differ diff --git a/project_task_unique_code/static/description/assets/icons/lifebuoy.png b/project_task_unique_code/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/project_task_unique_code/static/description/assets/icons/lifebuoy.png differ diff --git a/project_task_unique_code/static/description/assets/icons/logo.png b/project_task_unique_code/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/project_task_unique_code/static/description/assets/icons/logo.png differ diff --git a/project_task_unique_code/static/description/assets/icons/manufacturing-black.png b/project_task_unique_code/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/project_task_unique_code/static/description/assets/icons/manufacturing-black.png differ diff --git a/project_task_unique_code/static/description/assets/icons/pos-black.png b/project_task_unique_code/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/project_task_unique_code/static/description/assets/icons/pos-black.png differ diff --git a/project_task_unique_code/static/description/assets/icons/puzzle.png b/project_task_unique_code/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/project_task_unique_code/static/description/assets/icons/puzzle.png differ diff --git a/project_task_unique_code/static/description/assets/icons/restaurant-black.png b/project_task_unique_code/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/project_task_unique_code/static/description/assets/icons/restaurant-black.png differ diff --git a/project_task_unique_code/static/description/assets/icons/service-black.png b/project_task_unique_code/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/project_task_unique_code/static/description/assets/icons/service-black.png differ diff --git a/project_task_unique_code/static/description/assets/icons/trading-black.png b/project_task_unique_code/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/project_task_unique_code/static/description/assets/icons/trading-black.png differ diff --git a/project_task_unique_code/static/description/assets/icons/training.png b/project_task_unique_code/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/project_task_unique_code/static/description/assets/icons/training.png differ diff --git a/project_task_unique_code/static/description/assets/icons/update.png b/project_task_unique_code/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/project_task_unique_code/static/description/assets/icons/update.png differ diff --git a/project_task_unique_code/static/description/assets/icons/user.png b/project_task_unique_code/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/project_task_unique_code/static/description/assets/icons/user.png differ diff --git a/project_task_unique_code/static/description/assets/icons/wrench.png b/project_task_unique_code/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/project_task_unique_code/static/description/assets/icons/wrench.png differ diff --git a/project_task_unique_code/static/description/assets/modules/barcode_image.png b/project_task_unique_code/static/description/assets/modules/barcode_image.png new file mode 100644 index 000000000..cfb5be33c Binary files /dev/null and b/project_task_unique_code/static/description/assets/modules/barcode_image.png differ diff --git a/project_task_unique_code/static/description/assets/modules/biometric_image.png b/project_task_unique_code/static/description/assets/modules/biometric_image.png new file mode 100644 index 000000000..a0969fcb5 Binary files /dev/null and b/project_task_unique_code/static/description/assets/modules/biometric_image.png differ diff --git a/project_task_unique_code/static/description/assets/modules/export_image.png b/project_task_unique_code/static/description/assets/modules/export_image.png new file mode 100644 index 000000000..492980ad0 Binary files /dev/null and b/project_task_unique_code/static/description/assets/modules/export_image.png differ diff --git a/project_task_unique_code/static/description/assets/modules/login_image.png b/project_task_unique_code/static/description/assets/modules/login_image.png new file mode 100644 index 000000000..4fbe85ac1 Binary files /dev/null and b/project_task_unique_code/static/description/assets/modules/login_image.png differ diff --git a/project_task_unique_code/static/description/assets/modules/payroll_image.png b/project_task_unique_code/static/description/assets/modules/payroll_image.png new file mode 100644 index 000000000..7f2815273 Binary files /dev/null and b/project_task_unique_code/static/description/assets/modules/payroll_image.png differ diff --git a/project_task_unique_code/static/description/assets/modules/sale_image.png b/project_task_unique_code/static/description/assets/modules/sale_image.png new file mode 100644 index 000000000..004c61a9e Binary files /dev/null and b/project_task_unique_code/static/description/assets/modules/sale_image.png differ diff --git a/project_task_unique_code/static/description/assets/screenshots/11.png b/project_task_unique_code/static/description/assets/screenshots/11.png new file mode 100644 index 000000000..2cd722d5d Binary files /dev/null and b/project_task_unique_code/static/description/assets/screenshots/11.png differ diff --git a/project_task_unique_code/static/description/assets/screenshots/22.png b/project_task_unique_code/static/description/assets/screenshots/22.png new file mode 100644 index 000000000..5526ec727 Binary files /dev/null and b/project_task_unique_code/static/description/assets/screenshots/22.png differ diff --git a/project_task_unique_code/static/description/assets/screenshots/3.png b/project_task_unique_code/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..f18b8229b Binary files /dev/null and b/project_task_unique_code/static/description/assets/screenshots/3.png differ diff --git a/project_task_unique_code/static/description/assets/screenshots/4.png b/project_task_unique_code/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..544cdb2f6 Binary files /dev/null and b/project_task_unique_code/static/description/assets/screenshots/4.png differ diff --git a/project_task_unique_code/static/description/assets/screenshots/hero.gif b/project_task_unique_code/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..3f33f4ae0 Binary files /dev/null and b/project_task_unique_code/static/description/assets/screenshots/hero.gif differ diff --git a/project_task_unique_code/static/description/banner.png b/project_task_unique_code/static/description/banner.png new file mode 100644 index 000000000..45b2bbfbc Binary files /dev/null and b/project_task_unique_code/static/description/banner.png differ diff --git a/project_task_unique_code/static/description/icon.png b/project_task_unique_code/static/description/icon.png new file mode 100644 index 000000000..d6577d69d Binary files /dev/null and b/project_task_unique_code/static/description/icon.png differ diff --git a/project_task_unique_code/static/description/index.html b/project_task_unique_code/static/description/index.html new file mode 100644 index 000000000..763edad6a --- /dev/null +++ b/project_task_unique_code/static/description/index.html @@ -0,0 +1,627 @@ +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+ +
+
+
+
+ +
+
+
+

+ Project Task Unique Code

+

+ Auto Generated Task Unique Code +

+ +
+
+ + + + +
+
+

+ Overview +

+
+ +
+

+ This module helps you to track each tasks with the unique code which + is generated automatically.For projects a code can be set which will be used to generate + the unique serial code for that project's tasks.Hence, this makes the tracking of tracks + by project easy and convenient for the users.

+ +
+
+ +
+
+

+ Configuration +

+
+ +
+

+ No additional configuration required

+ +
+
+ + +
+
+

+ Features +

+
+ +
+
+ +
+
+

+ Community & Enterprise Support

+

+ Available in Odoo 15.0 Community and Enterprise.

+
+
+
+
+ +
+
+

+ Code for Project.

+

+ Configure Code under Project on creation.

+
+
+ +
+
+ +
+
+

+ Auto generated Serial Number for task.

+

+ Serial Number is generated on task creation.

+
+
+ +
+ +
+
+

+ Screenshots +

+
+
+

+ Code configuration under Project on creation

+ +
+ +
+

+ Code can be set from Project quick create form.

+ +
+ +
+

+ Serial Number is automatically generated on task creation

+ +
+ + +
+

+ Serial Number is added in the task list view

+ +
+ + +
+ + + +
+
+

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/project_task_unique_code/views/project_task_views.xml b/project_task_unique_code/views/project_task_views.xml new file mode 100644 index 000000000..323f6a537 --- /dev/null +++ b/project_task_unique_code/views/project_task_views.xml @@ -0,0 +1,51 @@ + + + + + + project task code + project.task + + + + + + + + + + project task code + project.task + + + + + + + + + + project task code + project.task + + + + + + + + + + project.task.form.quick_create + project.task + + + + + + + + + + + \ No newline at end of file diff --git a/project_task_unique_code/views/project_views.xml b/project_task_unique_code/views/project_views.xml new file mode 100644 index 000000000..fc9c76a18 --- /dev/null +++ b/project_task_unique_code/views/project_views.xml @@ -0,0 +1,30 @@ + + + + + + project unique code + project.project + + + + + + + + + + + project.project.view.form.simplified + project.project + + + + + + + + + + + \ No newline at end of file