diff --git a/project_task_unique_code/README.rst b/project_task_unique_code/README.rst new file mode 100644 index 000000000..8c12e44f0 --- /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..e204c6236 --- /dev/null +++ b/project_task_unique_code/__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 models diff --git a/project_task_unique_code/__manifest__.py b/project_task_unique_code/__manifest__.py new file mode 100644 index 000000000..1a1d6d8fd --- /dev/null +++ b/project_task_unique_code/__manifest__.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. +# +############################################################################## +{ + 'name': 'Project Task Unique Code', + 'version': '14.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': "https://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..e29d6af79 --- /dev/null +++ b/project_task_unique_code/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 03.01.2023 +#### Version 14.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..a292f0fae --- /dev/null +++ b/project_task_unique_code/models/__init__.py @@ -0,0 +1,22 @@ +# -*- 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..f269655e5 --- /dev/null +++ b/project_task_unique_code/models/project.py @@ -0,0 +1,52 @@ +# -*- 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 models""" +from odoo import api, fields, models + + +class Project(models.Model): + """project.project inherit""" + _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, help="Project Sequence") + + _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 project 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..76a476ff7 --- /dev/null +++ b/project_task_unique_code/models/project_task.py @@ -0,0 +1,44 @@ +# -*- 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 models""" +from odoo import api, fields, models + + +class ProjectTask(models.Model): + """model project.task""" + _inherit = 'project.task' + + unique_code = fields.Char(string="Unique Code", readonly=True, + help="Auto generated code for task") + + _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/approval_image.png b/project_task_unique_code/static/description/assets/modules/approval_image.png new file mode 100644 index 000000000..84fe94e80 Binary files /dev/null and b/project_task_unique_code/static/description/assets/modules/approval_image.png differ diff --git a/project_task_unique_code/static/description/assets/modules/budget_image.png b/project_task_unique_code/static/description/assets/modules/budget_image.png new file mode 100644 index 000000000..fe6aa6fe4 Binary files /dev/null and b/project_task_unique_code/static/description/assets/modules/budget_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..4e4ea0e51 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/magento_image.png b/project_task_unique_code/static/description/assets/modules/magento_image.png new file mode 100644 index 000000000..39de0820f Binary files /dev/null and b/project_task_unique_code/static/description/assets/modules/magento_image.png differ diff --git a/project_task_unique_code/static/description/assets/modules/pos_image.png b/project_task_unique_code/static/description/assets/modules/pos_image.png new file mode 100644 index 000000000..c5932894b Binary files /dev/null and b/project_task_unique_code/static/description/assets/modules/pos_image.png differ diff --git a/project_task_unique_code/static/description/assets/modules/shopify_image.png b/project_task_unique_code/static/description/assets/modules/shopify_image.png new file mode 100644 index 000000000..c6d92c16d Binary files /dev/null and b/project_task_unique_code/static/description/assets/modules/shopify_image.png differ diff --git a/project_task_unique_code/static/description/assets/screenshots/1png.png b/project_task_unique_code/static/description/assets/screenshots/1png.png new file mode 100644 index 000000000..7a278e4e2 Binary files /dev/null and b/project_task_unique_code/static/description/assets/screenshots/1png.png differ diff --git a/project_task_unique_code/static/description/assets/screenshots/2.png b/project_task_unique_code/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..5e7e57492 Binary files /dev/null and b/project_task_unique_code/static/description/assets/screenshots/2.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..8736a2acb 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..e37b2fbc3 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..34c5aa383 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..d1d6d24be 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..ec8fe4b6f 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..2adda25b4 --- /dev/null +++ b/project_task_unique_code/static/description/index.html @@ -0,0 +1,576 @@ +
+
+
+
+ +
+
+
+ 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.

+ +
+
+ + +
+
+

+ Features +

+
+ +
+
+ +
+
+

+ Community & Enterprise Support

+

+ Available in Odoo 14.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..589db7b0b --- /dev/null +++ b/project_task_unique_code/views/project_task_views.xml @@ -0,0 +1,39 @@ + + + + + + project.task.form.inherit.code + project.task + + + + + + + + + + project.task.tree.inherit.code + project.task + + + + + + + + + + project.task.kanban.inherit.code + 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..2128f5ca5 --- /dev/null +++ b/project_task_unique_code/views/project_views.xml @@ -0,0 +1,35 @@ + + + + + + project.project.form.inherit.code + project.project + + + +
+
+
+
+ +
+
+
+ + + project.project.view.form.simplified.inherit.code + project.project + + + + + + + + + +
+
\ No newline at end of file