diff --git a/sale_invoice_detail/README.rst b/sale_invoice_detail/README.rst new file mode 100644 index 000000000..f415592d1 --- /dev/null +++ b/sale_invoice_detail/README.rst @@ -0,0 +1,40 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Advanced Invoice Details on Sale Order +====================================== +This module allow to view invoice details on sale order. + +Configuration +============= +nil +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +Developer: Raveena Vijayan V @cybrosys, Contact: odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit `Our Website `__ + +Further information +=================== +HTML Description: ``__ \ No newline at end of file diff --git a/sale_invoice_detail/__init__.py b/sale_invoice_detail/__init__.py new file mode 100644 index 000000000..39982ea9e --- /dev/null +++ b/sale_invoice_detail/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-TODAY Cybrosys Technologies(). +# Author: Raveena Vijayan V (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..282f7762e --- /dev/null +++ b/sale_invoice_detail/__manifest__.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-TODAY Cybrosys Technologies(). +# Author: Raveena Vijayan V (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': '16.0.1.0.0', + 'summary': "Invoice Details on Sale order", + 'description': "Invoice Details on Sale order", + 'category': 'Sale', + 'author': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': [ + 'sale_management', 'account' + ], + 'data': [ + 'views/sale_order.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..d51e1d99a --- /dev/null +++ b/sale_invoice_detail/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 30.12.2022 +#### Version 16.0.1.0.0 + +##### Initial Commit for sale_invoice_detail + diff --git a/sale_invoice_detail/models/__init__.py b/sale_invoice_detail/models/__init__.py new file mode 100644 index 000000000..7ac7f689a --- /dev/null +++ b/sale_invoice_detail/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-TODAY Cybrosys Technologies(). +# Author: Raveena Vijayan V (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..fa2be2bb7 --- /dev/null +++ b/sale_invoice_detail/models/sale_order.py @@ -0,0 +1,59 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-TODAY Cybrosys Technologies(). +# Author: Raveena Vijayan V (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, api + + +class SaleOrder(models.Model): + _inherit = 'sale.order' + + invoiced_amount = fields.Float("Invoiced Amount", + compute="_compute_invoice_amount") + due_amount = fields.Float("Due Amount") + paid_amount = fields.Float("Paid Amount") + paid_amount_percent = fields.Float("Paid Amount in %", + compute="_compute_paid_amount_percent") + + def _compute_invoice_amount(self): + for rec in self: + rec.invoiced_amount = 0.0 + rec.paid_amount = 0.0 + rec.due_amount = 0.0 + if rec.invoice_ids: + inv = self.env['account.move'].search([ + ('id', 'in', rec.invoice_ids.ids)]) + for r in inv: + rec.invoiced_amount += r.amount_total + rec.paid_amount += r.amount_total - r.amount_residual + rec.due_amount = rec.amount_total - rec.paid_amount + + def _compute_paid_amount_percent(self): + for rec in self: + rec.paid_amount_percent = 0.0 + if rec.invoice_ids: + inv = self.env['account.move'].search( + [('id', 'in', rec.invoice_ids.ids)]) + p_amount = 0 + for r in inv: + p_amount += r.amount_total - r.amount_residual + rec.paid_amount_percent = (p_amount/rec.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..3ad04ecfd 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..baaef2807 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..04d502e26 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..d01ceb1ab 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..230d4dcb3 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..499b1a72f 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..59f0de9b1 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..73b73c588 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..bfd734d0c 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..af52b33df 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..ba00c53f0 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..67f308257 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..6a8c5f7f9 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..76769ba83 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..791d2c37d 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..51ec88dbc 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..776856002 Binary files /dev/null and b/sale_invoice_detail/static/description/icon.png differ diff --git a/sale_invoice_detail/static/description/images/checked.png b/sale_invoice_detail/static/description/images/checked.png new file mode 100644 index 000000000..578cedb80 Binary files /dev/null and b/sale_invoice_detail/static/description/images/checked.png differ diff --git a/sale_invoice_detail/static/description/images/cybrosys.png b/sale_invoice_detail/static/description/images/cybrosys.png new file mode 100644 index 000000000..d76b5bafb Binary files /dev/null and b/sale_invoice_detail/static/description/images/cybrosys.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..07161db87 --- /dev/null +++ b/sale_invoice_detail/static/description/index.html @@ -0,0 +1,600 @@ +
+
+
+

+ 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 +

+
+ +
+
+ +
+
+

+ Amounts on Order

+

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

+
+
+ +
+
+ +
+
+

+ Percentage of Amount Paid

+

+ 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?

+
+
+
+ + +
+ +
+ + +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ +
\ No newline at end of file diff --git a/sale_invoice_detail/views/sale_order.xml b/sale_invoice_detail/views/sale_order.xml new file mode 100644 index 000000000..ce474b70c --- /dev/null +++ b/sale_invoice_detail/views/sale_order.xml @@ -0,0 +1,38 @@ + + + + + sale.order.tree.inherit.sale.invoice + sale.order + + + + + + + + + + + sale.order.form.invoice.sale + sale.order + + + + + + + + + \ No newline at end of file