diff --git a/invoice_bill_for_selected_order_lines/README.rst b/invoice_bill_for_selected_order_lines/README.rst new file mode 100644 index 000000000..122abbaa9 --- /dev/null +++ b/invoice_bill_for_selected_order_lines/README.rst @@ -0,0 +1,46 @@ +.. 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 + +Invoice Or Bill For Selected Order Lines +======================================== +* We can create invoice for the selected products from order line. Also we can use this feature in the case of bills. +* We can also create the invoice or bill for remaining products by selecting the products. + +Configuration +============= + * No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Credits +------- +Developers: (V15) Saneen K, 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_bill_for_selected_order_lines/__init__.py b/invoice_bill_for_selected_order_lines/__init__.py new file mode 100644 index 000000000..3d64a70fa --- /dev/null +++ b/invoice_bill_for_selected_order_lines/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Saneen K (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/invoice_bill_for_selected_order_lines/__manifest__.py b/invoice_bill_for_selected_order_lines/__manifest__.py new file mode 100644 index 000000000..96f4db06f --- /dev/null +++ b/invoice_bill_for_selected_order_lines/__manifest__.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Saneen K (odoo@cybrosys.com) +# +# This program is free software: you can modify +# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# along with this program. If not, see . +# +############################################################################### +{ + 'name': "Invoice Or Bill For Selected Order Lines", + 'version': '15.0.1.0.0', + 'category': 'Accounting,Purchases,Sales', + 'summary': 'Can use only selected products to invoice as well as bills.', + 'description': 'We can create invoice for the selected products from order' + 'line. Also we can use this feature in the case of bills.' + ' We can also create the invoice or bill for remaining ' + 'products by selecting the products.', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['sale_management', 'purchase', 'stock'], + 'data': [ + 'views/purchase_order_views.xml', + 'views/sale_order_views.xml', + ], + 'images': ['static/description/banner.png'], + 'license': 'LGPL-3', + 'installable': True, + 'application': False, + 'auto_install': False, +} diff --git a/invoice_bill_for_selected_order_lines/doc/RELEASE_NOTES.md b/invoice_bill_for_selected_order_lines/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..3fc10d9c8 --- /dev/null +++ b/invoice_bill_for_selected_order_lines/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 24.11.2023 +#### Version 15.0.1.0.0 +#### ADD +- Initial commit for Invoice Or Bill For Selected Order Lines diff --git a/invoice_bill_for_selected_order_lines/models/__init__.py b/invoice_bill_for_selected_order_lines/models/__init__.py new file mode 100644 index 000000000..11aef610e --- /dev/null +++ b/invoice_bill_for_selected_order_lines/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Saneen K (odoo@cybrosys.com) +# +# This program is free software: you can modify +# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# along with this program. If not, see . +# +############################################################################### +from . import purchase_order +from . import sale_order diff --git a/invoice_bill_for_selected_order_lines/models/purchase_order.py b/invoice_bill_for_selected_order_lines/models/purchase_order.py new file mode 100644 index 000000000..b80935d36 --- /dev/null +++ b/invoice_bill_for_selected_order_lines/models/purchase_order.py @@ -0,0 +1,136 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Saneen K (odoo@cybrosys.com) +# +# This program is free software: you can modify +# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# along with this program. If not, see . +# +############################################################################### +from odoo import fields, models, _ +from odoo.exceptions import UserError +from odoo.tools import float_is_zero, groupby + + +class PurchaseOrder(models.Model): + """Inherits the purchase order for updating the invoice-able line vals """ + _inherit = 'purchase.order' + + def action_select_all(self): + """Select all the products from the sale order line for invoice""" + self.order_line.filtered(lambda rec: rec.qty_to_invoice > 0).write( + {'is_product_select': True}) + + def action_deselect_all(self): + """Deselect all the products from the sale order line for invoice""" + self.order_line.filtered(lambda rec: rec.qty_to_invoice > 0).write( + {'is_product_select': False}) + + def action_create_invoice(self): + """Create the invoice associated to the PO and Update the invoice-able + lines on the basis of selected lines""" + precision = self.env['decimal.precision'].precision_get( + 'Product Unit of Measure') + # 1) Prepare invoice vals and clean-up the section lines + invoice_vals_list = [] + sequence = 10 + for order in self: + if order.invoice_status != 'to invoice': + continue + order = order.with_company(order.company_id) + pending_section = None + # Invoice values. + invoice_vals = order._prepare_invoice() + # Invoice line values (keep only necessary sections). + for line in order.order_line: + if ((line.is_product_select is True) or True not in + order.order_line.mapped('is_product_select')): + if line.display_type == 'line_section': + pending_section = line + continue + if not float_is_zero(line.qty_to_invoice, + precision_digits=precision): + if pending_section: + line_vals = ( + pending_section._prepare_account_move_line()) + line_vals.update({'sequence': sequence}) + invoice_vals['invoice_line_ids'].append( + (0, 0, line_vals)) + sequence += 1 + pending_section = None + line_vals = line._prepare_account_move_line() + line_vals.update({'sequence': sequence}) + invoice_vals['invoice_line_ids'].append( + (0, 0, line_vals)) + sequence += 1 + else: + line.is_product_select = True + invoice_vals_list.append(invoice_vals) + if not invoice_vals_list: + raise UserError(_('There is no invoice-able line. If a product has' + ' a control policy based on received quantity, ' + 'please make sure that a quantity has ' + 'been received.')) + # 2) group by (company_id, partner_id, currency_id) for batch creation + new_invoice_vals_list = [] + for grouping_keys, invoices in groupby(invoice_vals_list, + key=lambda x: ( + x.get('company_id'), + x.get('partner_id'), + x.get('currency_id'))): + origins = set() + payment_refs = set() + refs = set() + ref_invoice_vals = None + for invoice_vals in invoices: + if not ref_invoice_vals: + ref_invoice_vals = invoice_vals + else: + ref_invoice_vals['invoice_line_ids'] += \ + invoice_vals['invoice_line_ids'] + origins.add(invoice_vals['invoice_origin']) + payment_refs.add(invoice_vals['payment_reference']) + refs.add(invoice_vals['ref']) + ref_invoice_vals.update({ + 'ref': ', '.join(refs)[:2000], + 'invoice_origin': ', '.join(origins), + 'payment_reference': len(payment_refs) == 1 and payment_refs. + pop() or False, + }) + new_invoice_vals_list.append(ref_invoice_vals) + invoice_vals_list = new_invoice_vals_list + # 3) Create invoices. + moves = self.env['account.move'] + AccountMove = self.env['account.move'].with_context( + default_move_type='in_invoice') + for vals in invoice_vals_list: + moves |= AccountMove.with_company(vals['company_id']).create(vals) + # 4) Some moves might actually be refunds: convert them if the + # total amount is negative + # We do this after the moves have been created since we need taxes, + # 'etc. to know if the total + # is actually negative or not + moves.filtered(lambda m: m.currency_id.round(m.amount_total) < 0) \ + .action_switch_invoice_into_refund_credit_note() + return self.action_view_invoice(moves) + + +class PurchaseOrderLine(models.Model): + """Inherits the purchase order line for selecting the order line""" + _inherit = 'purchase.order.line' + + is_product_select = fields.Boolean(string="Select", + help="Select products from order line", + copy=False) diff --git a/invoice_bill_for_selected_order_lines/models/sale_order.py b/invoice_bill_for_selected_order_lines/models/sale_order.py new file mode 100644 index 000000000..38e7cb69f --- /dev/null +++ b/invoice_bill_for_selected_order_lines/models/sale_order.py @@ -0,0 +1,86 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Saneen K (odoo@cybrosys.com) +# +# This program is free software: you can modify +# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# along with this program. If not, see . +# +############################################################################### +from odoo import fields, models +from odoo.tools import float_is_zero + + +class SaleOrder(models.Model): + """Inherits the sale order for selecting products for updating the + invoice-able vals""" + _inherit = 'sale.order' + + def action_select_all(self): + """Select all the products from the sale order line for invoice""" + self.order_line.filtered(lambda rec: rec.qty_to_invoice > 0).write( + {'is_product_select': True}) + + def action_deselect_all(self): + """ Deselect all the products from the sale order line for invoice""" + self.order_line.filtered(lambda rec: rec.qty_to_invoice > 0).write( + {'is_product_select': False}) + + def _get_invoiceable_lines(self, final=False): + """Return the invoice-able lines for order `self` and Update the + invocable lines on the basis of selected lines""" + down_payment_line_ids = [] + invoiceable_line_ids = [] + pending_section = None + precision = self.env['decimal.precision'].precision_get( + 'Product Unit of Measure') + selected_lines = [] + for line in self.order_line: + if (line.is_product_select or line.is_downpayment) or \ + True not in self.order_line.mapped('is_product_select'): + selected_lines.append(line) + if line.display_type == 'line_section': + # Only invoice the section if one of its lines is + # invoice-able + pending_section = line + continue + if line.display_type != 'line_note' and float_is_zero( + line.qty_to_invoice, precision_digits=precision): + continue + if line.qty_to_invoice > 0 or (line.qty_to_invoice < 0 + and final) or \ + line.display_type == 'line_note': + if line.is_downpayment: + # Keep down payment lines separately, to put them + # together at the end of the invoice, in a specific + # dedicated section. + down_payment_line_ids.append(line.id) + continue + if pending_section: + invoiceable_line_ids.append(pending_section.id) + pending_section = None + invoiceable_line_ids.append(line.id) + else: + line.is_product_select = True + return self.env['sale.order.line'].browse(invoiceable_line_ids + + down_payment_line_ids) + + +class SaleOrderLine(models.Model): + """Inherits the sale order line for selecting the order line""" + _inherit = 'sale.order.line' + + is_product_select = fields.Boolean(string="Select", copy=False, + help="Select products from order line") diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/icons/check.png b/invoice_bill_for_selected_order_lines/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/icons/check.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/icons/chevron.png b/invoice_bill_for_selected_order_lines/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/icons/chevron.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/icons/cogs.png b/invoice_bill_for_selected_order_lines/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/icons/cogs.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/icons/consultation.png b/invoice_bill_for_selected_order_lines/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/icons/consultation.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/icons/ecom-black.png b/invoice_bill_for_selected_order_lines/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/icons/ecom-black.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/icons/education-black.png b/invoice_bill_for_selected_order_lines/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/icons/education-black.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/icons/hotel-black.png b/invoice_bill_for_selected_order_lines/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/icons/hotel-black.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/icons/license.png b/invoice_bill_for_selected_order_lines/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/icons/license.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/icons/lifebuoy.png b/invoice_bill_for_selected_order_lines/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/icons/lifebuoy.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/icons/manufacturing-black.png b/invoice_bill_for_selected_order_lines/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/icons/manufacturing-black.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/icons/pos-black.png b/invoice_bill_for_selected_order_lines/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/icons/pos-black.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/icons/puzzle.png b/invoice_bill_for_selected_order_lines/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/icons/puzzle.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/icons/restaurant-black.png b/invoice_bill_for_selected_order_lines/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/icons/restaurant-black.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/icons/service-black.png b/invoice_bill_for_selected_order_lines/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/icons/service-black.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/icons/trading-black.png b/invoice_bill_for_selected_order_lines/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/icons/trading-black.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/icons/training.png b/invoice_bill_for_selected_order_lines/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/icons/training.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/icons/update.png b/invoice_bill_for_selected_order_lines/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/icons/update.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/icons/user.png b/invoice_bill_for_selected_order_lines/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/icons/user.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/icons/wrench.png b/invoice_bill_for_selected_order_lines/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/icons/wrench.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/misc/categories.png b/invoice_bill_for_selected_order_lines/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/misc/categories.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/misc/check-box.png b/invoice_bill_for_selected_order_lines/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/misc/check-box.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/misc/compass.png b/invoice_bill_for_selected_order_lines/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/misc/compass.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/misc/corporate.png b/invoice_bill_for_selected_order_lines/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/misc/corporate.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/misc/customer-support.png b/invoice_bill_for_selected_order_lines/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/misc/customer-support.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/misc/cybrosys-logo.png b/invoice_bill_for_selected_order_lines/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/misc/cybrosys-logo.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/misc/features.png b/invoice_bill_for_selected_order_lines/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/misc/features.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/misc/logo.png b/invoice_bill_for_selected_order_lines/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/misc/logo.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/misc/pictures.png b/invoice_bill_for_selected_order_lines/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/misc/pictures.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/misc/pie-chart.png b/invoice_bill_for_selected_order_lines/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/misc/pie-chart.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/misc/right-arrow.png b/invoice_bill_for_selected_order_lines/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/misc/right-arrow.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/misc/star.png b/invoice_bill_for_selected_order_lines/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/misc/star.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/misc/support.png b/invoice_bill_for_selected_order_lines/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/misc/support.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/misc/whatsapp.png b/invoice_bill_for_selected_order_lines/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/misc/whatsapp.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/modules/1.png b/invoice_bill_for_selected_order_lines/static/description/assets/modules/1.png new file mode 100644 index 000000000..55070c974 Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/modules/1.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/modules/2.png b/invoice_bill_for_selected_order_lines/static/description/assets/modules/2.png new file mode 100644 index 000000000..2eb3c4570 Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/modules/2.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/modules/3.png b/invoice_bill_for_selected_order_lines/static/description/assets/modules/3.png new file mode 100644 index 000000000..5d23539cd Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/modules/3.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/modules/4.png b/invoice_bill_for_selected_order_lines/static/description/assets/modules/4.png new file mode 100644 index 000000000..234c34c01 Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/modules/4.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/modules/5.png b/invoice_bill_for_selected_order_lines/static/description/assets/modules/5.png new file mode 100644 index 000000000..7accf4696 Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/modules/5.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/modules/6.png b/invoice_bill_for_selected_order_lines/static/description/assets/modules/6.png new file mode 100644 index 000000000..04d502e26 Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/modules/6.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/screenshots/1-ISP.png b/invoice_bill_for_selected_order_lines/static/description/assets/screenshots/1-ISP.png new file mode 100644 index 000000000..57c47581f Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/screenshots/1-ISP.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/screenshots/2-ISP.png b/invoice_bill_for_selected_order_lines/static/description/assets/screenshots/2-ISP.png new file mode 100644 index 000000000..a4db8ef12 Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/screenshots/2-ISP.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/screenshots/3-ISP.png b/invoice_bill_for_selected_order_lines/static/description/assets/screenshots/3-ISP.png new file mode 100644 index 000000000..a6e9c7530 Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/screenshots/3-ISP.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/screenshots/4-ISP.png b/invoice_bill_for_selected_order_lines/static/description/assets/screenshots/4-ISP.png new file mode 100644 index 000000000..bc8da8b28 Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/screenshots/4-ISP.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/screenshots/5-ISP.png b/invoice_bill_for_selected_order_lines/static/description/assets/screenshots/5-ISP.png new file mode 100644 index 000000000..f5137379d Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/screenshots/5-ISP.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/screenshots/6-ISP.png b/invoice_bill_for_selected_order_lines/static/description/assets/screenshots/6-ISP.png new file mode 100644 index 000000000..6238a5289 Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/screenshots/6-ISP.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/assets/screenshots/hero.gif b/invoice_bill_for_selected_order_lines/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..50cbbfba5 Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/assets/screenshots/hero.gif differ diff --git a/invoice_bill_for_selected_order_lines/static/description/banner.png b/invoice_bill_for_selected_order_lines/static/description/banner.png new file mode 100644 index 000000000..94bab95e5 Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/banner.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/icon.png b/invoice_bill_for_selected_order_lines/static/description/icon.png new file mode 100644 index 000000000..88fcb6538 Binary files /dev/null and b/invoice_bill_for_selected_order_lines/static/description/icon.png differ diff --git a/invoice_bill_for_selected_order_lines/static/description/index.html b/invoice_bill_for_selected_order_lines/static/description/index.html new file mode 100644 index 000000000..f7d00b5de --- /dev/null +++ b/invoice_bill_for_selected_order_lines/static/description/index.html @@ -0,0 +1,569 @@ +
+ +
+ +
+
+ Odoo.sh +
+
+ Community +
+
+ Enterprise +
+
+
+ +
+
+
+ +

+ Invoice Or Bill For Selected Order Lines

+

Create Invoice or Bill for the Selected Order Lines Only.

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

Explore This + Module

+
+ + + + +
+
+ +
+

Overview +

+
+
+
+ This module helps to create invoices only for selected products from the order line. This feature is also available + during the creation of vendor bill. +
+
+ + + +
+
+ +
+

Features +

+
+
+
+
+ + Can Create Invoice for Selected Products. +
+
+ + Can Create Bill for Selected Products. +
+ + +
+
+ +
+ + Available in Odoo 15.0 + Community, Odoo.sh and Enterprise. +
+ +
+
+ + + +
+
+ +
+

Screenshots +

+
+
+
+ +
+

Invoice for Selected Products. +

+

After confirming a sale order we can see the options for selecting and deselecting the products + from sale order line. And click on the 'CREATE INVOICE'. +

+ +
+ +
+

Select 'Regular Invoice'. +

+

From the wizard select the "Regular Invoice". Then click on the 'CREATE AND VIEW INVOICE'.

+ +
+ +
+

Product Added. +

+

We can see the selected products are added in to the invoice line. Then confirm the invoice.

+ +
+ +
+

Remaining Invoice. +

+

We can create invoice for remaining products from the sale order by selecting the remaining product.We can + see the created invoice on the 'Invoices' tab .

+ +
+ +
+

Bill for Selected Products. +

+

In the case of vendor bills we can select the products from the purchase order line. + Then click on the 'CREATE BILL'.

+ +
+ +
+

Products Added. +

+

We can see the selected products are added in to the invoice line.

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

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

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

Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+ \ No newline at end of file diff --git a/invoice_bill_for_selected_order_lines/views/purchase_order_views.xml b/invoice_bill_for_selected_order_lines/views/purchase_order_views.xml new file mode 100644 index 000000000..12fadc61a --- /dev/null +++ b/invoice_bill_for_selected_order_lines/views/purchase_order_views.xml @@ -0,0 +1,30 @@ + + + + + + purchase.order.view.tree.inherit.invoice.or.bill.for.selected.order.lines + + + purchase.order + + + + + + +
+
+
+
+
+
diff --git a/invoice_bill_for_selected_order_lines/views/sale_order_views.xml b/invoice_bill_for_selected_order_lines/views/sale_order_views.xml new file mode 100644 index 000000000..1b0781836 --- /dev/null +++ b/invoice_bill_for_selected_order_lines/views/sale_order_views.xml @@ -0,0 +1,29 @@ + + + + + + sale.order.view.tree.inherit.invoice.or.bill.for.selected.order.lines + + + sale.order + + + + + +
+
+
+
+
+