diff --git a/advanced_many2many_tags/README.rst b/advanced_many2many_tags/README.rst new file mode 100755 index 000000000..062727ea5 --- /dev/null +++ b/advanced_many2many_tags/README.rst @@ -0,0 +1,50 @@ +.. 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 + +Advanced Many2Many Tags +======================= +This module copy the text and open the form view of many2many tags in Odoo. + +Configuration +============= +* No Additional configuration is needed. + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (AGPL-3). +(https://www.odoo.com/documentation/user/16.0/legal/licenses/licenses.html) + +Credits +------- +* Developer: + (V16) Swetha Anand, + (V17) Jumana Haseen. + 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/advanced_many2many_tags/__init__.py b/advanced_many2many_tags/__init__.py new file mode 100644 index 000000000..6bb661652 --- /dev/null +++ b/advanced_many2many_tags/__init__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Jumana Haseen (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 . +# +############################################################################### diff --git a/advanced_many2many_tags/__manifest__.py b/advanced_many2many_tags/__manifest__.py new file mode 100644 index 000000000..dca5ecb24 --- /dev/null +++ b/advanced_many2many_tags/__manifest__.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Jumana Haseen (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': 'Advanced Many2Many Tags', + 'version': '17.0.1.0.0', + 'category': 'Extra Tools', + 'summary': 'Copy the text and open the form view of many2many tags.', + 'description': """Copy text of Many2many tags.So we can paste it anywhere + as needed.Also open the form view of these Many2many fields.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['web'], + 'assets': { + 'web.assets_backend': [ + 'advanced_many2many_tags/static/src/js/confirmation_dialog_view.js', + 'advanced_many2many_tags/static/src/js/many2many_tags_field.js', + 'advanced_many2many_tags/static/src/xml/many2many_tags_field.xml', + ] + }, + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/advanced_many2many_tags/doc/RELEASE_NOTES.md b/advanced_many2many_tags/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..2ff0b98ec --- /dev/null +++ b/advanced_many2many_tags/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 07.03.2024 +#### Version 17.0.1.0.0 +#### ADD +- Initial commit for Advanced Many2Many Tags diff --git a/advanced_many2many_tags/static/description/assets/icons/capture (1).png b/advanced_many2many_tags/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/icons/capture (1).png differ diff --git a/advanced_many2many_tags/static/description/assets/icons/check.png b/advanced_many2many_tags/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/icons/check.png differ diff --git a/advanced_many2many_tags/static/description/assets/icons/chevron.png b/advanced_many2many_tags/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/icons/chevron.png differ diff --git a/advanced_many2many_tags/static/description/assets/icons/cogs.png b/advanced_many2many_tags/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/icons/cogs.png differ diff --git a/advanced_many2many_tags/static/description/assets/icons/consultation.png b/advanced_many2many_tags/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/icons/consultation.png differ diff --git a/advanced_many2many_tags/static/description/assets/icons/ecom-black.png b/advanced_many2many_tags/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/icons/ecom-black.png differ diff --git a/advanced_many2many_tags/static/description/assets/icons/education-black.png b/advanced_many2many_tags/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/icons/education-black.png differ diff --git a/advanced_many2many_tags/static/description/assets/icons/hotel-black.png b/advanced_many2many_tags/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/icons/hotel-black.png differ diff --git a/advanced_many2many_tags/static/description/assets/icons/img.png b/advanced_many2many_tags/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/icons/img.png differ diff --git a/advanced_many2many_tags/static/description/assets/icons/license.png b/advanced_many2many_tags/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/icons/license.png differ diff --git a/advanced_many2many_tags/static/description/assets/icons/lifebuoy.png b/advanced_many2many_tags/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/icons/lifebuoy.png differ diff --git a/advanced_many2many_tags/static/description/assets/icons/manufacturing-black.png b/advanced_many2many_tags/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/icons/manufacturing-black.png differ diff --git a/advanced_many2many_tags/static/description/assets/icons/photo-capture.png b/advanced_many2many_tags/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/icons/photo-capture.png differ diff --git a/advanced_many2many_tags/static/description/assets/icons/pos-black.png b/advanced_many2many_tags/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/icons/pos-black.png differ diff --git a/advanced_many2many_tags/static/description/assets/icons/puzzle.png b/advanced_many2many_tags/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/icons/puzzle.png differ diff --git a/advanced_many2many_tags/static/description/assets/icons/restaurant-black.png b/advanced_many2many_tags/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/icons/restaurant-black.png differ diff --git a/advanced_many2many_tags/static/description/assets/icons/service-black.png b/advanced_many2many_tags/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/icons/service-black.png differ diff --git a/advanced_many2many_tags/static/description/assets/icons/trading-black.png b/advanced_many2many_tags/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/icons/trading-black.png differ diff --git a/advanced_many2many_tags/static/description/assets/icons/training.png b/advanced_many2many_tags/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/icons/training.png differ diff --git a/advanced_many2many_tags/static/description/assets/icons/update.png b/advanced_many2many_tags/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/icons/update.png differ diff --git a/advanced_many2many_tags/static/description/assets/icons/user.png b/advanced_many2many_tags/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/icons/user.png differ diff --git a/advanced_many2many_tags/static/description/assets/icons/wrench.png b/advanced_many2many_tags/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/icons/wrench.png differ diff --git a/advanced_many2many_tags/static/description/assets/misc/Cybrosys R.png b/advanced_many2many_tags/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/misc/Cybrosys R.png differ diff --git a/advanced_many2many_tags/static/description/assets/misc/email.svg b/advanced_many2many_tags/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/advanced_many2many_tags/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/advanced_many2many_tags/static/description/assets/misc/phone.svg b/advanced_many2many_tags/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/advanced_many2many_tags/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/advanced_many2many_tags/static/description/assets/misc/star (1) 2.svg b/advanced_many2many_tags/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/advanced_many2many_tags/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/advanced_many2many_tags/static/description/assets/misc/support (1) 1.svg b/advanced_many2many_tags/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/advanced_many2many_tags/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/advanced_many2many_tags/static/description/assets/misc/support-email.svg b/advanced_many2many_tags/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/advanced_many2many_tags/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/advanced_many2many_tags/static/description/assets/misc/tick-mark.svg b/advanced_many2many_tags/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/advanced_many2many_tags/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/advanced_many2many_tags/static/description/assets/misc/whatsapp 1.svg b/advanced_many2many_tags/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/advanced_many2many_tags/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/advanced_many2many_tags/static/description/assets/misc/whatsapp.svg b/advanced_many2many_tags/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/advanced_many2many_tags/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/advanced_many2many_tags/static/description/assets/modules/m1.png b/advanced_many2many_tags/static/description/assets/modules/m1.png new file mode 100644 index 000000000..acb4c76c6 Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/modules/m1.png differ diff --git a/advanced_many2many_tags/static/description/assets/modules/m2.png b/advanced_many2many_tags/static/description/assets/modules/m2.png new file mode 100644 index 000000000..3ef91f771 Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/modules/m2.png differ diff --git a/advanced_many2many_tags/static/description/assets/modules/m3.png b/advanced_many2many_tags/static/description/assets/modules/m3.png new file mode 100644 index 000000000..72febf6ae Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/modules/m3.png differ diff --git a/advanced_many2many_tags/static/description/assets/modules/m4.png b/advanced_many2many_tags/static/description/assets/modules/m4.png new file mode 100644 index 000000000..f7d7f9241 Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/modules/m4.png differ diff --git a/advanced_many2many_tags/static/description/assets/modules/m5.png b/advanced_many2many_tags/static/description/assets/modules/m5.png new file mode 100644 index 000000000..1d3324e88 Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/modules/m5.png differ diff --git a/advanced_many2many_tags/static/description/assets/modules/m6.png b/advanced_many2many_tags/static/description/assets/modules/m6.png new file mode 100644 index 000000000..80938c15a Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/modules/m6.png differ diff --git a/advanced_many2many_tags/static/description/assets/screenshots/1.png b/advanced_many2many_tags/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..41745b157 Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/screenshots/1.png differ diff --git a/advanced_many2many_tags/static/description/assets/screenshots/2.png b/advanced_many2many_tags/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..bbcaa1465 Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/screenshots/2.png differ diff --git a/advanced_many2many_tags/static/description/assets/screenshots/3.png b/advanced_many2many_tags/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..37fa62676 Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/screenshots/3.png differ diff --git a/advanced_many2many_tags/static/description/assets/screenshots/4.png b/advanced_many2many_tags/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..a10201e99 Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/screenshots/4.png differ diff --git a/advanced_many2many_tags/static/description/assets/screenshots/5.png b/advanced_many2many_tags/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..013607a84 Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/screenshots/5.png differ diff --git a/advanced_many2many_tags/static/description/assets/screenshots/hero.gif b/advanced_many2many_tags/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..98d20b721 Binary files /dev/null and b/advanced_many2many_tags/static/description/assets/screenshots/hero.gif differ diff --git a/advanced_many2many_tags/static/description/banner.jpg b/advanced_many2many_tags/static/description/banner.jpg new file mode 100644 index 000000000..a86159de6 Binary files /dev/null and b/advanced_many2many_tags/static/description/banner.jpg differ diff --git a/advanced_many2many_tags/static/description/icon.png b/advanced_many2many_tags/static/description/icon.png new file mode 100644 index 000000000..f5c75dcbb Binary files /dev/null and b/advanced_many2many_tags/static/description/icon.png differ diff --git a/advanced_many2many_tags/static/description/index.html b/advanced_many2many_tags/static/description/index.html new file mode 100644 index 000000000..c535f667f --- /dev/null +++ b/advanced_many2many_tags/static/description/index.html @@ -0,0 +1,728 @@ + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Advanced Many2many Tags

+

+ Copy the text and open the form view of many2many tags. +

+
+ +
+
+
+
+
+

+ Key Highlights +

+
+
+
+
+
+ +
+
+

+ Can open the form view of many2many fields.

+
+
+
+
+
+
+ +
+
+

+ Can copy the text of many2many fields.

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

+ Many2many fields.

+

+ Click on many2many fields and a pop up + comes to COPY TEXT or OPEN FORM VIEW +

+
+
+
+
+
+
+ +
+
+

+ COPY TEXT Button

+

Click on + copy text + on the confirmation dialog box to copy text + of the field . +

+
+
+
+
+
+
+ +
+
+

+ Copied the text

+

Can paste + the copied + text anywhere as needed. +

+
+
+
+
+
+
+ +
+
+

+ OPEN FORM VIEW Button

+

Click on + open form + view on the confirmation dialog box to open + form view of the field . +

+
+
+
+
+
+
+ +
+
+

+ Redirected form view opened for the + many2many field +

+
+
+
+
+
+
+
    +
  • + Available in + Odoo 17.0 Community and Enterprise. +
  • +
  • + Copy the text + and open the form view of many2many tags. +
  • +
  • + Advanced + Many2many Tags +
      +
    • This App will help to copy the text of + many2many fields on click and we can + paste it any where needed. + it also allows to open the form view of + the many2many field on clicking them. +
    • +
    +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:07 March 2024 +
+

+ Initial Commit for Advanced Many2many Tags

+
+
+
+
+
+
+
+

+ Related Products

+
+
+ +
+
+

+ Our Services

+
+
+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Customization

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Support

+
+
+
+
+
+
+ service-icon +
+
+

Hire + Odoo Developer

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Integration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Migration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Consultancy

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Licensing Consultancy

+
+
+
+
+
+
+

+ Our Industries

+
+
+
+
+
+
+ +

Trading

+

Easily procure and sell your products

+
+
+
+
+ +

POS

+

Easy configuration and convivial experience

+
+
+
+
+ +

+ Education

+

A platform for educational management

+
+
+
+
+ +

+ Manufacturing

+

Plan, track and schedule your operations

+
+
+
+
+ +

E-commerce & + Website

+

Mobile friendly, awe-inspiring product pages

+
+
+
+
+ +

Service + Management

+

Keep track of services and invoice

+
+
+
+
+ +

+ Restaurant

+

Run your bar or restaurant methodically

+
+
+
+
+ +

Hotel + Management

+

An all-inclusive hotel management application

+
+
+
+
+
+
+

+ Support

+
+
+
+
+
+
+
+ +
+ Need + Help? +

Got + questions or need help? Get in touch.

+
odoo@cybrosys.com +
+
+
+
+
+
+
+
+ +
+ WhatsApp +

Say hi to + us on WhatsApp!

+
+91 + 99456767686 +
+
+
+
+
+
+
+
+
+ + + + + + diff --git a/advanced_many2many_tags/static/src/js/confirmation_dialog_view.js b/advanced_many2many_tags/static/src/js/confirmation_dialog_view.js new file mode 100644 index 000000000..8828c79c1 --- /dev/null +++ b/advanced_many2many_tags/static/src/js/confirmation_dialog_view.js @@ -0,0 +1,39 @@ +/** @odoo-module */ + +import { _t } from "@web/core/l10n/translation"; +import { ConfirmationDialog } from "@web/core/confirmation_dialog/confirmation_dialog"; +import { patch } from "@web/core/utils/patch"; +import { useService } from "@web/core/utils/hooks"; + +patch(ConfirmationDialog.prototype, { + setup() { + super.setup(); + this.action = useService("action"); + }, + _open_form_view(ev) { + this.action.doAction({ + type: 'ir.actions.act_window', + res_model: 'res.partner.category', + view_mode: 'form', + views: [[false, 'form']], + target: 'current', + res_id: this.props.recordResId, + context: { + 'dialog_size': 'medium', + }, + }); + return this.props.close(); + }, + }); +ConfirmationDialog.props = { + ...ConfirmationDialog.props, + open_form_viewClass: { type: String, optional: true }, + open_form_view: { type: Function, optional: true }, + open_form_viewLabel: { type: String, optional: true }, + recordResId: {type: Number, optional: true} +}; +ConfirmationDialog.defaultProps = { +...ConfirmationDialog.defaultProps, + open_form_viewLabel: _t("Open Form View"), + open_form_viewClass: "btn-primary", +}; diff --git a/advanced_many2many_tags/static/src/js/many2many_tags_field.js b/advanced_many2many_tags/static/src/js/many2many_tags_field.js new file mode 100644 index 000000000..6dd08c808 --- /dev/null +++ b/advanced_many2many_tags/static/src/js/many2many_tags_field.js @@ -0,0 +1,64 @@ +/** @odoo-module **/ + +import { _t } from "@web/core/l10n/translation"; +import { useService } from "@web/core/utils/hooks"; +import { + many2ManyTagsField, + Many2ManyTagsField, + Many2ManyTagsFieldColorEditable, +} from "@web/views/fields/many2many_tags/many2many_tags_field"; +import { patch } from "@web/core/utils/patch"; +import { Dialog } from "@web/core/dialog/dialog"; +import { ConfirmationDialog } from "@web/core/confirmation_dialog/confirmation_dialog"; + +patch(Many2ManyTagsFieldColorEditable.prototype, { + /*Here Many2ManyTagsFieldColorEditable is patched to over ride onBadgeClick()*/ + setup() { + super.setup(); + this.notification = useService("notification"); + this.action = useService("action"); + this.dialogService = useService("dialog"); + }, + onBadgeClick(ev, record) { + /*This function is override to open a dialog box on click of + many2many field and the value is copied if copy button is clicked . + If open form view is clicked then form view of the field is opened.*/ + var copytext = ev.target.innerText; + var buttons = [ + { + text: _t("Ok"), + classes: 'btn-primary', + close: true, + }, + ]; + this.dialogService.add(ConfirmationDialog, { + body: _t("If you want to copy text click 'Copy Text'. If you want to open form view click 'Open Form View'."), + confirmClass: "btn-primary", + confirmLabel: _t("Copy Text"), + confirm: () => { + // Create a temporary textarea element + let textarea = document.createElement('textarea'); + textarea.value = copytext; + // Make the textarea invisible and add it to the document + textarea.style.position = 'fixed'; + textarea.style.opacity = 0; + document.body.appendChild(textarea); + // Select the text in the textarea and copy it to the clipboard + textarea.select(); + document.execCommand('copy'); + // Remove the textarea from the document + document.body.removeChild(textarea); + // Show a success notification + this.notification.add(_t("Copied the text: " + copytext), { + type: "success", + }); + }, + open_form_viewClass: "btn-primary", + open_form_viewLabel: _t("Open Form View"), + close: true, + recordResId: record.resId, + cancelLabel: _t("Cancel"), + cancel: () => {}, + }); + } +}) \ No newline at end of file diff --git a/advanced_many2many_tags/static/src/xml/many2many_tags_field.xml b/advanced_many2many_tags/static/src/xml/many2many_tags_field.xml new file mode 100644 index 000000000..c0e2e3ebe --- /dev/null +++ b/advanced_many2many_tags/static/src/xml/many2many_tags_field.xml @@ -0,0 +1,13 @@ + + + + + + + + + diff --git a/invoice_merging/README.rst b/invoice_merging/README.rst new file mode 100644 index 000000000..1f8b43315 --- /dev/null +++ b/invoice_merging/README.rst @@ -0,0 +1,48 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Merge Invoices +============== +This module will help you to merge different invoices. + +Configuration +============= +* No additional configuration needed + +License +------- +Affero General Public License v3.0 (AGPL v3) +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer : (V16) Vishnuraj P, + (V17) Akhil Ashok, + 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/invoice_merging/__init__.py b/invoice_merging/__init__.py new file mode 100644 index 000000000..59dd3eec0 --- /dev/null +++ b/invoice_merging/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Akhil Ashok(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 models +from . import wizard diff --git a/invoice_merging/__manifest__.py b/invoice_merging/__manifest__.py new file mode 100644 index 000000000..613326589 --- /dev/null +++ b/invoice_merging/__manifest__.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Akhil Ashok(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': 'Merge Invoices', + 'version': '17.0.1.0.0', + 'category': 'Accounting', + 'summary': 'This module will helps to merge different Account moves', + 'description': "This module helps to manage invoices, credit note," + " debit note, vendor bills by merging them", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['account'], + 'data': [ + 'security/ir.model.access.csv', + 'data/ir_actions_server_data.xml', + 'wizard/merge_invoice_views.xml', + ], + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False +} diff --git a/invoice_merging/data/ir_actions_server_data.xml b/invoice_merging/data/ir_actions_server_data.xml new file mode 100644 index 000000000..15b62bbdb --- /dev/null +++ b/invoice_merging/data/ir_actions_server_data.xml @@ -0,0 +1,16 @@ + + + + + + Merge Invoices/Bills + + + list + code + + action = records.action_merge_invoice() + + + + diff --git a/invoice_merging/doc/RELEASE_NOTES.md b/invoice_merging/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..5e10eda07 --- /dev/null +++ b/invoice_merging/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 06.03.2024 +#### Version 17.0.1.0.0 +##### ADD +- Initial Commit for Merge Invoices diff --git a/invoice_merging/models/__init__.py b/invoice_merging/models/__init__.py new file mode 100644 index 000000000..ea5e8c6fb --- /dev/null +++ b/invoice_merging/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Akhil Ashok(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 account_move diff --git a/invoice_merging/models/account_move.py b/invoice_merging/models/account_move.py new file mode 100644 index 000000000..04dab60c2 --- /dev/null +++ b/invoice_merging/models/account_move.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Akhil Ashok(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 fields, models, _ + + +class AccountMove(models.Model): + """ + Inherit AccountMove class for add merge invoice action function, + Method: + action_merge_invoice(self): + Create new wizard with selected records + """ + _inherit = "account.move" + + def action_merge_invoice(self): + """ Method to create invoice merge wizard """ + merge_invoice = self.env['merge.invoice'].create({ + 'invoice_ids': [fields.Command.set(self.ids)], + }) + return { + 'name': _('Merge Invoices'), + 'type': 'ir.actions.act_window', + 'res_model': 'merge.invoice', + 'view_mode': 'form', + 'res_id': merge_invoice.id, + 'target': 'new' + } diff --git a/invoice_merging/security/ir.model.access.csv b/invoice_merging/security/ir.model.access.csv new file mode 100644 index 000000000..fc4db92af --- /dev/null +++ b/invoice_merging/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink +access_merge_invoice_user,access.merge.invoice.user,model_merge_invoice,base.group_user,1,1,1,1 diff --git a/invoice_merging/static/description/assets/icons/capture (1).png b/invoice_merging/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/invoice_merging/static/description/assets/icons/capture (1).png differ diff --git a/invoice_merging/static/description/assets/icons/check.png b/invoice_merging/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/invoice_merging/static/description/assets/icons/check.png differ diff --git a/invoice_merging/static/description/assets/icons/chevron.png b/invoice_merging/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/invoice_merging/static/description/assets/icons/chevron.png differ diff --git a/invoice_merging/static/description/assets/icons/cogs.png b/invoice_merging/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/invoice_merging/static/description/assets/icons/cogs.png differ diff --git a/invoice_merging/static/description/assets/icons/consultation.png b/invoice_merging/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/invoice_merging/static/description/assets/icons/consultation.png differ diff --git a/invoice_merging/static/description/assets/icons/ecom-black.png b/invoice_merging/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/invoice_merging/static/description/assets/icons/ecom-black.png differ diff --git a/invoice_merging/static/description/assets/icons/education-black.png b/invoice_merging/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/invoice_merging/static/description/assets/icons/education-black.png differ diff --git a/invoice_merging/static/description/assets/icons/hotel-black.png b/invoice_merging/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/invoice_merging/static/description/assets/icons/hotel-black.png differ diff --git a/invoice_merging/static/description/assets/icons/img.png b/invoice_merging/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/invoice_merging/static/description/assets/icons/img.png differ diff --git a/invoice_merging/static/description/assets/icons/license.png b/invoice_merging/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/invoice_merging/static/description/assets/icons/license.png differ diff --git a/invoice_merging/static/description/assets/icons/lifebuoy.png b/invoice_merging/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/invoice_merging/static/description/assets/icons/lifebuoy.png differ diff --git a/invoice_merging/static/description/assets/icons/manufacturing-black.png b/invoice_merging/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/invoice_merging/static/description/assets/icons/manufacturing-black.png differ diff --git a/invoice_merging/static/description/assets/icons/photo-capture.png b/invoice_merging/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/invoice_merging/static/description/assets/icons/photo-capture.png differ diff --git a/invoice_merging/static/description/assets/icons/pos-black.png b/invoice_merging/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/invoice_merging/static/description/assets/icons/pos-black.png differ diff --git a/invoice_merging/static/description/assets/icons/puzzle.png b/invoice_merging/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/invoice_merging/static/description/assets/icons/puzzle.png differ diff --git a/invoice_merging/static/description/assets/icons/restaurant-black.png b/invoice_merging/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/invoice_merging/static/description/assets/icons/restaurant-black.png differ diff --git a/invoice_merging/static/description/assets/icons/service-black.png b/invoice_merging/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/invoice_merging/static/description/assets/icons/service-black.png differ diff --git a/invoice_merging/static/description/assets/icons/trading-black.png b/invoice_merging/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/invoice_merging/static/description/assets/icons/trading-black.png differ diff --git a/invoice_merging/static/description/assets/icons/training.png b/invoice_merging/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/invoice_merging/static/description/assets/icons/training.png differ diff --git a/invoice_merging/static/description/assets/icons/update.png b/invoice_merging/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/invoice_merging/static/description/assets/icons/update.png differ diff --git a/invoice_merging/static/description/assets/icons/user.png b/invoice_merging/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/invoice_merging/static/description/assets/icons/user.png differ diff --git a/invoice_merging/static/description/assets/icons/wrench.png b/invoice_merging/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/invoice_merging/static/description/assets/icons/wrench.png differ diff --git a/invoice_merging/static/description/assets/misc/Cybrosys R.png b/invoice_merging/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/invoice_merging/static/description/assets/misc/Cybrosys R.png differ diff --git a/invoice_merging/static/description/assets/misc/email.svg b/invoice_merging/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/invoice_merging/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/invoice_merging/static/description/assets/misc/phone.svg b/invoice_merging/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/invoice_merging/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/invoice_merging/static/description/assets/misc/star (1) 2.svg b/invoice_merging/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/invoice_merging/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/invoice_merging/static/description/assets/misc/support (1) 1.svg b/invoice_merging/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/invoice_merging/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/invoice_merging/static/description/assets/misc/support-email.svg b/invoice_merging/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/invoice_merging/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/invoice_merging/static/description/assets/misc/tick-mark.svg b/invoice_merging/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/invoice_merging/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/invoice_merging/static/description/assets/misc/whatsapp 1.svg b/invoice_merging/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/invoice_merging/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/invoice_merging/static/description/assets/misc/whatsapp.svg b/invoice_merging/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/invoice_merging/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/invoice_merging/static/description/assets/modules/m1.png b/invoice_merging/static/description/assets/modules/m1.png new file mode 100644 index 000000000..acb4c76c6 Binary files /dev/null and b/invoice_merging/static/description/assets/modules/m1.png differ diff --git a/invoice_merging/static/description/assets/modules/m2.png b/invoice_merging/static/description/assets/modules/m2.png new file mode 100644 index 000000000..3ef91f771 Binary files /dev/null and b/invoice_merging/static/description/assets/modules/m2.png differ diff --git a/invoice_merging/static/description/assets/modules/m3.png b/invoice_merging/static/description/assets/modules/m3.png new file mode 100644 index 000000000..72febf6ae Binary files /dev/null and b/invoice_merging/static/description/assets/modules/m3.png differ diff --git a/invoice_merging/static/description/assets/modules/m4.png b/invoice_merging/static/description/assets/modules/m4.png new file mode 100644 index 000000000..f7d7f9241 Binary files /dev/null and b/invoice_merging/static/description/assets/modules/m4.png differ diff --git a/invoice_merging/static/description/assets/modules/m5.png b/invoice_merging/static/description/assets/modules/m5.png new file mode 100644 index 000000000..1d3324e88 Binary files /dev/null and b/invoice_merging/static/description/assets/modules/m5.png differ diff --git a/invoice_merging/static/description/assets/modules/m6.png b/invoice_merging/static/description/assets/modules/m6.png new file mode 100644 index 000000000..80938c15a Binary files /dev/null and b/invoice_merging/static/description/assets/modules/m6.png differ diff --git a/invoice_merging/static/description/assets/screenshots/1.png b/invoice_merging/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..413502ee0 Binary files /dev/null and b/invoice_merging/static/description/assets/screenshots/1.png differ diff --git a/invoice_merging/static/description/assets/screenshots/10.png b/invoice_merging/static/description/assets/screenshots/10.png new file mode 100644 index 000000000..afe7b82cd Binary files /dev/null and b/invoice_merging/static/description/assets/screenshots/10.png differ diff --git a/invoice_merging/static/description/assets/screenshots/11.png b/invoice_merging/static/description/assets/screenshots/11.png new file mode 100644 index 000000000..cc3989092 Binary files /dev/null and b/invoice_merging/static/description/assets/screenshots/11.png differ diff --git a/invoice_merging/static/description/assets/screenshots/12.png b/invoice_merging/static/description/assets/screenshots/12.png new file mode 100644 index 000000000..13bc2d5cf Binary files /dev/null and b/invoice_merging/static/description/assets/screenshots/12.png differ diff --git a/invoice_merging/static/description/assets/screenshots/13.png b/invoice_merging/static/description/assets/screenshots/13.png new file mode 100644 index 000000000..7a639a872 Binary files /dev/null and b/invoice_merging/static/description/assets/screenshots/13.png differ diff --git a/invoice_merging/static/description/assets/screenshots/2.png b/invoice_merging/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..fa319451d Binary files /dev/null and b/invoice_merging/static/description/assets/screenshots/2.png differ diff --git a/invoice_merging/static/description/assets/screenshots/3.png b/invoice_merging/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..4a0346c3a Binary files /dev/null and b/invoice_merging/static/description/assets/screenshots/3.png differ diff --git a/invoice_merging/static/description/assets/screenshots/4.png b/invoice_merging/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..1c568b190 Binary files /dev/null and b/invoice_merging/static/description/assets/screenshots/4.png differ diff --git a/invoice_merging/static/description/assets/screenshots/5.png b/invoice_merging/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..50f303909 Binary files /dev/null and b/invoice_merging/static/description/assets/screenshots/5.png differ diff --git a/invoice_merging/static/description/assets/screenshots/6.png b/invoice_merging/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..53e897e24 Binary files /dev/null and b/invoice_merging/static/description/assets/screenshots/6.png differ diff --git a/invoice_merging/static/description/assets/screenshots/7.png b/invoice_merging/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..f63acfcdc Binary files /dev/null and b/invoice_merging/static/description/assets/screenshots/7.png differ diff --git a/invoice_merging/static/description/assets/screenshots/8.png b/invoice_merging/static/description/assets/screenshots/8.png new file mode 100644 index 000000000..547a7052f Binary files /dev/null and b/invoice_merging/static/description/assets/screenshots/8.png differ diff --git a/invoice_merging/static/description/assets/screenshots/9.png b/invoice_merging/static/description/assets/screenshots/9.png new file mode 100644 index 000000000..7dc59dd41 Binary files /dev/null and b/invoice_merging/static/description/assets/screenshots/9.png differ diff --git a/invoice_merging/static/description/assets/screenshots/hero.gif b/invoice_merging/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..496dfa0cf Binary files /dev/null and b/invoice_merging/static/description/assets/screenshots/hero.gif differ diff --git a/invoice_merging/static/description/banner.jpg b/invoice_merging/static/description/banner.jpg new file mode 100644 index 000000000..764fdc5f9 Binary files /dev/null and b/invoice_merging/static/description/banner.jpg differ diff --git a/invoice_merging/static/description/icon.png b/invoice_merging/static/description/icon.png new file mode 100644 index 000000000..d35b5b757 Binary files /dev/null and b/invoice_merging/static/description/icon.png differ diff --git a/invoice_merging/static/description/index.html b/invoice_merging/static/description/index.html new file mode 100644 index 000000000..a5979fa31 --- /dev/null +++ b/invoice_merging/static/description/index.html @@ -0,0 +1,748 @@ + + + + + + Merge Invoices + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Merge Invoices

+

+ This Module Will Help To Manage All Type Of Account Moves By Merging. +

+
+ +
+
+
+
+
+

Key Highlights +

+
+
+
+
+
+ +
+
+

Easy to manage Invoice, Credit notes, Bills etc...

+
+
+
+
+
+
+ +
+
+

Simply select and merge.

+
+
+
+
+
+
+ +
+
+

Merge to single Invoice/Bill from existing large no of Invoices/Bills.

+
+
+
+
+
+
+ +
+
+

Option for merge to existing Account move

+
+
+
+
+
+
+ +
+
+

Track merged moves using payment reference field.

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

+ Select more than one Invoices.

+
+
+
+
+
+
+ +
+
+

+ The details of INV/2023/00006

+
+
+
+
+
+
+ +
+
+

+ The details of INV/2023/00007

+
+
+
+
+
+
+ +
+
+

+ Select the Invoices for merging.

+
+
+
+
+
+
+ +
+
+

+ When selected Invoices, there will be an option for Merge under the Actions menu.

+
+
+
+
+
+
+ +
+
+

+ Merge confirm window, shows selected Invoices and how to use it.

+
+
+
+
+
+
+ +
+
+

+ When a new partner selected from wizard then a new Invoice created with existing Invoice lines, + also we can decide what to do with the selected Invoices ie, Cancel or Keep it.

+
+
+
+
+
+
+ +
+
+

+ Shows the newly created Invoice.

+
+
+
+
+
+
+ +
+
+

+ The details of newly created Invoice, merged Invoice lines, Also + note that payment reference field shows the merged Invoice names

+
+
+
+
+
+
+ +
+
+

+ Merging once again.

+
+
+
+
+
+
+ +
+
+

+ This time merging on existing Invoice, so choose an Invoice to merge. + Selecting merging type as "Cancel Others" ie, + All Invoices except target will be Cancelled.

+
+
+
+
+
+
+ +
+
+

+ Shows result after merging, all Invoice lines merged to target + Invoice (INV/2023/00006) and other one (INV/2023/00007) is Cancelled.

+
+
+
+
+
+
+ +
+
+

+ The result after merge to existing Invoice, also note tha payment reference + field it shows merged Invoices names.

+
+
+
+
+
+
+
    +
  • + Merge to single Invoice/Bill from existing large no of Invoices/Bills. +
  • +
  • + Option for merge to existing Account move. +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:8th Dec 2023 +
+

+ Initial Commit for Merge Invoices.

+
+
+
+
+
+
+

Related Products

+
+
+ +
+
+

Our Services

+ +
+
+
+
+
+
+
+
+ service-icon +
+
+

Odoo Customization

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Support

+
+
+
+
+
+
+ service-icon +
+
+

Hire Odoo Developer

+
+
+
+
+ +
+
+ service-icon +
+
+

Odoo Integration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Migration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Consultancy

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Licensing Consultancy

+
+
+
+
+
+
+

Our Industries

+
+
+
+
+
+
+ +

Trading

+

Easily procure and sell your products

+
+
+
+
+ +

POS

+

Easy configuration and convivial experience

+
+
+
+
+ +

Education

+

A platform for educational management

+
+
+
+
+ +

Manufacturing

+

Plan, track and schedule your operations

+
+
+
+
+ +

E-commerce & Website

+

Mobile friendly, awe-inspiring product pages

+
+
+
+
+ +

Service Management

+

Keep track of services and invoice

+
+
+
+
+ +

Restaurant

+

Run your bar or restaurant methodically

+
+
+
+
+ +

Hotel Management

+

An all-inclusive hotel management application

+
+
+
+
+
+
+

Support

+
+
+
+
+
+
+
+ +
+ Need + Help? +

Got questions or need help? Get in touch.

+
odoo@cybrosys.com +
+
+
+
+
+
+
+
+ +
+ WhatsApp +

Say hi to us on WhatsApp!

+
+91 + 99456767686
+
+
+
+
+
+
+
+
+
+ + + + + + diff --git a/invoice_merging/wizard/__init__.py b/invoice_merging/wizard/__init__.py new file mode 100644 index 000000000..2b65b11cd --- /dev/null +++ b/invoice_merging/wizard/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Akhil Ashok(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 merge_invoice diff --git a/invoice_merging/wizard/merge_invoice.py b/invoice_merging/wizard/merge_invoice.py new file mode 100644 index 000000000..80ed576fe --- /dev/null +++ b/invoice_merging/wizard/merge_invoice.py @@ -0,0 +1,90 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Akhil Ashok(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 fields, models, _ +from odoo.exceptions import AccessError + + +class MergeInvoice(models.TransientModel): + """ + Main method to merge selected invoices + - If user select merge to existing then the selected invoices will be + merged to the selected record + - If no invoice is selected, then a new record will be created with the + existing picking lines + """ + _name = "merge.invoice" + _description = "Invoice Merge" + + invoice_ids = fields.Many2many('account.move', string="Selected Invoices", + help="Selected invoices to merge") + partner_id = fields.Many2one('res.partner', string="Customer", + help="The new invoice will be created" + " for selected partner") + target_invoice_id = fields.Many2one( + 'account.move', string="Merge to existing", + help="Select a invoice if you want to merge other invoices to selected " + "one, Otherwise leave it empty") + merge_type = fields.Selection( + [('cancel', 'Cancel Others'), ('keep', 'Keep Others')], + string="Merge type", default="cancel", + help="Select the merge type to decide what to do with other invoices") + + def action_merge_invoice(self): + """Method for merge invoices""" + # Checking for is there any exceptions + if len(list(set(self.invoice_ids))) == 1: + raise AccessError( + _("Merging is not possible on single Invoice or Bill")) + if any(state in ['posted', 'cancel'] for state in + self.invoice_ids.mapped('state')): + raise AccessError(_("Merging is only possible on draft state " + "Invoices or Bills")) + if len(list(set(self.invoice_ids.mapped('move_type')))) > 1: + raise AccessError(_("Merging is only possible for different type " + "moves, so please select the same type.")) + # If there is no exceptions continue with the merging + invoices = self.invoice_ids + invoice_lines = [] + pay_reference = [] + if self.target_invoice_id: + target_invoice = self.target_invoice_id + invoices -= self.target_invoice_id + pay_reference.append(target_invoice.name if + target_invoice.name != "/" else + f"Draft {str(target_invoice.id)}") + else: + target_invoice = self.env['account.move'].with_context( + check_move_validity=False).create( + {'partner_id': self.partner_id.id}) + for record in invoices: + for line in record.line_ids: + if line.display_type not in ["payment_term", "tax"]: + invoice_lines += line.with_context( + check_move_validity=False).copy( + {'move_id': target_invoice.id}) + pay_reference.append(record.name if + record.name != "/" else + f"Draft {str(record.id)}") + if self.merge_type == "cancel": + record.button_cancel() + target_invoice.write( + {'payment_reference': f"Merged ({(', '.join(pay_reference))})"}) diff --git a/invoice_merging/wizard/merge_invoice_views.xml b/invoice_merging/wizard/merge_invoice_views.xml new file mode 100644 index 000000000..b5e133456 --- /dev/null +++ b/invoice_merging/wizard/merge_invoice_views.xml @@ -0,0 +1,40 @@ + + + + + merge.invoice.view.form + merge.invoice + +
+ + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
diff --git a/stock_last_purchase_price/README.rst b/stock_last_purchase_price/README.rst index 26b591099..ee2377f04 100644 --- a/stock_last_purchase_price/README.rst +++ b/stock_last_purchase_price/README.rst @@ -1,6 +1,6 @@ -.. 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 +.. image:: https://img.shields.io/badge/license-OPL--1-red.svg + :target: https://www.odoo.com/documentation/17.0/legal/licenses.html#odoo-apps + :alt: License: OPL-1 Costing Method: Last Purchase Price =================================== @@ -30,8 +30,8 @@ Contacts License ------- -GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPLv3) -(https://www.gnu.org/licenses/agpl-3.0-standalone.html) +Odoo Proprietary License v1.0 (OPL-1) +(https://www.odoo.com/documentation/17.0/legal/licenses.html#odoo-apps) Bug Tracker ----------- diff --git a/stock_last_purchase_price/__init__.py b/stock_last_purchase_price/__init__.py index 3f54a1ccd..c9e99a457 100644 --- a/stock_last_purchase_price/__init__.py +++ b/stock_last_purchase_price/__init__.py @@ -1,23 +1,24 @@ # -*- coding: utf-8 -*- -################################################################################ +############################################################################### # # Cybrosys Technologies Pvt. Ltd. # -# Copyright (C) 2024-TODAY Cybrosys Technologies(). -# Author: Fathima Mazlin AM (odoo@cybrosys.com) +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions () # -# You can modify it under the terms of the GNU AFFERO -# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# This program is under the terms of the Odoo Proprietary License v1.0 +# (OPL-1) +# It is forbidden to publish, distribute, sublicense, or sell copies of the +# Software or modified copies of the Software. # -# 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. +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. # -# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE -# (AGPL v3) along with this program. -# If not, see . -# -################################################################################ +############################################################################### from . import models diff --git a/stock_last_purchase_price/__manifest__.py b/stock_last_purchase_price/__manifest__.py index cc91eb02e..65fd28c47 100644 --- a/stock_last_purchase_price/__manifest__.py +++ b/stock_last_purchase_price/__manifest__.py @@ -1,24 +1,25 @@ # -*- coding: utf-8 -*- -################################################################################ +############################################################################### # # Cybrosys Technologies Pvt. Ltd. # -# Copyright (C) 2024-TODAY Cybrosys Technologies(). -# Author: Fathima Mazlin AM (odoo@cybrosys.com) +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions () # -# You can modify it under the terms of the GNU AFFERO -# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# This program is under the terms of the Odoo Proprietary License v1.0 +# (OPL-1) +# It is forbidden to publish, distribute, sublicense, or sell copies of the +# Software or modified copies of the Software. # -# 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. +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. # -# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE -# (AGPL v3) along with this program. -# If not, see . -# -################################################################################ +############################################################################### { 'name': 'Costing Method: Last Purchase Price', 'version': '17.0.1.0.0', @@ -33,7 +34,7 @@ 'website': 'https://www.openhrms.com', 'depends': ['stock_account', 'purchase', 'account_accountant'], 'images': ['static/description/banner.jpg'], - 'license': 'AGPL-3', + 'license': 'OPL-1', 'installable': True, 'auto_install': False, 'application': False, diff --git a/stock_last_purchase_price/models/__init__.py b/stock_last_purchase_price/models/__init__.py index 18b925cbd..977d9c00d 100644 --- a/stock_last_purchase_price/models/__init__.py +++ b/stock_last_purchase_price/models/__init__.py @@ -1,24 +1,25 @@ # -*- coding: utf-8 -*- -################################################################################ +############################################################################### # # Cybrosys Technologies Pvt. Ltd. # -# Copyright (C) 2024-TODAY Cybrosys Technologies(). -# Author: Fathima Mazlin AM (odoo@cybrosys.com) +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions () # -# You can modify it under the terms of the GNU AFFERO -# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# This program is under the terms of the Odoo Proprietary License v1.0 +# (OPL-1) +# It is forbidden to publish, distribute, sublicense, or sell copies of the +# Software or modified copies of the Software. # -# 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. +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. # -# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE -# (AGPL v3) along with this program. -# If not, see . -# -################################################################################ +############################################################################### from . import product_category from . import product_product from . import product_template diff --git a/stock_last_purchase_price/models/product_category.py b/stock_last_purchase_price/models/product_category.py index c335459a8..9f5f82621 100644 --- a/stock_last_purchase_price/models/product_category.py +++ b/stock_last_purchase_price/models/product_category.py @@ -1,24 +1,25 @@ # -*- coding: utf-8 -*- -################################################################################ +############################################################################### # # Cybrosys Technologies Pvt. Ltd. # -# Copyright (C) 2024-TODAY Cybrosys Technologies(). -# Author: Fathima Mazlin AM (odoo@cybrosys.com) +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions () # -# You can modify it under the terms of the GNU AFFERO -# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# This program is under the terms of the Odoo Proprietary License v1.0 +# (OPL-1) +# It is forbidden to publish, distribute, sublicense, or sell copies of the +# Software or modified copies of the Software. # -# 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. +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. # -# 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 fields, models diff --git a/stock_last_purchase_price/models/product_product.py b/stock_last_purchase_price/models/product_product.py index 92f104d70..edb094a23 100644 --- a/stock_last_purchase_price/models/product_product.py +++ b/stock_last_purchase_price/models/product_product.py @@ -1,24 +1,25 @@ # -*- coding: utf-8 -*- -################################################################################ +############################################################################### # # Cybrosys Technologies Pvt. Ltd. # -# Copyright (C) 2024-TODAY Cybrosys Technologies(). -# Author: Fathima Mazlin(odoo@cybrosys.com) +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions () # -# You can modify it under the terms of the GNU AFFERO -# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# This program is under the terms of the Odoo Proprietary License v1.0 +# (OPL-1) +# It is forbidden to publish, distribute, sublicense, or sell copies of the +# Software or modified copies of the Software. # -# 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. +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. # -# 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, models, _ from odoo.exceptions import UserError from odoo.tools import float_is_zero diff --git a/stock_last_purchase_price/models/product_template.py b/stock_last_purchase_price/models/product_template.py index 1cde4f619..2380e0a29 100644 --- a/stock_last_purchase_price/models/product_template.py +++ b/stock_last_purchase_price/models/product_template.py @@ -1,24 +1,25 @@ # -*- coding: utf-8 -*- -################################################################################ +############################################################################### # # Cybrosys Technologies Pvt. Ltd. # -# Copyright (C) 2024-TODAY Cybrosys Technologies(). -# Author: Fathima Mazlin AM (odoo@cybrosys.com) +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions () # -# You can modify it under the terms of the GNU AFFERO -# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# This program is under the terms of the Odoo Proprietary License v1.0 +# (OPL-1) +# It is forbidden to publish, distribute, sublicense, or sell copies of the +# Software or modified copies of the Software. # -# 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. +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. # -# 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 fields, models diff --git a/stock_last_purchase_price/models/stock_move.py b/stock_last_purchase_price/models/stock_move.py index 8fdbd763b..14ccbf4ff 100644 --- a/stock_last_purchase_price/models/stock_move.py +++ b/stock_last_purchase_price/models/stock_move.py @@ -1,24 +1,25 @@ # -*- coding: utf-8 -*- -################################################################################ +############################################################################### # # Cybrosys Technologies Pvt. Ltd. # -# Copyright (C) 2024-TODAY Cybrosys Technologies(). -# Author: Fathima Mazlin AM (odoo@cybrosys.com) +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions () # -# You can modify it under the terms of the GNU AFFERO -# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# This program is under the terms of the Odoo Proprietary License v1.0 +# (OPL-1) +# It is forbidden to publish, distribute, sublicense, or sell copies of the +# Software or modified copies of the Software. # -# 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. +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. # -# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE -# (AGPL v3) along with this program. -# If not, see . -# -################################################################################ +############################################################################### from collections import defaultdict from odoo import models, _ from odoo.exceptions import UserError diff --git a/stock_last_purchase_price/models/stock_move_line.py b/stock_last_purchase_price/models/stock_move_line.py index bfb821f60..7ecce04f8 100644 --- a/stock_last_purchase_price/models/stock_move_line.py +++ b/stock_last_purchase_price/models/stock_move_line.py @@ -1,24 +1,25 @@ # -*- coding: utf-8 -*- -################################################################################ +############################################################################### # # Cybrosys Technologies Pvt. Ltd. # -# Copyright (C) 2024-TODAY Cybrosys Technologies(). -# Author: Fathima Mazlin AM (odoo@cybrosys.com) +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions () # -# You can modify it under the terms of the GNU AFFERO -# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# This program is under the terms of the Odoo Proprietary License v1.0 +# (OPL-1) +# It is forbidden to publish, distribute, sublicense, or sell copies of the +# Software or modified copies of the Software. # -# 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. +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. # -# 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 models diff --git a/uom_product_list/README.rst b/uom_product_list/README.rst new file mode 100644 index 000000000..9e2a02b47 --- /dev/null +++ b/uom_product_list/README.rst @@ -0,0 +1,50 @@ + .. 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 + + +Uom Product List +================ +This module will help you to view products from it's unit of measure. + +Configuration +============= +* No additional configurations needed + +License +------- +General Public License, Version 3 (AGPL v3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: + (V16) Neenu Merlin Jose, + (V17) Jumana Haseen, +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/uom_product_list/__init__.py b/uom_product_list/__init__.py new file mode 100644 index 000000000..e5c57eb35 --- /dev/null +++ b/uom_product_list/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Jumana Haseen (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 models diff --git a/uom_product_list/__manifest__.py b/uom_product_list/__manifest__.py new file mode 100644 index 000000000..23801a46c --- /dev/null +++ b/uom_product_list/__manifest__.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Jumana Haseen (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': 'Uom Product List', + 'version': '17.0.1.0.0', + 'category': 'Sales', + 'summary': 'Uom Product List for listing out the products in its ' + 'unit of measure', + 'description': 'A UOM Product List is a comprehensive record that ' + 'displays a list of products with their ' + 'corresponding units of measure', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'images': ['static/description/banner.png'], + 'website': 'https://www.cybrosys.com', + 'depends': ['sale_management'], + 'data': [ + 'views/uom_uom_views.xml', + ], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/uom_product_list/doc/RELEASE_NOTES.md b/uom_product_list/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..a1514fdb6 --- /dev/null +++ b/uom_product_list/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 11.03.2024 +#### Version 17.0.1.0.0 +#### ADD + +- Initial Commit for Uom Product List. diff --git a/uom_product_list/models/__init__.py b/uom_product_list/models/__init__.py new file mode 100644 index 000000000..a46d8be1f --- /dev/null +++ b/uom_product_list/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Jumana Haseen (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 uom_uom diff --git a/uom_product_list/models/uom_uom.py b/uom_product_list/models/uom_uom.py new file mode 100644 index 000000000..d2f54c3f7 --- /dev/null +++ b/uom_product_list/models/uom_uom.py @@ -0,0 +1,69 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Jumana Haseen (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 fields, models + + +class Uom(models.Model): + """Class inheriting uom model for listing out the products in their + corresponding unit of measure.""" + _inherit = 'uom.uom' + _description = 'Product Unit Of Measure' + + products_uom = fields.Integer(compute='compute_product_count', + string="Products", + help="Compute product count in UOM") + purchase_uom_products = fields.Integer(compute='compute_product_count', + string="Purchase UOM Products", + help="Compute purchase product" + " count in a UOM") + + def action_view_products(self): + """Smart tab for viewing products with corresponding UOM""" + return { + 'type': 'ir.actions.act_window', + 'name': 'Products', + 'view_mode': 'kanban,form', + 'res_model': 'product.template', + 'domain': [('uom_id', '=', self.id)], + 'context': "{'create': False}" + } + + def action_view_purchase_products(self): + """Smart tab for viewing products with corresponding Purchase UOM""" + return { + 'type': 'ir.actions.act_window', + 'name': 'Products', + 'view_mode': 'kanban,form', + 'res_model': 'product.template', + 'domain': [('uom_po_id', '=', self.id)], + 'context': "{'create': False}" + } + + def compute_product_count(self): + """Function for computing the count of products with the + corresponding UOM""" + for record in self: + record.products_uom = self.env['product.template'].search_count( + [('uom_id', '=', record.id)]) + record.purchase_uom_products = self.env[ + 'product.template'].search_count( + [('uom_po_id', '=', record.id)]) diff --git a/uom_product_list/static/description/assets/icons/capture (1).png b/uom_product_list/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/uom_product_list/static/description/assets/icons/capture (1).png differ diff --git a/uom_product_list/static/description/assets/icons/check.png b/uom_product_list/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/uom_product_list/static/description/assets/icons/check.png differ diff --git a/uom_product_list/static/description/assets/icons/chevron.png b/uom_product_list/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/uom_product_list/static/description/assets/icons/chevron.png differ diff --git a/uom_product_list/static/description/assets/icons/cogs.png b/uom_product_list/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/uom_product_list/static/description/assets/icons/cogs.png differ diff --git a/uom_product_list/static/description/assets/icons/consultation.png b/uom_product_list/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/uom_product_list/static/description/assets/icons/consultation.png differ diff --git a/uom_product_list/static/description/assets/icons/ecom-black.png b/uom_product_list/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/uom_product_list/static/description/assets/icons/ecom-black.png differ diff --git a/uom_product_list/static/description/assets/icons/education-black.png b/uom_product_list/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/uom_product_list/static/description/assets/icons/education-black.png differ diff --git a/uom_product_list/static/description/assets/icons/hotel-black.png b/uom_product_list/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/uom_product_list/static/description/assets/icons/hotel-black.png differ diff --git a/uom_product_list/static/description/assets/icons/img.png b/uom_product_list/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/uom_product_list/static/description/assets/icons/img.png differ diff --git a/uom_product_list/static/description/assets/icons/license.png b/uom_product_list/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/uom_product_list/static/description/assets/icons/license.png differ diff --git a/uom_product_list/static/description/assets/icons/lifebuoy.png b/uom_product_list/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/uom_product_list/static/description/assets/icons/lifebuoy.png differ diff --git a/uom_product_list/static/description/assets/icons/manufacturing-black.png b/uom_product_list/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/uom_product_list/static/description/assets/icons/manufacturing-black.png differ diff --git a/uom_product_list/static/description/assets/icons/photo-capture.png b/uom_product_list/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/uom_product_list/static/description/assets/icons/photo-capture.png differ diff --git a/uom_product_list/static/description/assets/icons/pos-black.png b/uom_product_list/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/uom_product_list/static/description/assets/icons/pos-black.png differ diff --git a/uom_product_list/static/description/assets/icons/puzzle.png b/uom_product_list/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/uom_product_list/static/description/assets/icons/puzzle.png differ diff --git a/uom_product_list/static/description/assets/icons/restaurant-black.png b/uom_product_list/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/uom_product_list/static/description/assets/icons/restaurant-black.png differ diff --git a/uom_product_list/static/description/assets/icons/service-black.png b/uom_product_list/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/uom_product_list/static/description/assets/icons/service-black.png differ diff --git a/uom_product_list/static/description/assets/icons/trading-black.png b/uom_product_list/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/uom_product_list/static/description/assets/icons/trading-black.png differ diff --git a/uom_product_list/static/description/assets/icons/training.png b/uom_product_list/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/uom_product_list/static/description/assets/icons/training.png differ diff --git a/uom_product_list/static/description/assets/icons/update.png b/uom_product_list/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/uom_product_list/static/description/assets/icons/update.png differ diff --git a/uom_product_list/static/description/assets/icons/user.png b/uom_product_list/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/uom_product_list/static/description/assets/icons/user.png differ diff --git a/uom_product_list/static/description/assets/icons/wrench.png b/uom_product_list/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/uom_product_list/static/description/assets/icons/wrench.png differ diff --git a/uom_product_list/static/description/assets/misc/Cybrosys R.png b/uom_product_list/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/uom_product_list/static/description/assets/misc/Cybrosys R.png differ diff --git a/uom_product_list/static/description/assets/misc/email.svg b/uom_product_list/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/uom_product_list/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/uom_product_list/static/description/assets/misc/phone.svg b/uom_product_list/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/uom_product_list/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/uom_product_list/static/description/assets/misc/star (1) 2.svg b/uom_product_list/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/uom_product_list/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/uom_product_list/static/description/assets/misc/support (1) 1.svg b/uom_product_list/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/uom_product_list/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/uom_product_list/static/description/assets/misc/support-email.svg b/uom_product_list/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/uom_product_list/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/uom_product_list/static/description/assets/misc/tick-mark.svg b/uom_product_list/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/uom_product_list/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/uom_product_list/static/description/assets/misc/whatsapp 1.svg b/uom_product_list/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/uom_product_list/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/uom_product_list/static/description/assets/misc/whatsapp.svg b/uom_product_list/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/uom_product_list/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/uom_product_list/static/description/assets/modules/1.png b/uom_product_list/static/description/assets/modules/1.png new file mode 100644 index 000000000..c0aa87cc5 Binary files /dev/null and b/uom_product_list/static/description/assets/modules/1.png differ diff --git a/uom_product_list/static/description/assets/modules/2.png b/uom_product_list/static/description/assets/modules/2.png new file mode 100644 index 000000000..5734931de Binary files /dev/null and b/uom_product_list/static/description/assets/modules/2.png differ diff --git a/uom_product_list/static/description/assets/modules/3.png b/uom_product_list/static/description/assets/modules/3.png new file mode 100644 index 000000000..50d084907 Binary files /dev/null and b/uom_product_list/static/description/assets/modules/3.png differ diff --git a/uom_product_list/static/description/assets/modules/4.png b/uom_product_list/static/description/assets/modules/4.png new file mode 100644 index 000000000..459661aba Binary files /dev/null and b/uom_product_list/static/description/assets/modules/4.png differ diff --git a/uom_product_list/static/description/assets/modules/5.png b/uom_product_list/static/description/assets/modules/5.png new file mode 100644 index 000000000..e02fa66be Binary files /dev/null and b/uom_product_list/static/description/assets/modules/5.png differ diff --git a/uom_product_list/static/description/assets/modules/6.png b/uom_product_list/static/description/assets/modules/6.png new file mode 100644 index 000000000..2dd6095e8 Binary files /dev/null and b/uom_product_list/static/description/assets/modules/6.png differ diff --git a/uom_product_list/static/description/assets/screenshots/1.png b/uom_product_list/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..97a29a061 Binary files /dev/null and b/uom_product_list/static/description/assets/screenshots/1.png differ diff --git a/uom_product_list/static/description/assets/screenshots/2.png b/uom_product_list/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..35e340b27 Binary files /dev/null and b/uom_product_list/static/description/assets/screenshots/2.png differ diff --git a/uom_product_list/static/description/assets/screenshots/3.png b/uom_product_list/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..e2181189a Binary files /dev/null and b/uom_product_list/static/description/assets/screenshots/3.png differ diff --git a/uom_product_list/static/description/assets/screenshots/4.png b/uom_product_list/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..2cfe8ad55 Binary files /dev/null and b/uom_product_list/static/description/assets/screenshots/4.png differ diff --git a/uom_product_list/static/description/assets/screenshots/hero.gif b/uom_product_list/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..cccca0f28 Binary files /dev/null and b/uom_product_list/static/description/assets/screenshots/hero.gif differ diff --git a/uom_product_list/static/description/banner.png b/uom_product_list/static/description/banner.png new file mode 100644 index 000000000..42ec031b9 Binary files /dev/null and b/uom_product_list/static/description/banner.png differ diff --git a/uom_product_list/static/description/icon.png b/uom_product_list/static/description/icon.png new file mode 100644 index 000000000..e1959c466 Binary files /dev/null and b/uom_product_list/static/description/icon.png differ diff --git a/uom_product_list/static/description/index.html b/uom_product_list/static/description/index.html new file mode 100644 index 000000000..a8d1a0e2c --- /dev/null +++ b/uom_product_list/static/description/index.html @@ -0,0 +1,690 @@ + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ UOM Product List

+

+ View products from its unit of measure. +

+
+ +
+
+
+
+
+

+ Key Highlights +

+
+
+
+
+
+ +
+
+

+ View products with Purchase UOM.

+
+
+
+
+
+
+ +
+
+

+ View products with UOM.

+
+
+
+
+
+
+ +
+
+

+ >View Products in Kanban View.

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

+ Unit Of Measure.

+

+ Go to configuration -> Unit Of Measure. Select any UOM and Choose Products Tab.

+
+
+
+
+
+
+ +
+
+

+ Products With UOM.

+

+ We can see products which has the selected unit of measure.

+
+
+
+
+
+
+ + +
+
+

+ Purchase UOM.

+

+ Select Purchase UOM Products Tab. + We can see products which has the selected Purchase unit of measure.

+
+
+
+
+
+
+
    +
  • + Available in + Odoo 17.0 Community and Enterprise +
  • +
  • + UOM Product List +
      +
    • This module helps you to view Products and Purchase UOM Products from its unit of measure. +
    • +
    +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:11th March 2024 +
+

+ Initial Commit for UOM Product List +

+
+
+
+
+
+
+
+

+ Related Products

+
+
+ +
+
+

+ Our Services

+
+
+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Customization

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Support

+
+
+
+
+
+
+ service-icon +
+
+

Hire + Odoo Developer

+
+
+
+
+ +
+
+ service-icon +
+
+

Odoo + Integration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Migration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Consultancy

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Licensing Consultancy

+
+
+
+
+
+
+

+ Our Industries

+
+
+
+
+
+
+ +

Trading

+

Easily procure and sell your products

+
+
+
+
+ +

POS

+

Easy configuration and convivial experience

+
+
+
+
+ +

+ Education

+

A platform for educational management

+
+
+
+
+ +

+ Manufacturing

+

Plan, track and schedule your operations

+
+
+
+
+ +

E-commerce & + Website

+

Mobile friendly, awe-inspiring product pages

+
+
+
+
+ +

Service + Management

+

Keep track of services and invoice

+
+
+
+
+ +

+ Restaurant

+

Run your bar or restaurant methodically

+
+
+
+
+ +

Hotel + Management

+

An all-inclusive hotel management application

+
+
+
+
+
+
+

+ Support

+
+
+
+
+
+
+
+ +
+ Need + Help? +

Got + questions or need help? Get in touch.

+
odoo@cybrosys.com +
+
+
+
+
+
+
+
+ +
+ WhatsApp +

Say hi to + us on WhatsApp!

+
+91 + 99456767686 +
+
+
+
+
+
+
+
+
+ + + + + + diff --git a/uom_product_list/views/uom_uom_views.xml b/uom_product_list/views/uom_uom_views.xml new file mode 100644 index 000000000..42df1a5e1 --- /dev/null +++ b/uom_product_list/views/uom_uom_views.xml @@ -0,0 +1,25 @@ + + + + + uom.uom.view.form.inherit.uom.product.list + uom.uom + + + +
+ + +
+
+
+
+
diff --git a/warranty_management/README.rst b/warranty_management/README.rst new file mode 100644 index 000000000..d81ec0ca8 --- /dev/null +++ b/warranty_management/README.rst @@ -0,0 +1,49 @@ +.. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg + :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 + +Warranty Management +=================== +Warranty management used to manage warranty of product + +Configuration +============= +- Additional configuration not required + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developers: + (V16) Subina P, + (V17) Dhanya + 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/warranty_management/__init__.py b/warranty_management/__init__.py new file mode 100644 index 000000000..50349d36a --- /dev/null +++ b/warranty_management/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-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 controllers +from . import models diff --git a/warranty_management/__manifest__.py b/warranty_management/__manifest__.py new file mode 100644 index 000000000..d50c06fb9 --- /dev/null +++ b/warranty_management/__manifest__.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-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': 'Warranty Management', + 'version': '17.0.1.0.0', + 'category': 'Sale', + 'summary': 'Warranty management used to manage warranty of product', + 'description': """The "Warranty Management" module enables businesses to + efficiently track product warranties, including expiration dates and + associated customer details. Seamlessly integrated with sales processes, + it facilitates easy warranty claim creation from sales orders and enhances + customer experience with website warranty registration.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['sale_management', 'website'], + 'data': [ + 'data/website_menu_data.xml', + 'security/ir.model.access.csv', + 'views/product_template_views.xml', + 'views/sale_order_views.xml', + 'views/website_registration_templates.xml', + 'views/warranty_claim_views.xml', + 'views/portal_templates.xml', + ], + 'assets': { + 'web.assets_frontend': [ + 'warranty_management/static/src/js/website_registration.js', + 'warranty_management/static/src/css/warranty.css', + ], + }, + 'images': ['static/description/banner.jpg'], + 'license': 'LGPL-3', + 'installable': True, + 'application': False, + 'auto_install': False +} diff --git a/warranty_management/controllers/__init__.py b/warranty_management/controllers/__init__.py new file mode 100644 index 000000000..b0a5a05f2 --- /dev/null +++ b/warranty_management/controllers/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-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 portal +from . import warranty_management diff --git a/warranty_management/controllers/portal.py b/warranty_management/controllers/portal.py new file mode 100644 index 000000000..a4e4acbcb --- /dev/null +++ b/warranty_management/controllers/portal.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-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 http +from odoo.addons.portal.controllers.portal import CustomerPortal +from odoo.http import request + + +class PortalAccount(CustomerPortal): + """Inherited class to add portal menu for warranty claims""" + + def _prepare_home_portal_values(self, counters): + """ Super the function to add the warranty claim menu""" + values = super()._prepare_home_portal_values(counters) + user = request.env.user.partner_id.id + claim_count = (request.env['warranty.claim']. + search_count([('customer_id', '=', user)])) + values['claim_count'] = claim_count + return values + + @http.route('/my/claims', type='http', auth="user", website=True) + def my_claims(self): + """ Define the action to open the warranty claim tree view""" + user = request.env.user.partner_id.id + claims = (request.env['warranty.claim'].sudo(). + search([('customer_id', '=', user)])) + # Extract the required fields and store them in a list of dictionaries + claim_data = [{ + 'customer_id': claim.customer_id.name, + 'product_id': claim.product_id.name, + 'sale_order_id': claim.sale_order_id.name, + 'status': claim.state, + } for claim in claims] + # Pass the claim_data to the template + return http.request.render('warranty_management.portal_warranty_claims', + {'claim_data': claim_data}) diff --git a/warranty_management/controllers/warranty_management.py b/warranty_management/controllers/warranty_management.py new file mode 100644 index 000000000..d2a36fad8 --- /dev/null +++ b/warranty_management/controllers/warranty_management.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-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 http +from odoo.http import request + + +class WarrantyClaimController(http.Controller): + """ Class for Warranty claim controller""" + + @http.route('/warranty', type='http', auth="public", website=True) + def warranty_claim(self): + """ Function to pass the warranty claim details to the warranty + claim page""" + customers = request.env['res.partner'].sudo().search([]) + sale_orders = request.env['sale.order'].sudo().search([]) + products = request.env['product.template'].sudo().search([]) + return request.render('warranty_management.warranty_claim_page', + {'sale_orders': sale_orders, + 'customers': customers, + 'products': products}) + + @http.route('/warranty/claim/submit', type='http', auth="public", + website=True) + def warranty_claim_submit(self): + """Function to render the claim thanks view""" + return request.render('warranty_management.claim_thanks_view') diff --git a/warranty_management/data/website_menu_data.xml b/warranty_management/data/website_menu_data.xml new file mode 100644 index 000000000..9c9811ba7 --- /dev/null +++ b/warranty_management/data/website_menu_data.xml @@ -0,0 +1,13 @@ + + + + + + Warranty + /warranty + + 50 + + + diff --git a/warranty_management/doc/RELEASE_NOTES.md b/warranty_management/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..864f364e4 --- /dev/null +++ b/warranty_management/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 07.03.2024 +#### Version 17.0.1.0.0 +#### ADD +- Initial Commit for Warranty Management diff --git a/warranty_management/models/__init__.py b/warranty_management/models/__init__.py new file mode 100644 index 000000000..5b60225ee --- /dev/null +++ b/warranty_management/models/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-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 product_template +from . import sale_order +from . import warranty_claim diff --git a/warranty_management/models/product_template.py b/warranty_management/models/product_template.py new file mode 100644 index 000000000..6261c2720 --- /dev/null +++ b/warranty_management/models/product_template.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-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 fields, models + + +class ProductTemplate(models.Model): + """Inherited product template to add fields""" + _inherit = 'product.template' + + is_warranty_available = fields.Boolean(string="Warranty Available", + help="Boolean field to check" + "the warranty availability") + warranty_duration = fields.Integer(string="Warranty Duration (months)", + help="Warranty duration") + warranty_expiry = fields.Date(string="Warranty Expiry Date", + help="Warranty expiry date") diff --git a/warranty_management/models/sale_order.py b/warranty_management/models/sale_order.py new file mode 100644 index 000000000..facb33413 --- /dev/null +++ b/warranty_management/models/sale_order.py @@ -0,0 +1,76 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-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 dateutil.relativedelta import relativedelta +from odoo import fields, models + + +class SaleOrder(models.Model): + """Inherited sale order to super functions to add additional + functionalities""" + _inherit = 'sale.order' + + is_warranty_check = fields.Boolean(string='Warranty Check', + help='Check this box if the item has' + ' warranty.') + + def action_confirm(self): + """Call the super method to perform the default confirmation + behavior""" + super(SaleOrder, self).action_confirm() + # Loop through the order lines and check warranty for each product + for order in self: + for line in order.order_line: + product = line.product_id + if product.is_warranty_available: + self.is_warranty_check = True + else: + self.is_warranty_check = False + if (self.order_line. + filtered(lambda x: x.product_id.is_warranty_available)): + self.is_warranty_check = True + else: + self.is_warranty_check = False + + def action_open_smart_tab(self): + """ To open warranty smart tab""" + domain = [ + ('id', 'in', + self.order_line.mapped('product_id.product_tmpl_id.id')), + ('is_warranty_available', '=', True), + ] + products_with_warranty = self.env['product.template'].search(domain) + for product in products_with_warranty: + # Calculate the warranty expiry date based on the sale order date + warranty_expiry_date = self.date_order + relativedelta( + months=product.warranty_duration) + product.write({'warranty_expiry': warranty_expiry_date}) + return { + 'type': 'ir.actions.act_window', + 'name': 'Warranty Details', + 'view_mode': 'tree,form', + 'res_model': 'product.template', + 'views': [(self.env.ref('warranty_management.' + 'product_template_view_tree').id, 'tree'), + (self.env.ref('warranty_management.' + 'product_template_view_form').id, 'form')], + 'domain': domain + } diff --git a/warranty_management/models/warranty_claim.py b/warranty_management/models/warranty_claim.py new file mode 100644 index 000000000..d8c9178b3 --- /dev/null +++ b/warranty_management/models/warranty_claim.py @@ -0,0 +1,60 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-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 fields, models + + +class WarrantyClaim(models.Model): + """ Warranty claim class to add fields for warranty claim""" + _name = 'warranty.claim' + _rec_name = "sale_order_id" + _description = 'Warranty Claim' + + customer_id = fields.Many2one('res.partner', + string='Customer Name', + help="Customer selection", + required=True) + sale_order_id = fields.Many2one('sale.order', + help="To select the sale order", + string='Sale Order') + product_id = fields.Many2one('product.product', + string='Product', + help="To select the product", + required=True) + partner_id = fields.Many2one('res.users', string='User', + help="To select the partner", + default=lambda self: self.env.user) + state = fields.Selection( + [('draft', 'Draft'), ('approved', 'Approved'), + ('rejected', 'Rejected')], default='draft', String="Status", + help="To select the state") + product_expiry_date = fields.Date( + string='Product Expiry Date', help="To get the product expiry date", + related='product_id.product_tmpl_id.warranty_expiry', + store=True, readonly=True) + + def change_status_approved(self): + """ Function to change the status of the claim to approved""" + self.state = 'approved' + + def change_status_rejected(self): + """ Function to change the status of the claim to rejected""" + self.state = 'rejected' diff --git a/warranty_management/security/ir.model.access.csv b/warranty_management/security/ir.model.access.csv new file mode 100644 index 000000000..0a3bceb1b --- /dev/null +++ b/warranty_management/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink +access_warranty_claim_user,access.warranty.claim.user,model_warranty_claim,base.group_user,1,1,1,1 diff --git a/warranty_management/static/description/assets/icons/capture (1).png b/warranty_management/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/warranty_management/static/description/assets/icons/capture (1).png differ diff --git a/warranty_management/static/description/assets/icons/check.png b/warranty_management/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/warranty_management/static/description/assets/icons/check.png differ diff --git a/warranty_management/static/description/assets/icons/chevron.png b/warranty_management/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/warranty_management/static/description/assets/icons/chevron.png differ diff --git a/warranty_management/static/description/assets/icons/cogs.png b/warranty_management/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/warranty_management/static/description/assets/icons/cogs.png differ diff --git a/warranty_management/static/description/assets/icons/consultation.png b/warranty_management/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/warranty_management/static/description/assets/icons/consultation.png differ diff --git a/warranty_management/static/description/assets/icons/ecom-black.png b/warranty_management/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/warranty_management/static/description/assets/icons/ecom-black.png differ diff --git a/warranty_management/static/description/assets/icons/education-black.png b/warranty_management/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/warranty_management/static/description/assets/icons/education-black.png differ diff --git a/warranty_management/static/description/assets/icons/hotel-black.png b/warranty_management/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/warranty_management/static/description/assets/icons/hotel-black.png differ diff --git a/warranty_management/static/description/assets/icons/img.png b/warranty_management/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/warranty_management/static/description/assets/icons/img.png differ diff --git a/warranty_management/static/description/assets/icons/license.png b/warranty_management/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/warranty_management/static/description/assets/icons/license.png differ diff --git a/warranty_management/static/description/assets/icons/lifebuoy.png b/warranty_management/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/warranty_management/static/description/assets/icons/lifebuoy.png differ diff --git a/warranty_management/static/description/assets/icons/manufacturing-black.png b/warranty_management/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/warranty_management/static/description/assets/icons/manufacturing-black.png differ diff --git a/warranty_management/static/description/assets/icons/photo-capture.png b/warranty_management/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/warranty_management/static/description/assets/icons/photo-capture.png differ diff --git a/warranty_management/static/description/assets/icons/pos-black.png b/warranty_management/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/warranty_management/static/description/assets/icons/pos-black.png differ diff --git a/warranty_management/static/description/assets/icons/puzzle.png b/warranty_management/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/warranty_management/static/description/assets/icons/puzzle.png differ diff --git a/warranty_management/static/description/assets/icons/restaurant-black.png b/warranty_management/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/warranty_management/static/description/assets/icons/restaurant-black.png differ diff --git a/warranty_management/static/description/assets/icons/service-black.png b/warranty_management/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/warranty_management/static/description/assets/icons/service-black.png differ diff --git a/warranty_management/static/description/assets/icons/trading-black.png b/warranty_management/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/warranty_management/static/description/assets/icons/trading-black.png differ diff --git a/warranty_management/static/description/assets/icons/training.png b/warranty_management/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/warranty_management/static/description/assets/icons/training.png differ diff --git a/warranty_management/static/description/assets/icons/update.png b/warranty_management/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/warranty_management/static/description/assets/icons/update.png differ diff --git a/warranty_management/static/description/assets/icons/user.png b/warranty_management/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/warranty_management/static/description/assets/icons/user.png differ diff --git a/warranty_management/static/description/assets/icons/wrench.png b/warranty_management/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/warranty_management/static/description/assets/icons/wrench.png differ diff --git a/warranty_management/static/description/assets/misc/Cybrosys R.png b/warranty_management/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/warranty_management/static/description/assets/misc/Cybrosys R.png differ diff --git a/warranty_management/static/description/assets/misc/email.svg b/warranty_management/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/warranty_management/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/warranty_management/static/description/assets/misc/phone.svg b/warranty_management/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/warranty_management/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/warranty_management/static/description/assets/misc/star (1) 2.svg b/warranty_management/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/warranty_management/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/warranty_management/static/description/assets/misc/support (1) 1.svg b/warranty_management/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/warranty_management/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/warranty_management/static/description/assets/misc/support-email.svg b/warranty_management/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/warranty_management/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/warranty_management/static/description/assets/misc/tick-mark.svg b/warranty_management/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/warranty_management/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/warranty_management/static/description/assets/misc/whatsapp 1.svg b/warranty_management/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/warranty_management/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/warranty_management/static/description/assets/misc/whatsapp.svg b/warranty_management/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/warranty_management/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/warranty_management/static/description/assets/modules/m1.png b/warranty_management/static/description/assets/modules/m1.png new file mode 100644 index 000000000..acb4c76c6 Binary files /dev/null and b/warranty_management/static/description/assets/modules/m1.png differ diff --git a/warranty_management/static/description/assets/modules/m2.png b/warranty_management/static/description/assets/modules/m2.png new file mode 100644 index 000000000..3ef91f771 Binary files /dev/null and b/warranty_management/static/description/assets/modules/m2.png differ diff --git a/warranty_management/static/description/assets/modules/m3.png b/warranty_management/static/description/assets/modules/m3.png new file mode 100644 index 000000000..72febf6ae Binary files /dev/null and b/warranty_management/static/description/assets/modules/m3.png differ diff --git a/warranty_management/static/description/assets/modules/m4.png b/warranty_management/static/description/assets/modules/m4.png new file mode 100644 index 000000000..f7d7f9241 Binary files /dev/null and b/warranty_management/static/description/assets/modules/m4.png differ diff --git a/warranty_management/static/description/assets/modules/m5.png b/warranty_management/static/description/assets/modules/m5.png new file mode 100644 index 000000000..1d3324e88 Binary files /dev/null and b/warranty_management/static/description/assets/modules/m5.png differ diff --git a/warranty_management/static/description/assets/modules/m6.png b/warranty_management/static/description/assets/modules/m6.png new file mode 100644 index 000000000..80938c15a Binary files /dev/null and b/warranty_management/static/description/assets/modules/m6.png differ diff --git a/warranty_management/static/description/assets/screenshots/6.png b/warranty_management/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..fc0ccd822 Binary files /dev/null and b/warranty_management/static/description/assets/screenshots/6.png differ diff --git a/warranty_management/static/description/assets/screenshots/aaa.png b/warranty_management/static/description/assets/screenshots/aaa.png new file mode 100644 index 000000000..c1fec9886 Binary files /dev/null and b/warranty_management/static/description/assets/screenshots/aaa.png differ diff --git a/warranty_management/static/description/assets/screenshots/hero.gif b/warranty_management/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..2d02e5d92 Binary files /dev/null and b/warranty_management/static/description/assets/screenshots/hero.gif differ diff --git a/warranty_management/static/description/assets/screenshots/request-listview.png b/warranty_management/static/description/assets/screenshots/request-listview.png new file mode 100644 index 000000000..3531f8cbe Binary files /dev/null and b/warranty_management/static/description/assets/screenshots/request-listview.png differ diff --git a/warranty_management/static/description/assets/screenshots/warranty-form.png b/warranty_management/static/description/assets/screenshots/warranty-form.png new file mode 100644 index 000000000..df09a463f Binary files /dev/null and b/warranty_management/static/description/assets/screenshots/warranty-form.png differ diff --git a/warranty_management/static/description/assets/screenshots/warranty-in-product.png b/warranty_management/static/description/assets/screenshots/warranty-in-product.png new file mode 100644 index 000000000..075b40655 Binary files /dev/null and b/warranty_management/static/description/assets/screenshots/warranty-in-product.png differ diff --git a/warranty_management/static/description/assets/screenshots/warranty-in-sale.png b/warranty_management/static/description/assets/screenshots/warranty-in-sale.png new file mode 100644 index 000000000..dd43b52eb Binary files /dev/null and b/warranty_management/static/description/assets/screenshots/warranty-in-sale.png differ diff --git a/warranty_management/static/description/assets/screenshots/warranty-menu.png b/warranty_management/static/description/assets/screenshots/warranty-menu.png new file mode 100644 index 000000000..c6344bd63 Binary files /dev/null and b/warranty_management/static/description/assets/screenshots/warranty-menu.png differ diff --git a/warranty_management/static/description/assets/screenshots/warranty-product-in-sale.png b/warranty_management/static/description/assets/screenshots/warranty-product-in-sale.png new file mode 100644 index 000000000..091d7bcc1 Binary files /dev/null and b/warranty_management/static/description/assets/screenshots/warranty-product-in-sale.png differ diff --git a/warranty_management/static/description/assets/screenshots/warranty-request-approve.png b/warranty_management/static/description/assets/screenshots/warranty-request-approve.png new file mode 100644 index 000000000..3adda4338 Binary files /dev/null and b/warranty_management/static/description/assets/screenshots/warranty-request-approve.png differ diff --git a/warranty_management/static/description/assets/screenshots/warranty-smartbutton-formview.png b/warranty_management/static/description/assets/screenshots/warranty-smartbutton-formview.png new file mode 100644 index 000000000..67bd3211f Binary files /dev/null and b/warranty_management/static/description/assets/screenshots/warranty-smartbutton-formview.png differ diff --git a/warranty_management/static/description/assets/screenshots/warranty-smartbutton-listview.png b/warranty_management/static/description/assets/screenshots/warranty-smartbutton-listview.png new file mode 100644 index 000000000..a78d65d05 Binary files /dev/null and b/warranty_management/static/description/assets/screenshots/warranty-smartbutton-listview.png differ diff --git a/warranty_management/static/description/banner.jpg b/warranty_management/static/description/banner.jpg new file mode 100644 index 000000000..e09af65c2 Binary files /dev/null and b/warranty_management/static/description/banner.jpg differ diff --git a/warranty_management/static/description/icon.png b/warranty_management/static/description/icon.png new file mode 100644 index 000000000..072fca30e Binary files /dev/null and b/warranty_management/static/description/icon.png differ diff --git a/warranty_management/static/description/index.html b/warranty_management/static/description/index.html new file mode 100644 index 000000000..617e62548 --- /dev/null +++ b/warranty_management/static/description/index.html @@ -0,0 +1,801 @@ + + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Warranty Management

+

+ Detailed Warranty Management View. +

+
+ +
+
+
+
+
+

+ Key Highlights +

+
+
+
+
+
+ +
+
+

+ Dedicated Website Views for Users.

+
+
+
+
+
+
+ +
+
+

+ Users can Easily submit the warranty + claims

+
+
+
+
+
+
+ +
+

+ Warranty Menu in Website.

+
+
+
+
+
+
+ +
+
+

+ Warranty claim requests can be seen by + admin +

+
+
+
+
+
+
+ +
+
+

+ Automatic calculation of warranty expiry +

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

+ In the product form a warranty page is + added, if the product has warranty + available,then can be added the duration in + the field

+
+
+
+
+
+
+ +
+
+

+ If we add the warranty enabled product in a + sale order line then a warranty smart + button will be shown on confirmation.

+
+
+
+
+
+
+ +
+
+

+ Warranty details on clicking the smart + tab.

+
+
+
+
+
+
+ +
+
+

+ Warranty detail form view,The expiry date is + automatically calculated.

+
+
+
+
+
+
+ +
+
+

+ Warranty menu in website.

+
+
+
+
+
+
+ +
+
+

+ Warranty menu in website.

+
+
+
+
+
+
+ +
+
+

+ After Successful submission this page will + be shown: + +

+
+
+
+
+
+
+
    +
  • + Community & + Enterprise Support +
  • +
  • + Manages product + warranty policies & warranty claims. +
  • +
  • + Allows users to + declare warranty policies applicable to each + product. +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on: 7 March 2024 +
+

+ + Initial Commit for Warranty Management.

+
+
+
+
+
+
+
+

+ Related Products

+
+
+ +
+
+

+ Our Services

+
+
+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Customization

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Support

+
+
+
+
+
+
+ service-icon +
+
+

Hire + Odoo Developer

+
+
+
+
+ +
+
+ service-icon +
+
+

Odoo + Integration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Migration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Consultancy

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Licensing Consultancy

+
+
+
+
+
+
+

+ Our Industries

+ +
+
+
+
+
+
+ +

Trading

+

Easily procure and sell your products

+
+
+
+
+ +

POS

+

Easy configuration and convivial experience

+
+
+
+
+ +

+ Education

+

A platform for educational management

+
+
+
+
+ +

+ Manufacturing

+

Plan, track and schedule your operations

+
+
+
+
+ +

E-commerce & + Website

+

Mobile friendly, awe-inspiring product pages

+
+
+
+
+ +

Service + Management

+

Keep track of services and invoice

+
+
+
+
+ +

+ Restaurant

+

Run your bar or restaurant methodically

+
+
+
+
+ +

Hotel + Management

+

An all-inclusive hotel management application

+
+
+
+
+
+
+

+ Support

+
+
+
+
+
+
+
+ +
+ Need + Help? +

Got + questions or need help? Get in touch.

+
odoo@cybrosys.com +
+
+
+
+
+
+
+
+ +
+ WhatsApp +

Say hi to + us on WhatsApp!

+
+91 + 99456767686 +
+
+
+
+
+
+
+
+
+ + + + + + diff --git a/warranty_management/static/src/css/warranty.css b/warranty_management/static/src/css/warranty.css new file mode 100644 index 000000000..00f905a1f --- /dev/null +++ b/warranty_management/static/src/css/warranty.css @@ -0,0 +1,42 @@ +/* Style the labels */ +.error-message{ +color:red; +font:20px; +} +/* Style the labels */ +.o_form_label { + width: 300px; /* Adjust label width as needed */ + text-align: left; + display: inline-block; + /* Add spacing between label and input */ +} + +/* Style the input elements */ +.o_row .o_form_input { + display: inline-block; + width:600px; + /* Add spacing between input and next label */ +} + +/* Style the form buttons */ +.button { + background-color: #007bff; + color: #fff; + border: none; + padding: 10px 20px; + cursor: pointer; + border-radius: 5px; +} + +/* Style the button on hover */ +.button:hover { + background-color: #0056b3; +} + +/* Style the select dropdowns */ +select { + width: 100%; + padding: 5px; + border: 1px solid #ccc; + border-radius: 3px; +} diff --git a/warranty_management/static/src/js/website_registration.js b/warranty_management/static/src/js/website_registration.js new file mode 100644 index 000000000..17141aef8 --- /dev/null +++ b/warranty_management/static/src/js/website_registration.js @@ -0,0 +1,92 @@ +/** @odoo-module **/ + +import publicWidget from "@web/legacy/js/public/public_widget"; + +publicWidget.registry.WarrantyClaim = publicWidget.Widget.extend({ + selector: '.container', + events: { + 'click #customer_id': '_onClickCustomer', + 'click #sale_order_id': '_onClickSaleOrder', + 'submit #form_submit': '_onSubmit' + }, + init() { + this._super(...arguments); + this.orm = this.bindService("orm"); + }, + async _onClickCustomer(ev) { + ev.preventDefault(); + var selectedCustomerId = this.$('#customer_id').val(); + if (selectedCustomerId) { + var NameId = parseInt(selectedCustomerId); + await this.orm.call("sale.order", "search_read", [[['partner_id', '=', parseInt(selectedCustomerId)]]]).then(function (result) { + var $saleOrderDropdown = $('#sale_order_id'); + $saleOrderDropdown.empty(); + $.each(result, function (i, saleOrder) { + $saleOrderDropdown.append($('