diff --git a/sale_invoice_detail/README.rst b/sale_invoice_detail/README.rst new file mode 100644 index 000000000..1bf7227c8 --- /dev/null +++ b/sale_invoice_detail/README.rst @@ -0,0 +1,45 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Advanced Invoice Details on Sale Order +====================================== +This module allow to view invoice details on sale order. + +Configuration +============= +No additional configuration is required. + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +_______ +Affero General Public License, Version 3 (AGPL v3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +Developer: (V15) Ammu Raj, 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/sale_invoice_detail/__init__.py b/sale_invoice_detail/__init__.py new file mode 100644 index 000000000..d9e93b8e8 --- /dev/null +++ b/sale_invoice_detail/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Ammu Raj (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/sale_invoice_detail/__manifest__.py b/sale_invoice_detail/__manifest__.py new file mode 100644 index 000000000..be970211f --- /dev/null +++ b/sale_invoice_detail/__manifest__.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Ammu Raj (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 Invoice Details on Sale order', + 'version': '15.0.1.0.0', + 'category': 'Accounting, Sales', + 'summary': "Invoice Details on Sale order", + 'description': "This app allows to view the Invoiced amount, Paid amount" + "and Due amount on sale orders list view", + 'author': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'depends': ['sale_management', 'account'], + 'data': [ + 'views/sale_order_views.xml', + ], + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/sale_invoice_detail/doc/RELEASE_NOTES.md b/sale_invoice_detail/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..63b9caf67 --- /dev/null +++ b/sale_invoice_detail/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 22.12.2023 +#### Version 15.0.1.0.0 +#### ADD + +- Initial commit for Advanced Invoice Details on Sale order diff --git a/sale_invoice_detail/models/__init__.py b/sale_invoice_detail/models/__init__.py new file mode 100644 index 000000000..c1023b197 --- /dev/null +++ b/sale_invoice_detail/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Ammu Raj (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 sale_order diff --git a/sale_invoice_detail/models/sale_order.py b/sale_invoice_detail/models/sale_order.py new file mode 100644 index 000000000..121bd1cfd --- /dev/null +++ b/sale_invoice_detail/models/sale_order.py @@ -0,0 +1,62 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Ammu Raj (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 SaleOrder(models.Model): + """Inherited Sale order for viewing the advanced invoice detail""" + _inherit = 'sale.order' + + invoiced_amount = fields.Float(string="Invoiced Amount", + compute="_compute_invoice_amount", + help="The total amount invoiced") + due_amount = fields.Float(string="Due Amount", + help="The total value invoice that remain unpaid") + paid_amount = fields.Float(string="Paid Amount", + help="The paid amount of the invoice") + paid_amount_percent = fields.Float(string="Paid Amount in %", + compute="_compute_paid_amount_percent", + help="The percentage of amount paid") + + def _compute_invoice_amount(self): + """Calculating the invoiced, paid and due amount of the invoice""" + for invoice in self: + invoice.invoiced_amount = 0.0 + invoice.paid_amount = 0.0 + invoice.due_amount = 0.0 + if invoice.invoice_ids: + for inv in self.env['account.move'].search( + [('id', 'in', invoice.invoice_ids.ids)]): + invoice.invoiced_amount += inv.amount_total + invoice.paid_amount += inv.amount_total - inv.amount_residual + invoice.due_amount = invoice.amount_total - invoice.paid_amount + + def _compute_paid_amount_percent(self): + """Calculating the percentage of paid amount""" + for invoice in self: + invoice.paid_amount_percent = 0.0 + if invoice.invoice_ids: + p_amount = 0 + for inv in self.env['account.move'].search( + [('id', 'in', invoice.invoice_ids.ids)]): + p_amount += inv.amount_total - inv.amount_residual + invoice.paid_amount_percent = (p_amount / invoice.amount_total) * 100 diff --git a/sale_invoice_detail/static/description/assets/icons/check.png b/sale_invoice_detail/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/sale_invoice_detail/static/description/assets/icons/check.png differ diff --git a/sale_invoice_detail/static/description/assets/icons/chevron.png b/sale_invoice_detail/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/sale_invoice_detail/static/description/assets/icons/chevron.png differ diff --git a/sale_invoice_detail/static/description/assets/icons/cogs.png b/sale_invoice_detail/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/sale_invoice_detail/static/description/assets/icons/cogs.png differ diff --git a/sale_invoice_detail/static/description/assets/icons/consultation.png b/sale_invoice_detail/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/sale_invoice_detail/static/description/assets/icons/consultation.png differ diff --git a/sale_invoice_detail/static/description/assets/icons/ecom-black.png b/sale_invoice_detail/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/sale_invoice_detail/static/description/assets/icons/ecom-black.png differ diff --git a/sale_invoice_detail/static/description/assets/icons/education-black.png b/sale_invoice_detail/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/sale_invoice_detail/static/description/assets/icons/education-black.png differ diff --git a/sale_invoice_detail/static/description/assets/icons/hotel-black.png b/sale_invoice_detail/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/sale_invoice_detail/static/description/assets/icons/hotel-black.png differ diff --git a/sale_invoice_detail/static/description/assets/icons/license.png b/sale_invoice_detail/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/sale_invoice_detail/static/description/assets/icons/license.png differ diff --git a/sale_invoice_detail/static/description/assets/icons/lifebuoy.png b/sale_invoice_detail/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/sale_invoice_detail/static/description/assets/icons/lifebuoy.png differ diff --git a/sale_invoice_detail/static/description/assets/icons/logo.png b/sale_invoice_detail/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/sale_invoice_detail/static/description/assets/icons/logo.png differ diff --git a/sale_invoice_detail/static/description/assets/icons/manufacturing-black.png b/sale_invoice_detail/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/sale_invoice_detail/static/description/assets/icons/manufacturing-black.png differ diff --git a/sale_invoice_detail/static/description/assets/icons/pos-black.png b/sale_invoice_detail/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/sale_invoice_detail/static/description/assets/icons/pos-black.png differ diff --git a/sale_invoice_detail/static/description/assets/icons/puzzle.png b/sale_invoice_detail/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/sale_invoice_detail/static/description/assets/icons/puzzle.png differ diff --git a/sale_invoice_detail/static/description/assets/icons/restaurant-black.png b/sale_invoice_detail/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/sale_invoice_detail/static/description/assets/icons/restaurant-black.png differ diff --git a/sale_invoice_detail/static/description/assets/icons/service-black.png b/sale_invoice_detail/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/sale_invoice_detail/static/description/assets/icons/service-black.png differ diff --git a/sale_invoice_detail/static/description/assets/icons/trading-black.png b/sale_invoice_detail/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/sale_invoice_detail/static/description/assets/icons/trading-black.png differ diff --git a/sale_invoice_detail/static/description/assets/icons/training.png b/sale_invoice_detail/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/sale_invoice_detail/static/description/assets/icons/training.png differ diff --git a/sale_invoice_detail/static/description/assets/icons/update.png b/sale_invoice_detail/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/sale_invoice_detail/static/description/assets/icons/update.png differ diff --git a/sale_invoice_detail/static/description/assets/icons/user.png b/sale_invoice_detail/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/sale_invoice_detail/static/description/assets/icons/user.png differ diff --git a/sale_invoice_detail/static/description/assets/icons/wrench.png b/sale_invoice_detail/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/sale_invoice_detail/static/description/assets/icons/wrench.png differ diff --git a/sale_invoice_detail/static/description/assets/modules/1.png b/sale_invoice_detail/static/description/assets/modules/1.png new file mode 100644 index 000000000..004c61a9e Binary files /dev/null and b/sale_invoice_detail/static/description/assets/modules/1.png differ diff --git a/sale_invoice_detail/static/description/assets/modules/2.png b/sale_invoice_detail/static/description/assets/modules/2.png new file mode 100644 index 000000000..737c0a22f Binary files /dev/null and b/sale_invoice_detail/static/description/assets/modules/2.png differ diff --git a/sale_invoice_detail/static/description/assets/modules/3.png b/sale_invoice_detail/static/description/assets/modules/3.png new file mode 100644 index 000000000..3f5bfcd0b Binary files /dev/null and b/sale_invoice_detail/static/description/assets/modules/3.png differ diff --git a/sale_invoice_detail/static/description/assets/modules/4.png b/sale_invoice_detail/static/description/assets/modules/4.png new file mode 100644 index 000000000..94c023fe1 Binary files /dev/null and b/sale_invoice_detail/static/description/assets/modules/4.png differ diff --git a/sale_invoice_detail/static/description/assets/modules/5.png b/sale_invoice_detail/static/description/assets/modules/5.png new file mode 100644 index 000000000..3c59f57c3 Binary files /dev/null and b/sale_invoice_detail/static/description/assets/modules/5.png differ diff --git a/sale_invoice_detail/static/description/assets/modules/6.png b/sale_invoice_detail/static/description/assets/modules/6.png new file mode 100644 index 000000000..e376b8fe0 Binary files /dev/null and b/sale_invoice_detail/static/description/assets/modules/6.png differ diff --git a/sale_invoice_detail/static/description/assets/screenshots/hero.gif b/sale_invoice_detail/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..0a846952c Binary files /dev/null and b/sale_invoice_detail/static/description/assets/screenshots/hero.gif differ diff --git a/sale_invoice_detail/static/description/assets/screenshots/sc1.png b/sale_invoice_detail/static/description/assets/screenshots/sc1.png new file mode 100644 index 000000000..fb662c3c6 Binary files /dev/null and b/sale_invoice_detail/static/description/assets/screenshots/sc1.png differ diff --git a/sale_invoice_detail/static/description/assets/screenshots/sc2.png b/sale_invoice_detail/static/description/assets/screenshots/sc2.png new file mode 100644 index 000000000..d2dd1c0d1 Binary files /dev/null and b/sale_invoice_detail/static/description/assets/screenshots/sc2.png differ diff --git a/sale_invoice_detail/static/description/assets/screenshots/sc3.png b/sale_invoice_detail/static/description/assets/screenshots/sc3.png new file mode 100644 index 000000000..509326c7e Binary files /dev/null and b/sale_invoice_detail/static/description/assets/screenshots/sc3.png differ diff --git a/sale_invoice_detail/static/description/assets/screenshots/sc4.png b/sale_invoice_detail/static/description/assets/screenshots/sc4.png new file mode 100644 index 000000000..b59cb2b0e Binary files /dev/null and b/sale_invoice_detail/static/description/assets/screenshots/sc4.png differ diff --git a/sale_invoice_detail/static/description/assets/screenshots/sc5.png b/sale_invoice_detail/static/description/assets/screenshots/sc5.png new file mode 100644 index 000000000..d9747c4c5 Binary files /dev/null and b/sale_invoice_detail/static/description/assets/screenshots/sc5.png differ diff --git a/sale_invoice_detail/static/description/assets/screenshots/sc6.png b/sale_invoice_detail/static/description/assets/screenshots/sc6.png new file mode 100644 index 000000000..f097b57b1 Binary files /dev/null and b/sale_invoice_detail/static/description/assets/screenshots/sc6.png differ diff --git a/sale_invoice_detail/static/description/assets/screenshots/sc7.png b/sale_invoice_detail/static/description/assets/screenshots/sc7.png new file mode 100644 index 000000000..e72f89b8d Binary files /dev/null and b/sale_invoice_detail/static/description/assets/screenshots/sc7.png differ diff --git a/sale_invoice_detail/static/description/assets/screenshots/sc8.png b/sale_invoice_detail/static/description/assets/screenshots/sc8.png new file mode 100644 index 000000000..bc8263210 Binary files /dev/null and b/sale_invoice_detail/static/description/assets/screenshots/sc8.png differ diff --git a/sale_invoice_detail/static/description/banner.png b/sale_invoice_detail/static/description/banner.png new file mode 100644 index 000000000..294b086fc Binary files /dev/null and b/sale_invoice_detail/static/description/banner.png differ diff --git a/sale_invoice_detail/static/description/icon.png b/sale_invoice_detail/static/description/icon.png new file mode 100644 index 000000000..9949114d2 Binary files /dev/null and b/sale_invoice_detail/static/description/icon.png differ diff --git a/sale_invoice_detail/static/description/index.html b/sale_invoice_detail/static/description/index.html new file mode 100644 index 000000000..449220b56 --- /dev/null +++ b/sale_invoice_detail/static/description/index.html @@ -0,0 +1,624 @@ +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo SH +
+
+
+
+
+
+
+
+

+ Advanced Invoice Details on Sale Order

+

+ You Can View the Invoiced Amount, Paid Amount and Due Amount on Sale Orders List View. +

+ +
+
+ +
+
+

+ Overview +

+
+ +
+

+ This module helps you to view the Invoiced amount, Paid amount and Due amount on sale orders list view. + The percentage of amount paid can be viewed on the sale order.

+
+
+
+
+

+ Features +

+
+
+
+ +
+
+

+ You can view the Invoiced amount, Paid amount and Due amount on sale orders list view.

+
+
+
+
+ +
+
+

+ You can view the percentage of paid amount on the sale order.

+
+
+
+
+
+
+

+ Screenshots +

+
+
+

+ All amounts on sale order list view.

+

+ You can see the Invoiced amount, Paid amount and Due amount.

+ +
+
+

+ Create invoice

+

+ Create Sale order, confirm it to create the invoice.

+ +
+
+

+ Register Payment

+

+ You can confirm the invoice and register the payment. +

+ +
+
+

+ Amount to Pay

+

+ You can change the amount to pay. +

+ +
+
+

+ Partial Payment

+

+ Since the invoiced amount is not fully paid, it shows the Partial paid Ribbon. +

+ +
+
+

+ Percentage of amount paid

+

+ You can view the percentage of amount paid on the sale order as a smart button. +

+ +
+
+

+ Amounts on list view

+

+ The invoice details can be seen on the list view. +

+ +
+
+ +
+
+

Suggested Products

+
+ +
+
+ + +
+
+
+

Our Services

+
+
+
+
+ +
+
+ Odoo + Customization
+
+
+
+ +
+
+ Odoo + Implementation
+
+
+
+ +
+
+ Odoo + Support
+
+
+
+ +
+
+ Hire + Odoo + Developer
+
+
+
+ +
+
+ Odoo + Integration
+
+
+
+ +
+
+ Odoo + Migration
+
+
+
+ +
+
+ Odoo + Consultancy
+
+
+
+ +
+
+ Odoo + Implementation
+
+
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+
+ + +
+
+
+

Our Industries

+
+
+
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

+
+
+
+
+ + + +
+
+
+

Need Help?

+
+
+
+ +
+
+
+ +
+ WhatsApp +
+
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ \ No newline at end of file diff --git a/sale_invoice_detail/views/sale_order_views.xml b/sale_invoice_detail/views/sale_order_views.xml new file mode 100644 index 000000000..fb0c3ad41 --- /dev/null +++ b/sale_invoice_detail/views/sale_order_views.xml @@ -0,0 +1,43 @@ + + + + + sale.order.view.tree.inherit.sale.invoice.detail + + sale.order + + + + + + + + + + + + sale.order.view.form.inherit.sale.invoice.detail + + sale.order + + + + + + + +