diff --git a/odoo_product_tags/README.rst b/odoo_product_tags/README.rst new file mode 100644 index 000000000..40a63a1ea --- /dev/null +++ b/odoo_product_tags/README.rst @@ -0,0 +1,39 @@ +Odoo Product Tags +======= +* Odoo Product Tags module for Odoo 16. + +Installation +============ + - www.odoo.com/documentation/16.0/setup/install.html + - Install our custom addon + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.odoo.com/documentation/user/16.0/legal/licenses/licenses.html) + +Company +------- +* 'Cybrosys Techno Solutions '__ + +Credits +------- +* 'Cybrosys Techno Solutions '__ + +Contacts +-------- +* Mail Contact : odoo@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 +========== +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit https://www.cybrosys.com + +Further information +=================== +HTML Description: ``__ diff --git a/odoo_product_tags/__init__.py b/odoo_product_tags/__init__.py new file mode 100644 index 000000000..7ef4fa4c6 --- /dev/null +++ b/odoo_product_tags/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from . import models +from . import wizard diff --git a/odoo_product_tags/__manifest__.py b/odoo_product_tags/__manifest__.py new file mode 100644 index 000000000..f2762e457 --- /dev/null +++ b/odoo_product_tags/__manifest__.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +{ + 'name': "Odoo Product Tags", + 'version': '16.0.1.0.0', + 'summary': """Odoo Product Tags""", + "category": 'Inventory', + 'description': """Module helps to manage products easily using tags.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['base', 'sale', 'sale_management'], + 'data': [ + 'security/ir.model.access.csv', + 'views/product_tags_views.xml', + 'views/product_template_views.xml', + 'views/res_config_settings_views.xml', + 'wizard/wizard.xml', + ], + 'images': ['static/description/banner.png'], + 'license': "LGPL-3", + 'installable': True, + 'auto_install': False, + 'application': True +} diff --git a/odoo_product_tags/doc/RELEASE_NOTES.md b/odoo_product_tags/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..8f49544a6 --- /dev/null +++ b/odoo_product_tags/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 21.01.2023 +#### Version 16.0.1.0.0 +#### ADD +- Initial commit for Odoo Product Tags \ No newline at end of file diff --git a/odoo_product_tags/models/__init__.py b/odoo_product_tags/models/__init__.py new file mode 100644 index 000000000..165801a7e --- /dev/null +++ b/odoo_product_tags/models/__init__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from . import res_config_settings +from . import product_tags +from . import product_template + diff --git a/odoo_product_tags/models/product_tags.py b/odoo_product_tags/models/product_tags.py new file mode 100644 index 000000000..108b15d7c --- /dev/null +++ b/odoo_product_tags/models/product_tags.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import api, fields, models, _ +from random import randint + + +class ProductTags(models.Model): + _name = "product.tags" + _description = 'Product Tags' + _rec_name = "name" + _inherit = ['mail.thread', 'mail.activity.mixin'] + + def _random_color(self): + return randint(1, 11) + + name = fields.Char(required=1, copy=False, string='Name') + description = fields.Text(string='Description', translate=True) + tag_color = fields.Integer(string="Tag Color", default=_random_color) + product_tmpl_ids = fields.Many2many('product.template', string="Products") + diff --git a/odoo_product_tags/models/product_template.py b/odoo_product_tags/models/product_template.py new file mode 100644 index 000000000..955bd04fa --- /dev/null +++ b/odoo_product_tags/models/product_template.py @@ -0,0 +1,61 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import api, fields, models, _ +import ast + + +class ProductTemplate(models.Model): + _inherit = 'product.template' + + product_tags_ids = fields.Many2many( + "product.tags", string="Product Tags", help="Product Tags") + + @api.model + def create(self, vals): + """Inherited for passing the product Tags.""" + res = super(ProductTemplate, self).create(vals) + if not res.product_tags_ids: + pro_tag = self.env['ir.config_parameter'].sudo().get_param( + 'odoo_product_tags.product_tags_ids') + if pro_tag: + tag_ids = ast.literal_eval(pro_tag) + res.update({ + "product_tags_ids": [(6, 0, tag_ids)], + }) + + return res + else: + return res + + def action_apply_tags(self): + return { + 'name': 'Apply Product Tag', + 'type': 'ir.actions.act_window', + 'view_type': 'form', + 'view_mode': 'form', + 'res_model': 'product.tags.wizard', + 'context': { + 'default_product_ids': self.ids, + }, + 'target': 'new', + } + diff --git a/odoo_product_tags/models/res_config_settings.py b/odoo_product_tags/models/res_config_settings.py new file mode 100644 index 000000000..cd4746212 --- /dev/null +++ b/odoo_product_tags/models/res_config_settings.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import api, fields, models, _ +from ast import literal_eval + + +class ResConfigSettings(models.TransientModel): + _inherit = 'res.config.settings' + + product_tags_ids = fields.Many2many( + 'product.tags', string='Default Product Tags') + + def set_values(self): + res = super(ResConfigSettings, self).set_values() + self.env['ir.config_parameter'].set_param( + 'odoo_product_tags.product_tags_ids', + self.product_tags_ids.ids) + return res + + @api.model + def get_values(self): + res = super(ResConfigSettings, self).get_values() + params = self.env['ir.config_parameter'].sudo() + pro_tag_ids = params.get_param( + 'odoo_product_tags.product_tags_ids') + if pro_tag_ids: + res.update( + product_tags_ids=[(6, 0, literal_eval( + pro_tag_ids))] if pro_tag_ids else False) + return res + else: + return res + diff --git a/odoo_product_tags/security/ir.model.access.csv b/odoo_product_tags/security/ir.model.access.csv new file mode 100644 index 000000000..15d2208b2 --- /dev/null +++ b/odoo_product_tags/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_product_tags,product.tags,model_product_tags,base.group_user,1,1,1,1 +access_product_tags_wizard,product.tags.wizard,model_product_tags_wizard,base.group_user,1,1,1,1 diff --git a/odoo_product_tags/static/description/assets/icons/check.png b/odoo_product_tags/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/odoo_product_tags/static/description/assets/icons/check.png differ diff --git a/odoo_product_tags/static/description/assets/icons/chevron.png b/odoo_product_tags/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/odoo_product_tags/static/description/assets/icons/chevron.png differ diff --git a/odoo_product_tags/static/description/assets/icons/cogs.png b/odoo_product_tags/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/odoo_product_tags/static/description/assets/icons/cogs.png differ diff --git a/odoo_product_tags/static/description/assets/icons/consultation.png b/odoo_product_tags/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/odoo_product_tags/static/description/assets/icons/consultation.png differ diff --git a/odoo_product_tags/static/description/assets/icons/ecom-black.png b/odoo_product_tags/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/odoo_product_tags/static/description/assets/icons/ecom-black.png differ diff --git a/odoo_product_tags/static/description/assets/icons/education-black.png b/odoo_product_tags/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/odoo_product_tags/static/description/assets/icons/education-black.png differ diff --git a/odoo_product_tags/static/description/assets/icons/hotel-black.png b/odoo_product_tags/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/odoo_product_tags/static/description/assets/icons/hotel-black.png differ diff --git a/odoo_product_tags/static/description/assets/icons/license.png b/odoo_product_tags/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/odoo_product_tags/static/description/assets/icons/license.png differ diff --git a/odoo_product_tags/static/description/assets/icons/lifebuoy.png b/odoo_product_tags/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/odoo_product_tags/static/description/assets/icons/lifebuoy.png differ diff --git a/odoo_product_tags/static/description/assets/icons/logo.png b/odoo_product_tags/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/odoo_product_tags/static/description/assets/icons/logo.png differ diff --git a/odoo_product_tags/static/description/assets/icons/manufacturing-black.png b/odoo_product_tags/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/odoo_product_tags/static/description/assets/icons/manufacturing-black.png differ diff --git a/odoo_product_tags/static/description/assets/icons/pos-black.png b/odoo_product_tags/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/odoo_product_tags/static/description/assets/icons/pos-black.png differ diff --git a/odoo_product_tags/static/description/assets/icons/puzzle.png b/odoo_product_tags/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/odoo_product_tags/static/description/assets/icons/puzzle.png differ diff --git a/odoo_product_tags/static/description/assets/icons/restaurant-black.png b/odoo_product_tags/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/odoo_product_tags/static/description/assets/icons/restaurant-black.png differ diff --git a/odoo_product_tags/static/description/assets/icons/service-black.png b/odoo_product_tags/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/odoo_product_tags/static/description/assets/icons/service-black.png differ diff --git a/odoo_product_tags/static/description/assets/icons/trading-black.png b/odoo_product_tags/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/odoo_product_tags/static/description/assets/icons/trading-black.png differ diff --git a/odoo_product_tags/static/description/assets/icons/training.png b/odoo_product_tags/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/odoo_product_tags/static/description/assets/icons/training.png differ diff --git a/odoo_product_tags/static/description/assets/icons/update.png b/odoo_product_tags/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/odoo_product_tags/static/description/assets/icons/update.png differ diff --git a/odoo_product_tags/static/description/assets/icons/user.png b/odoo_product_tags/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/odoo_product_tags/static/description/assets/icons/user.png differ diff --git a/odoo_product_tags/static/description/assets/icons/wrench.png b/odoo_product_tags/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/odoo_product_tags/static/description/assets/icons/wrench.png differ diff --git a/odoo_product_tags/static/description/assets/modules/approval_image.png b/odoo_product_tags/static/description/assets/modules/approval_image.png new file mode 100644 index 000000000..84fe94e80 Binary files /dev/null and b/odoo_product_tags/static/description/assets/modules/approval_image.png differ diff --git a/odoo_product_tags/static/description/assets/modules/budget_image.png b/odoo_product_tags/static/description/assets/modules/budget_image.png new file mode 100644 index 000000000..fe6aa6fe4 Binary files /dev/null and b/odoo_product_tags/static/description/assets/modules/budget_image.png differ diff --git a/odoo_product_tags/static/description/assets/modules/export_image.png b/odoo_product_tags/static/description/assets/modules/export_image.png new file mode 100644 index 000000000..4e4ea0e51 Binary files /dev/null and b/odoo_product_tags/static/description/assets/modules/export_image.png differ diff --git a/odoo_product_tags/static/description/assets/modules/magento_image.png b/odoo_product_tags/static/description/assets/modules/magento_image.png new file mode 100644 index 000000000..39de0820f Binary files /dev/null and b/odoo_product_tags/static/description/assets/modules/magento_image.png differ diff --git a/odoo_product_tags/static/description/assets/modules/pos_image.png b/odoo_product_tags/static/description/assets/modules/pos_image.png new file mode 100644 index 000000000..c5932894b Binary files /dev/null and b/odoo_product_tags/static/description/assets/modules/pos_image.png differ diff --git a/odoo_product_tags/static/description/assets/modules/shopify_image.png b/odoo_product_tags/static/description/assets/modules/shopify_image.png new file mode 100644 index 000000000..c6d92c16d Binary files /dev/null and b/odoo_product_tags/static/description/assets/modules/shopify_image.png differ diff --git a/odoo_product_tags/static/description/assets/screenshots/hero.gif b/odoo_product_tags/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..38d87c4d2 Binary files /dev/null and b/odoo_product_tags/static/description/assets/screenshots/hero.gif differ diff --git a/odoo_product_tags/static/description/assets/screenshots/protag_1.png b/odoo_product_tags/static/description/assets/screenshots/protag_1.png new file mode 100644 index 000000000..481c9a607 Binary files /dev/null and b/odoo_product_tags/static/description/assets/screenshots/protag_1.png differ diff --git a/odoo_product_tags/static/description/assets/screenshots/protag_10.png b/odoo_product_tags/static/description/assets/screenshots/protag_10.png new file mode 100644 index 000000000..a1ef44200 Binary files /dev/null and b/odoo_product_tags/static/description/assets/screenshots/protag_10.png differ diff --git a/odoo_product_tags/static/description/assets/screenshots/protag_2.png b/odoo_product_tags/static/description/assets/screenshots/protag_2.png new file mode 100644 index 000000000..3613c7cac Binary files /dev/null and b/odoo_product_tags/static/description/assets/screenshots/protag_2.png differ diff --git a/odoo_product_tags/static/description/assets/screenshots/protag_3.png b/odoo_product_tags/static/description/assets/screenshots/protag_3.png new file mode 100644 index 000000000..dc48f8275 Binary files /dev/null and b/odoo_product_tags/static/description/assets/screenshots/protag_3.png differ diff --git a/odoo_product_tags/static/description/assets/screenshots/protag_4.png b/odoo_product_tags/static/description/assets/screenshots/protag_4.png new file mode 100644 index 000000000..1c2bdd351 Binary files /dev/null and b/odoo_product_tags/static/description/assets/screenshots/protag_4.png differ diff --git a/odoo_product_tags/static/description/assets/screenshots/protag_5.png b/odoo_product_tags/static/description/assets/screenshots/protag_5.png new file mode 100644 index 000000000..15f92576a Binary files /dev/null and b/odoo_product_tags/static/description/assets/screenshots/protag_5.png differ diff --git a/odoo_product_tags/static/description/assets/screenshots/protag_6.png b/odoo_product_tags/static/description/assets/screenshots/protag_6.png new file mode 100644 index 000000000..6b957c3cf Binary files /dev/null and b/odoo_product_tags/static/description/assets/screenshots/protag_6.png differ diff --git a/odoo_product_tags/static/description/assets/screenshots/protag_7.png b/odoo_product_tags/static/description/assets/screenshots/protag_7.png new file mode 100644 index 000000000..8249b1499 Binary files /dev/null and b/odoo_product_tags/static/description/assets/screenshots/protag_7.png differ diff --git a/odoo_product_tags/static/description/assets/screenshots/protag_8.png b/odoo_product_tags/static/description/assets/screenshots/protag_8.png new file mode 100644 index 000000000..732ece26a Binary files /dev/null and b/odoo_product_tags/static/description/assets/screenshots/protag_8.png differ diff --git a/odoo_product_tags/static/description/assets/screenshots/protag_9.png b/odoo_product_tags/static/description/assets/screenshots/protag_9.png new file mode 100644 index 000000000..8501895a5 Binary files /dev/null and b/odoo_product_tags/static/description/assets/screenshots/protag_9.png differ diff --git a/odoo_product_tags/static/description/assets/screenshots/stock_xlsx1.png b/odoo_product_tags/static/description/assets/screenshots/stock_xlsx1.png new file mode 100644 index 000000000..416af8f17 Binary files /dev/null and b/odoo_product_tags/static/description/assets/screenshots/stock_xlsx1.png differ diff --git a/odoo_product_tags/static/description/assets/screenshots/stock_xlsx2.png b/odoo_product_tags/static/description/assets/screenshots/stock_xlsx2.png new file mode 100644 index 000000000..1badd952d Binary files /dev/null and b/odoo_product_tags/static/description/assets/screenshots/stock_xlsx2.png differ diff --git a/odoo_product_tags/static/description/banner.png b/odoo_product_tags/static/description/banner.png new file mode 100644 index 000000000..c9861b066 Binary files /dev/null and b/odoo_product_tags/static/description/banner.png differ diff --git a/odoo_product_tags/static/description/hero.gif b/odoo_product_tags/static/description/hero.gif new file mode 100644 index 000000000..38d87c4d2 Binary files /dev/null and b/odoo_product_tags/static/description/hero.gif differ diff --git a/odoo_product_tags/static/description/icon.png b/odoo_product_tags/static/description/icon.png new file mode 100644 index 000000000..63969852a Binary files /dev/null and b/odoo_product_tags/static/description/icon.png differ diff --git a/odoo_product_tags/static/description/index.html b/odoo_product_tags/static/description/index.html new file mode 100644 index 000000000..6c25875e8 --- /dev/null +++ b/odoo_product_tags/static/description/index.html @@ -0,0 +1,656 @@ +
+
+
+
+ +
+
+
+ Community +
+ +
+
+
+
+ +
+
+
+

+ Odoo Product Tags

+

+ This module will help you manage products easily using tags. +

+ +
+
+ + + + +
+
+

+ Overview +

+
+ +
+

+ Odoo Product Tags module allows you to add product tags. You can assign multiple tags to a product and multiple products to a tag with a single click.

+ +
+
+ + +
+
+

+ Features +

+
+ +
+
+ +
+
+

+ Mass Update

+

+ Multiple product tags can be updated in the product template list view..

+
+
+ +
+
+ +
+
+

+ Default tags

+

+ When you create a new product, default tags are added.

+
+
+ +
+
+ +
+
+

+ Filter

+

+ Filter products related to a tag.

+
+
+ + +
+ +
+
+

+ Screenshots +

+
+
+

+ Go to Sales -> Products -> Product Tag.

+

+ +

+ +
+ +
+

+ Click on "Create" button to create new product tags, here you need to select tag name, description and color.

+

+ +

+ +
+ +
+

+ Product Template form view with product tags. +

+

+ +

+ +
+ +
+

+ Product Template list view with product tags. +

+

+ +

+ +
+ +
+

+ Filter the products related to a tag. +

+

+ +

+ + +
+ +
+

+ Assign or update product tags to multiple products.

+

+ +

+ + +
+ +
+

+ Select the default tag for products

+

+ +

+ +
+ + +
+

+ When new products are created, default tags are automatically added to the form 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?

+
+
+
+ + +
+ +
+ +
+ +
+ WhatsApp +
+
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ + +
\ No newline at end of file diff --git a/odoo_product_tags/views/product_tags_views.xml b/odoo_product_tags/views/product_tags_views.xml new file mode 100644 index 000000000..0bd68e884 --- /dev/null +++ b/odoo_product_tags/views/product_tags_views.xml @@ -0,0 +1,69 @@ + + + + product.tags.tree + product.tags + tree + + + + + + + + + + product.tags.form + product.tags + form + +
+ +
+

+ +

+
+ + + + + + + + + + + + + + + +
+
+ + + +
+
+
+
+ + + Product Tags + ir.actions.act_window + product.tags + tree,form,kanban + +

+ Create New Product Tags! +

+
+
+ + +
\ No newline at end of file diff --git a/odoo_product_tags/views/product_template_views.xml b/odoo_product_tags/views/product_template_views.xml new file mode 100644 index 000000000..6e796b4db --- /dev/null +++ b/odoo_product_tags/views/product_template_views.xml @@ -0,0 +1,62 @@ + + + + product.template.product.tags + product.template + + + + + + + + + + product.template.product.tags + product.template + + + +
+
+
+ + + +
+
+ + + product.template.product.tags + product.template + + + + + + + + + + product.template.search + product.template + + + + + + + + + +
diff --git a/odoo_product_tags/views/res_config_settings_views.xml b/odoo_product_tags/views/res_config_settings_views.xml new file mode 100644 index 000000000..1d0e3f49b --- /dev/null +++ b/odoo_product_tags/views/res_config_settings_views.xml @@ -0,0 +1,22 @@ + + + + + res.config.settings.view.form.inherit.product.tags + res.config.settings + + + +
+
+ Product Tags +
+
+
+
+
+
+
+
diff --git a/odoo_product_tags/wizard/__init__.py b/odoo_product_tags/wizard/__init__.py new file mode 100644 index 000000000..20a7f5c4b --- /dev/null +++ b/odoo_product_tags/wizard/__init__.py @@ -0,0 +1 @@ +from . import wizard \ No newline at end of file diff --git a/odoo_product_tags/wizard/wizard.py b/odoo_product_tags/wizard/wizard.py new file mode 100644 index 000000000..028db2b83 --- /dev/null +++ b/odoo_product_tags/wizard/wizard.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import api, fields, models, _ +import datetime + + +class ProductTagsWizard(models.TransientModel): + _name = 'product.tags.wizard' + _description = 'Product Tags Wizard' + + product_tags_ids = fields.Many2many( + "product.tags", string="Product Tags", help="Product Tags") + + product_ids = fields.Many2many( + 'product.template', string="Products", readonly=True) + + def action_apply_product_tags(self): + product_id = self.env['product.template'].sudo().browse( + self.env.context.get('active_ids')) + pro_tag_ids = self.product_tags_ids.ids + for product in product_id: + product.update({ + "product_tags_ids": [(6, 0, pro_tag_ids)], + }) + diff --git a/odoo_product_tags/wizard/wizard.xml b/odoo_product_tags/wizard/wizard.xml new file mode 100644 index 000000000..428ffc374 --- /dev/null +++ b/odoo_product_tags/wizard/wizard.xml @@ -0,0 +1,28 @@ + + + + product.tags.wizard.form + product.tags.wizard + form + +
+ + + + + + + + + +
+
+
+
\ No newline at end of file