diff --git a/mass_price_update/README.rst b/mass_price_update/README.rst new file mode 100755 index 000000000..a8f90c7e8 --- /dev/null +++ b/mass_price_update/README.rst @@ -0,0 +1,46 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Mass Price Update +================= +This module allow to update the price/cost of products by percentage. + +Configuration +============= +Add the users to the new security group 'Update Product Price' to give access to the new menu. + +License +------- +General Public License, Version 3 (AGPL v3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: (V18) Manasa T P, 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/mass_price_update/__init__.py b/mass_price_update/__init__.py new file mode 100644 index 000000000..e9728f228 --- /dev/null +++ b/mass_price_update/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Manasa T P (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. +# If not, see . +# +################################################################################ +from . import wizard diff --git a/mass_price_update/__manifest__.py b/mass_price_update/__manifest__.py new file mode 100644 index 000000000..d56ae7ace --- /dev/null +++ b/mass_price_update/__manifest__.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Manasa T P (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. +# If not, see . +# +################################################################################ +{ + 'name': 'Mass Price Update', + 'version': '18.0.1.0.0', + 'category': 'Warehouse', + 'summary': """Update the sales price and the cost of any product by + percentage""", + 'description': """This module allows to update more than one products sales + and cost price by single click""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['stock'], + 'data': [ + 'security/mass_price_update_groups.xml', + 'security/ir.model.access.csv', + 'wizard/mass_price_update_views.xml' + ], + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/mass_price_update/doc/RELEASE_NOTES.md b/mass_price_update/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..d23aa5726 --- /dev/null +++ b/mass_price_update/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 09.10.2024 +#### Version 18.0.1.0.0 +#### ADD + +- Initial commit for Mass Price Update diff --git a/mass_price_update/security/ir.model.access.csv b/mass_price_update/security/ir.model.access.csv new file mode 100644 index 000000000..d59182049 --- /dev/null +++ b/mass_price_update/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_mass_price_update,access.mass.price.update,model_mass_price_update,mass_price_update.mass_price_update_group_admin,1,1,1,1 +access_change_price_line,access.change.price.line,model_change_price_line,mass_price_update.mass_price_update_group_admin,1,1,1,1 diff --git a/mass_price_update/security/mass_price_update_groups.xml b/mass_price_update/security/mass_price_update_groups.xml new file mode 100644 index 000000000..2732fccd6 --- /dev/null +++ b/mass_price_update/security/mass_price_update_groups.xml @@ -0,0 +1,18 @@ + + + + + Mass Price Update + Helps to manage access to the mass price + update wizard + + + + + Administrator + Access to the mass price update wizard menu + + + + diff --git a/mass_price_update/static/description/assets/cybro-icon.png b/mass_price_update/static/description/assets/cybro-icon.png new file mode 100644 index 000000000..06e73e11d Binary files /dev/null and b/mass_price_update/static/description/assets/cybro-icon.png differ diff --git a/mass_price_update/static/description/assets/cybro-odoo.png b/mass_price_update/static/description/assets/cybro-odoo.png new file mode 100644 index 000000000..ed02e07a4 Binary files /dev/null and b/mass_price_update/static/description/assets/cybro-odoo.png differ diff --git a/mass_price_update/static/description/assets/h2.png b/mass_price_update/static/description/assets/h2.png new file mode 100644 index 000000000..0bfc4707d Binary files /dev/null and b/mass_price_update/static/description/assets/h2.png differ diff --git a/mass_price_update/static/description/assets/icons/arrows-repeat.svg b/mass_price_update/static/description/assets/icons/arrows-repeat.svg new file mode 100644 index 000000000..1d7efabc5 --- /dev/null +++ b/mass_price_update/static/description/assets/icons/arrows-repeat.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/mass_price_update/static/description/assets/icons/banner-1.png b/mass_price_update/static/description/assets/icons/banner-1.png new file mode 100644 index 000000000..c180db172 Binary files /dev/null and b/mass_price_update/static/description/assets/icons/banner-1.png differ diff --git a/mass_price_update/static/description/assets/icons/banner-2.svg b/mass_price_update/static/description/assets/icons/banner-2.svg new file mode 100644 index 000000000..e606d97d9 --- /dev/null +++ b/mass_price_update/static/description/assets/icons/banner-2.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mass_price_update/static/description/assets/icons/banner-bg.png b/mass_price_update/static/description/assets/icons/banner-bg.png new file mode 100644 index 000000000..a8238d3c0 Binary files /dev/null and b/mass_price_update/static/description/assets/icons/banner-bg.png differ diff --git a/mass_price_update/static/description/assets/icons/banner-bg.svg b/mass_price_update/static/description/assets/icons/banner-bg.svg new file mode 100644 index 000000000..b1378103e --- /dev/null +++ b/mass_price_update/static/description/assets/icons/banner-bg.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/mass_price_update/static/description/assets/icons/banner-call.svg b/mass_price_update/static/description/assets/icons/banner-call.svg new file mode 100644 index 000000000..96c687e81 --- /dev/null +++ b/mass_price_update/static/description/assets/icons/banner-call.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/mass_price_update/static/description/assets/icons/banner-mail.svg b/mass_price_update/static/description/assets/icons/banner-mail.svg new file mode 100644 index 000000000..cbf0d158d --- /dev/null +++ b/mass_price_update/static/description/assets/icons/banner-mail.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/mass_price_update/static/description/assets/icons/banner-pattern.svg b/mass_price_update/static/description/assets/icons/banner-pattern.svg new file mode 100644 index 000000000..9c1c7e101 --- /dev/null +++ b/mass_price_update/static/description/assets/icons/banner-pattern.svg @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mass_price_update/static/description/assets/icons/banner-promo.svg b/mass_price_update/static/description/assets/icons/banner-promo.svg new file mode 100644 index 000000000..d52791b11 --- /dev/null +++ b/mass_price_update/static/description/assets/icons/banner-promo.svg @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mass_price_update/static/description/assets/icons/brand-pair.svg b/mass_price_update/static/description/assets/icons/brand-pair.svg new file mode 100644 index 000000000..d8db7fc1e --- /dev/null +++ b/mass_price_update/static/description/assets/icons/brand-pair.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mass_price_update/static/description/assets/icons/check.png b/mass_price_update/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/mass_price_update/static/description/assets/icons/check.png differ diff --git a/mass_price_update/static/description/assets/icons/chevron.png b/mass_price_update/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/mass_price_update/static/description/assets/icons/chevron.png differ diff --git a/mass_price_update/static/description/assets/icons/close-icon.svg b/mass_price_update/static/description/assets/icons/close-icon.svg new file mode 100644 index 000000000..df8cce37a --- /dev/null +++ b/mass_price_update/static/description/assets/icons/close-icon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/mass_price_update/static/description/assets/icons/cogs.png b/mass_price_update/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/mass_price_update/static/description/assets/icons/cogs.png differ diff --git a/mass_price_update/static/description/assets/icons/collabarate-icon.svg b/mass_price_update/static/description/assets/icons/collabarate-icon.svg new file mode 100644 index 000000000..dd4e10518 --- /dev/null +++ b/mass_price_update/static/description/assets/icons/collabarate-icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/mass_price_update/static/description/assets/icons/consultation.png b/mass_price_update/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/mass_price_update/static/description/assets/icons/consultation.png differ diff --git a/mass_price_update/static/description/assets/icons/cybro-logo.png b/mass_price_update/static/description/assets/icons/cybro-logo.png new file mode 100644 index 000000000..ff4b78220 Binary files /dev/null and b/mass_price_update/static/description/assets/icons/cybro-logo.png differ diff --git a/mass_price_update/static/description/assets/icons/down.svg b/mass_price_update/static/description/assets/icons/down.svg new file mode 100644 index 000000000..f21c36271 --- /dev/null +++ b/mass_price_update/static/description/assets/icons/down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/mass_price_update/static/description/assets/icons/ecom-black.png b/mass_price_update/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/mass_price_update/static/description/assets/icons/ecom-black.png differ diff --git a/mass_price_update/static/description/assets/icons/education-black.png b/mass_price_update/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/mass_price_update/static/description/assets/icons/education-black.png differ diff --git a/mass_price_update/static/description/assets/icons/faq.png b/mass_price_update/static/description/assets/icons/faq.png new file mode 100644 index 000000000..4250b5b81 Binary files /dev/null and b/mass_price_update/static/description/assets/icons/faq.png differ diff --git a/mass_price_update/static/description/assets/icons/feature-icon.svg b/mass_price_update/static/description/assets/icons/feature-icon.svg new file mode 100644 index 000000000..fa0ea6850 --- /dev/null +++ b/mass_price_update/static/description/assets/icons/feature-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/mass_price_update/static/description/assets/icons/feature.png b/mass_price_update/static/description/assets/icons/feature.png new file mode 100644 index 000000000..ac7a785c0 Binary files /dev/null and b/mass_price_update/static/description/assets/icons/feature.png differ diff --git a/mass_price_update/static/description/assets/icons/gear.svg b/mass_price_update/static/description/assets/icons/gear.svg new file mode 100644 index 000000000..0cc66b6ea --- /dev/null +++ b/mass_price_update/static/description/assets/icons/gear.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/mass_price_update/static/description/assets/icons/hero.gif b/mass_price_update/static/description/assets/icons/hero.gif new file mode 100644 index 000000000..380654dfe Binary files /dev/null and b/mass_price_update/static/description/assets/icons/hero.gif differ diff --git a/mass_price_update/static/description/assets/icons/hire-odoo.svg b/mass_price_update/static/description/assets/icons/hire-odoo.svg new file mode 100644 index 000000000..e1ac089b0 --- /dev/null +++ b/mass_price_update/static/description/assets/icons/hire-odoo.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/mass_price_update/static/description/assets/icons/hotel-black.png b/mass_price_update/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/mass_price_update/static/description/assets/icons/hotel-black.png differ diff --git a/mass_price_update/static/description/assets/icons/license.png b/mass_price_update/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/mass_price_update/static/description/assets/icons/license.png differ diff --git a/mass_price_update/static/description/assets/icons/life-ring-icon.svg b/mass_price_update/static/description/assets/icons/life-ring-icon.svg new file mode 100644 index 000000000..3ae6e1d89 --- /dev/null +++ b/mass_price_update/static/description/assets/icons/life-ring-icon.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/mass_price_update/static/description/assets/icons/lifebuoy.png b/mass_price_update/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/mass_price_update/static/description/assets/icons/lifebuoy.png differ diff --git a/mass_price_update/static/description/assets/icons/mail.svg b/mass_price_update/static/description/assets/icons/mail.svg new file mode 100644 index 000000000..1eedde695 --- /dev/null +++ b/mass_price_update/static/description/assets/icons/mail.svg @@ -0,0 +1,3 @@ + + + diff --git a/mass_price_update/static/description/assets/icons/manufacturing-black.png b/mass_price_update/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/mass_price_update/static/description/assets/icons/manufacturing-black.png differ diff --git a/mass_price_update/static/description/assets/icons/notes.png b/mass_price_update/static/description/assets/icons/notes.png new file mode 100644 index 000000000..ee5e95404 Binary files /dev/null and b/mass_price_update/static/description/assets/icons/notes.png differ diff --git a/mass_price_update/static/description/assets/icons/notification icon.svg b/mass_price_update/static/description/assets/icons/notification icon.svg new file mode 100644 index 000000000..053189973 --- /dev/null +++ b/mass_price_update/static/description/assets/icons/notification icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/mass_price_update/static/description/assets/icons/odoo-consultancy.svg b/mass_price_update/static/description/assets/icons/odoo-consultancy.svg new file mode 100644 index 000000000..e05f65bde --- /dev/null +++ b/mass_price_update/static/description/assets/icons/odoo-consultancy.svg @@ -0,0 +1,4 @@ + + + + diff --git a/mass_price_update/static/description/assets/icons/odoo-licencing.svg b/mass_price_update/static/description/assets/icons/odoo-licencing.svg new file mode 100644 index 000000000..2606c88b0 --- /dev/null +++ b/mass_price_update/static/description/assets/icons/odoo-licencing.svg @@ -0,0 +1,3 @@ + + + diff --git a/mass_price_update/static/description/assets/icons/odoo-logo.png b/mass_price_update/static/description/assets/icons/odoo-logo.png new file mode 100644 index 000000000..0e4d0eb5a Binary files /dev/null and b/mass_price_update/static/description/assets/icons/odoo-logo.png differ diff --git a/mass_price_update/static/description/assets/icons/patter.svg b/mass_price_update/static/description/assets/icons/patter.svg new file mode 100644 index 000000000..25c9c0a8f --- /dev/null +++ b/mass_price_update/static/description/assets/icons/patter.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/mass_price_update/static/description/assets/icons/pattern1.png b/mass_price_update/static/description/assets/icons/pattern1.png new file mode 100644 index 000000000..09ab0fb2d Binary files /dev/null and b/mass_price_update/static/description/assets/icons/pattern1.png differ diff --git a/mass_price_update/static/description/assets/icons/pos-black.png b/mass_price_update/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/mass_price_update/static/description/assets/icons/pos-black.png differ diff --git a/mass_price_update/static/description/assets/icons/puzzle-piece-icon.svg b/mass_price_update/static/description/assets/icons/puzzle-piece-icon.svg new file mode 100644 index 000000000..3e9ad9373 --- /dev/null +++ b/mass_price_update/static/description/assets/icons/puzzle-piece-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/mass_price_update/static/description/assets/icons/puzzle.png b/mass_price_update/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/mass_price_update/static/description/assets/icons/puzzle.png differ diff --git a/mass_price_update/static/description/assets/icons/replace-icon.svg b/mass_price_update/static/description/assets/icons/replace-icon.svg new file mode 100644 index 000000000..d0e3a7af1 --- /dev/null +++ b/mass_price_update/static/description/assets/icons/replace-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/mass_price_update/static/description/assets/icons/restaurant-black.png b/mass_price_update/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/mass_price_update/static/description/assets/icons/restaurant-black.png differ diff --git a/mass_price_update/static/description/assets/icons/screenshot-main.png b/mass_price_update/static/description/assets/icons/screenshot-main.png new file mode 100644 index 000000000..575f8e676 Binary files /dev/null and b/mass_price_update/static/description/assets/icons/screenshot-main.png differ diff --git a/mass_price_update/static/description/assets/icons/screenshot.png b/mass_price_update/static/description/assets/icons/screenshot.png new file mode 100644 index 000000000..cef272529 Binary files /dev/null and b/mass_price_update/static/description/assets/icons/screenshot.png differ diff --git a/mass_price_update/static/description/assets/icons/service-black.png b/mass_price_update/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/mass_price_update/static/description/assets/icons/service-black.png differ diff --git a/mass_price_update/static/description/assets/icons/skype-fill.svg b/mass_price_update/static/description/assets/icons/skype-fill.svg new file mode 100644 index 000000000..c17423639 --- /dev/null +++ b/mass_price_update/static/description/assets/icons/skype-fill.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/mass_price_update/static/description/assets/icons/skype.png b/mass_price_update/static/description/assets/icons/skype.png new file mode 100644 index 000000000..51b409fb3 Binary files /dev/null and b/mass_price_update/static/description/assets/icons/skype.png differ diff --git a/mass_price_update/static/description/assets/icons/skype.svg b/mass_price_update/static/description/assets/icons/skype.svg new file mode 100644 index 000000000..df3dad39b --- /dev/null +++ b/mass_price_update/static/description/assets/icons/skype.svg @@ -0,0 +1,3 @@ + + + diff --git a/mass_price_update/static/description/assets/icons/star-1.svg b/mass_price_update/static/description/assets/icons/star-1.svg new file mode 100644 index 000000000..7e55ab162 --- /dev/null +++ b/mass_price_update/static/description/assets/icons/star-1.svg @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mass_price_update/static/description/assets/icons/star-2.svg b/mass_price_update/static/description/assets/icons/star-2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/mass_price_update/static/description/assets/icons/star-2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/mass_price_update/static/description/assets/icons/support.png b/mass_price_update/static/description/assets/icons/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/mass_price_update/static/description/assets/icons/support.png differ diff --git a/mass_price_update/static/description/assets/icons/test-1 - Copy.png b/mass_price_update/static/description/assets/icons/test-1 - Copy.png new file mode 100644 index 000000000..f6a902663 Binary files /dev/null and b/mass_price_update/static/description/assets/icons/test-1 - Copy.png differ diff --git a/mass_price_update/static/description/assets/icons/test-1.png b/mass_price_update/static/description/assets/icons/test-1.png new file mode 100644 index 000000000..0908add2b Binary files /dev/null and b/mass_price_update/static/description/assets/icons/test-1.png differ diff --git a/mass_price_update/static/description/assets/icons/test-2.png b/mass_price_update/static/description/assets/icons/test-2.png new file mode 100644 index 000000000..4671fe91e Binary files /dev/null and b/mass_price_update/static/description/assets/icons/test-2.png differ diff --git a/mass_price_update/static/description/assets/icons/trading-black.png b/mass_price_update/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/mass_price_update/static/description/assets/icons/trading-black.png differ diff --git a/mass_price_update/static/description/assets/icons/training.png b/mass_price_update/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/mass_price_update/static/description/assets/icons/training.png differ diff --git a/mass_price_update/static/description/assets/icons/translate.svg b/mass_price_update/static/description/assets/icons/translate.svg new file mode 100644 index 000000000..af9c8a1aa --- /dev/null +++ b/mass_price_update/static/description/assets/icons/translate.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/mass_price_update/static/description/assets/icons/update.png b/mass_price_update/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/mass_price_update/static/description/assets/icons/update.png differ diff --git a/mass_price_update/static/description/assets/icons/user.png b/mass_price_update/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/mass_price_update/static/description/assets/icons/user.png differ diff --git a/mass_price_update/static/description/assets/icons/video.png b/mass_price_update/static/description/assets/icons/video.png new file mode 100644 index 000000000..576705b17 Binary files /dev/null and b/mass_price_update/static/description/assets/icons/video.png differ diff --git a/mass_price_update/static/description/assets/icons/whatsapp.png b/mass_price_update/static/description/assets/icons/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/mass_price_update/static/description/assets/icons/whatsapp.png differ diff --git a/mass_price_update/static/description/assets/icons/wrench-icon.svg b/mass_price_update/static/description/assets/icons/wrench-icon.svg new file mode 100644 index 000000000..174b5a465 --- /dev/null +++ b/mass_price_update/static/description/assets/icons/wrench-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/mass_price_update/static/description/assets/icons/wrench.png b/mass_price_update/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/mass_price_update/static/description/assets/icons/wrench.png differ diff --git a/mass_price_update/static/description/assets/modules/1.gif b/mass_price_update/static/description/assets/modules/1.gif new file mode 100644 index 000000000..ae3a880a2 Binary files /dev/null and b/mass_price_update/static/description/assets/modules/1.gif differ diff --git a/mass_price_update/static/description/assets/modules/2.gif b/mass_price_update/static/description/assets/modules/2.gif new file mode 100644 index 000000000..d19e2b352 Binary files /dev/null and b/mass_price_update/static/description/assets/modules/2.gif differ diff --git a/mass_price_update/static/description/assets/modules/3.png b/mass_price_update/static/description/assets/modules/3.png new file mode 100644 index 000000000..8513873ea Binary files /dev/null and b/mass_price_update/static/description/assets/modules/3.png differ diff --git a/mass_price_update/static/description/assets/modules/4.png b/mass_price_update/static/description/assets/modules/4.png new file mode 100644 index 000000000..3bedf7981 Binary files /dev/null and b/mass_price_update/static/description/assets/modules/4.png differ diff --git a/mass_price_update/static/description/assets/modules/5.png b/mass_price_update/static/description/assets/modules/5.png new file mode 100644 index 000000000..0e311ca87 Binary files /dev/null and b/mass_price_update/static/description/assets/modules/5.png differ diff --git a/mass_price_update/static/description/assets/modules/6.jpg b/mass_price_update/static/description/assets/modules/6.jpg new file mode 100644 index 000000000..67c7f7062 Binary files /dev/null and b/mass_price_update/static/description/assets/modules/6.jpg differ diff --git a/mass_price_update/static/description/assets/screenshots/1.png b/mass_price_update/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..45cb76806 Binary files /dev/null and b/mass_price_update/static/description/assets/screenshots/1.png differ diff --git a/mass_price_update/static/description/assets/screenshots/2.png b/mass_price_update/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..396a206fd Binary files /dev/null and b/mass_price_update/static/description/assets/screenshots/2.png differ diff --git a/mass_price_update/static/description/assets/screenshots/3.png b/mass_price_update/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..15be42d49 Binary files /dev/null and b/mass_price_update/static/description/assets/screenshots/3.png differ diff --git a/mass_price_update/static/description/assets/screenshots/4.png b/mass_price_update/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..4d5944b94 Binary files /dev/null and b/mass_price_update/static/description/assets/screenshots/4.png differ diff --git a/mass_price_update/static/description/assets/screenshots/5.png b/mass_price_update/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..ed10958a5 Binary files /dev/null and b/mass_price_update/static/description/assets/screenshots/5.png differ diff --git a/mass_price_update/static/description/assets/screenshots/6.png b/mass_price_update/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..129b17290 Binary files /dev/null and b/mass_price_update/static/description/assets/screenshots/6.png differ diff --git a/mass_price_update/static/description/assets/screenshots/v18_gif.gif b/mass_price_update/static/description/assets/screenshots/v18_gif.gif new file mode 100644 index 000000000..f5b164211 Binary files /dev/null and b/mass_price_update/static/description/assets/screenshots/v18_gif.gif differ diff --git a/mass_price_update/static/description/assets/y18.jpg b/mass_price_update/static/description/assets/y18.jpg new file mode 100644 index 000000000..eea1714f2 Binary files /dev/null and b/mass_price_update/static/description/assets/y18.jpg differ diff --git a/mass_price_update/static/description/banner.png b/mass_price_update/static/description/banner.png new file mode 100644 index 000000000..3c0fcca72 Binary files /dev/null and b/mass_price_update/static/description/banner.png differ diff --git a/mass_price_update/static/description/icon.png b/mass_price_update/static/description/icon.png new file mode 100644 index 000000000..2d650b46d Binary files /dev/null and b/mass_price_update/static/description/icon.png differ diff --git a/mass_price_update/static/description/index.html b/mass_price_update/static/description/index.html new file mode 100644 index 000000000..015824ceb --- /dev/null +++ b/mass_price_update/static/description/index.html @@ -0,0 +1,1086 @@ + + + + + + Mass Price Update + + + + + + + + + + +
+
+ + + +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+
+

+ This Module Allows to Update the Sales Price and + the Cost of the Products by percentage. +

+

Mass Price Update +

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

Key + Heighlights

+
+
+
+
+ +
+
+ Mass Price Changes
+

+ Allows users to update price/cost for + multiple products, saving time and reducing + manual errors.

+
+
+
+
+
+ +
+
+ User Permissions +
+

+ Allows setting specific user permissions to + control who can perform mass updates, + enhancing security. +

+
+
+
+
+
+ +
+
+ Efficiency and Accuracy +
+

+ Mass price update module enhances efficiency + and accuracy in managing product pricing. +

+
+
+
+
+ +
+
+
+ Mass Price Update +

+ Are you ready to make your business more + organized? +
Improve now! +

+ +
+
+ +
+
+
+ + + + +
+
+ +
+
+
+
+ acc_bg +
+ +
+
+
+
+

+ Added user groups to the user + +

+
+
+

+ Add the users to the new + security group(Mass Price + Update: Administrator) to give + access to the new menu. +

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

+ + Mass Price Update Menu +

+
+
+

+ + Use the new menu Inventory -> + Products -> Mass Price Update to + open the wizard. + +

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

+ Price Update Wizard + +

+
+
+

+ Options for selecting products. + The selected products will be + listed in the tree view in the + wizard. +

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

+ More fields to make it simple + +

+
+
+

+ The Apply on field is used to + select either Price or Cost to + update the sales price and cost + of the selected products. Set + the percentage to be changed in + the Change field. On the Apply + type, select add to add the + amount and reduce to reduce the + amount. The current and new + price/cost of the selected + products will be updated asap in + the list view. +

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

+ + An extra step for safety + +

+
+
+

+ An extra confirmation to avoid + updating the sale price or cost + of products by accidentally + clicking the change button in + the wizard. +

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

+ + Notification + +

+
+
+

+ Notification on completing the + price update. +

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

+ Update cost/price of multiple + products on a click.

+
+
+
+
+
+
+
+ +
+

+ View and confirm the current and + new cost/price of the products + before changing it. +

+
+
+
+
+
+
+
+ +
+

+ Generates notification on price + changes

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

+ The Mass Price + Update module allows + users to update the + prices of multiple + products by + percentage, + streamlining the + pricing management + process. +

+
+
+ +
+ +
+

+ Yes, the module + includes filtering + options that let you + search for products + by categories, + selected products, + or all products + making it easier to + select the items you + want to update. +

+
+
+ +
+ +
+

+ Yes, you can set + specific user + permissions to + control who can + perform mass price + updates, ensuring + that only authorized + person can make + changes. +

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

+ Latest Release 18.0.1.0.0 +

+ + 9th October, 2024 + +
+
+
+
+
+ Add +
+
+
+
    +
  • + Initial Commit +
  • +
+
+
+
+
+
+
+
+
+
+ + + +
+

+ Related Products +

+ +
+ + +
+

+ Our Services

+ +
+ +
+
+ .... +
+
+ +
+ + +
+
+ + + + + + diff --git a/mass_price_update/wizard/__init__.py b/mass_price_update/wizard/__init__.py new file mode 100755 index 000000000..d55b86b5a --- /dev/null +++ b/mass_price_update/wizard/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Manasa T P (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. +# If not, see . +# +################################################################################ +from . import change_price_line +from . import mass_price_update diff --git a/mass_price_update/wizard/change_price_line.py b/mass_price_update/wizard/change_price_line.py new file mode 100644 index 000000000..6dce51d93 --- /dev/null +++ b/mass_price_update/wizard/change_price_line.py @@ -0,0 +1,72 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Manasa T P (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. +# If not, see . +# +################################################################################ +from odoo import api, fields, models + + +class ChangePriceLine(models.TransientModel): + """One2many for align the products with new price""" + _name = 'change.price.line' + _rec_name = 'product_id' + _description = "Change Price Line" + + mass_price_update_id = fields.Many2one('mass.price.update', + string='Number', + help='The related field from mass' + 'price update', ) + product_id = fields.Many2one( + 'product.product', string='Product', required=True, + domain="[('active', '=', True)]", help='Selected products will show') + current_price = fields.Float(string='Current Price', digits='Product Price', + related='product_id.lst_price', + help='The current Sales price') + new_price = fields.Float(string='New Price', digits='Product Price', + compute='_compute_new_price_cost', + help='Computing the new price based on the ' + 'percentage') + current_cost = fields.Float(string='Current Cost', digits='Product Price', + related='product_id.standard_price', + help='Current cost of the product') + new_cost = fields.Float(string='New Cost', digits='Product Price', + compute='_compute_new_price_cost', + help='Computing the new cost based on the' + 'percentage') + currency_id = fields.Many2one('res.currency', + string='Currency', + related='product_id.currency_id', + help='The currency of the product') + + @api.depends('mass_price_update_id.apply_on', + 'mass_price_update_id.change', + 'mass_price_update_id.apply_type') + def _compute_new_price_cost(self): + """Compute new price and new cost""" + for record in self: + if record.mass_price_update_id.apply_type == 'add': + percentage_num = 1 + record.mass_price_update_id.change + else: + percentage_num = 1 - record.mass_price_update_id.change + if record.mass_price_update_id.apply_on == 'price': + record.new_cost = False + record.new_price = record.current_price * percentage_num + else: + record.new_price = False + record.new_cost = record.current_cost * percentage_num diff --git a/mass_price_update/wizard/mass_price_update.py b/mass_price_update/wizard/mass_price_update.py new file mode 100755 index 000000000..a19d69e12 --- /dev/null +++ b/mass_price_update/wizard/mass_price_update.py @@ -0,0 +1,136 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Manasa T P (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. +# If not, see . +# +################################################################################ +from odoo import api, fields, models, _ +from odoo.exceptions import UserError + + +class MassPriceUpdate(models.TransientModel): + """Change Price and Cost of Products by Percentage""" + _name = 'mass.price.update' + _description = "Mass Price Update" + + apply_to = fields.Selection([ + ('all', 'All Products'), ('category', 'Selected Categories'), + ('selected', 'Selected Products')], default='selected', + string='Apply To', required=True, + help='Allows to select the products based on the conditions') + apply_on = fields.Selection([ + ('price', 'Price'), ('cost', 'Cost')], default='price', + string='Apply On', required=True, help='Apply on Price or Cost') + change = fields.Float(string='Change', + help='The percentage for adding or reducing to the ' + 'actual price') + apply_type = fields.Selection([ + ('add', 'Add'), ('reduce', 'Reduce')], default='add', + string='Apply Type', required=True, + help='Choose the applying type whether add or reduce') + product_ids = fields.Many2many( + 'product.product', string='Products', default=False, + domain="[('active', '=', True)]", help='Choose the required products') + category_ids = fields.Many2many( + 'product.category', string='Categories', default=False, + help='Choose the required Categories') + line_ids = fields.One2many('change.price.line', + 'mass_price_update_id', + string='Lines', readonly=True, + help='The selected product with updated price') + + @api.onchange('apply_to') + def _onchange_apply_to(self): + """When select an option from apply_to, the related records will show""" + if self.apply_to == 'all': + self.write({ + 'category_ids': [(5,)], + 'line_ids': [(5,)], + 'product_ids': [(6, 0, self.env['product.product'].search( + [('active', '=', True)]).ids)] + }) + elif self.apply_to == 'category': + self.write({ + 'line_ids': [(5,)], + 'product_ids': [(6, 0, self.env['product.product'].search( + [('categ_id', 'in', self.category_ids.ids)]).ids)] + }) + else: + self.write({ + 'product_ids': [(5,)], + 'category_ids': [(5,)], + 'line_ids': [(5,)] + }) + + @api.onchange('product_ids') + def _onchange_product_ids(self): + """Updating the products in lines""" + if self.product_ids: + self.write({'line_ids': [(5,)]}) + lines = [] + for product in self.product_ids: + lines.append((0, 0, {'product_id': product._origin.id})) + self.write({'line_ids': lines}) + + @api.onchange('category_ids') + def _onchange_category_ids(self): + """When select the category related product will show""" + if self.category_ids: + self.write({'line_ids': [(5,)], 'product_ids': [(5,)]}) + lines = [] + products = self.env['product.product'].sudo().search( + [('categ_id', 'in', self.category_ids.ids)]) + for product in products: + lines.append((0, 0, {'product_id': product.id})) + self.write({ + 'product_ids': products.ids, + 'line_ids': lines + }) + + def action_change_price(self): + """This function is used to change the price or cost of products""" + if self.apply_to == 'category' and not self.product_ids: + raise UserError(_("Please select any category with products.")) + if self.apply_to == 'selected' and not self.product_ids: + raise UserError(_("Please select any product.")) + if not self.change: + raise UserError(_("Please enter the change in percentage.")) + if self.apply_type == 'add': + percentage_num = 1 + self.change + else: + percentage_num = 1 - self.change + if self.apply_on == 'price': + for product in self.product_ids: + product.lst_price = product.lst_price * percentage_num + else: + for product in self.product_ids: + product_template = product.product_tmpl_id + product_template.standard_price = ( + product_template.standard_price * percentage_num) + message = f"""The {'sales price' if self.apply_on == 'price' + else 'cost'} is updated.""" + return { + 'type': 'ir.actions.client', + 'tag': 'display_notification', + 'params': { + 'title': _('Success'), + 'message': _(message), + 'sticky': True, + 'next': {'type': 'ir.actions.act_window_close'}, + } + } diff --git a/mass_price_update/wizard/mass_price_update_views.xml b/mass_price_update/wizard/mass_price_update_views.xml new file mode 100755 index 000000000..5a8f9ed6a --- /dev/null +++ b/mass_price_update/wizard/mass_price_update_views.xml @@ -0,0 +1,82 @@ + + + + + mass.price.update.view.form + mass.price.update + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+ + + Mass Price Update + mass.price.update + ir.actions.act_window + form + new + + + +