diff --git a/invoice_bill_select_orderlines/README.rst b/invoice_bill_select_orderlines/README.rst new file mode 100644 index 000000000..895837aed --- /dev/null +++ b/invoice_bill_select_orderlines/README.rst @@ -0,0 +1,50 @@ +.. 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 +============= +None. + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (LGPL v3). +(http://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Credits +------- +Developers: (V17) - Mufeeda Shirin + (V16) - Saneen K , Arjun S + +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_select_orderlines/__init__.py b/invoice_bill_select_orderlines/__init__.py new file mode 100644 index 000000000..f7ad510ae --- /dev/null +++ b/invoice_bill_select_orderlines/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions (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 models diff --git a/invoice_bill_select_orderlines/__manifest__.py b/invoice_bill_select_orderlines/__manifest__.py new file mode 100644 index 000000000..e5e8a4fac --- /dev/null +++ b/invoice_bill_select_orderlines/__manifest__.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions (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': '17.0.1.0.0', + 'category': 'Accounting,Purchase,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_select_orderlines/doc/RELEASE_NOTES.md b/invoice_bill_select_orderlines/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..b55ea18b5 --- /dev/null +++ b/invoice_bill_select_orderlines/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 05.07.2024 +#### Version 17.0.1.0.0 +#### ADD +- Initial commit for Invoice Or Bill For Selected Order Lines diff --git a/invoice_bill_select_orderlines/models/__init__.py b/invoice_bill_select_orderlines/models/__init__.py new file mode 100644 index 000000000..b9a30a5ac --- /dev/null +++ b/invoice_bill_select_orderlines/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions (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_select_orderlines/models/purchase_order.py b/invoice_bill_select_orderlines/models/purchase_order.py new file mode 100644 index 000000000..8321cc4e1 --- /dev/null +++ b/invoice_bill_select_orderlines/models/purchase_order.py @@ -0,0 +1,154 @@ +# -*- coding: utf-8 -*- +""" +Can use only selected products to invoice as well as bills. +""" +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions (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 PurchaseOrderLine(models.Model): + """Inherits the purchase order line""" + _inherit = 'purchase.order.line' + + is_product_select = fields.Boolean(string="Select", help="To select Products from Order lines", copy=False) + + +class PurchaseOrder(models.Model): + """Inherits the purchase order""" + _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 invoiceable + lines on the basis of selected lines""" + if self.order_line.filtered( + lambda selected: selected.is_product_select): + # 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.filtered(lambda line_select: ( + line_select.is_product_select) or True not in + self.order_line.mapped( + 'is_product_select') or + line_select.display_type == 'line_section'): + if line.display_type == 'line_section': + pending_section = line + continue + if not float_is_zero(line.qty_to_invoice, + precision_digits=self.env[ + 'decimal.precision'].precision_get( + 'Product Unit of Measure')): + 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 + invoice_vals_list.append(invoice_vals) + if not invoice_vals_list: + raise UserError( + _('There is no invoiceable 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'))): + ref_invoice_vals = self.get_ref_invoice_vals(invoices=invoices) + new_invoice_vals_list.append(ref_invoice_vals) + invoice_vals_list = new_invoice_vals_list + # 3) Create invoices. + moves = self.env['account.move'] + if invoice_vals_list[0].get('invoice_line_ids'): + for vals in invoice_vals_list: + moves |= self.env['account.move'].with_context( + default_move_type='in_invoice').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_move_type() + return self.action_view_invoice(moves) + raise UserError( + _('There is no invoiceable line. Please make sure ' + 'that a order line is selected')) + raise UserError(_('There is no invoiceable line. Please make sure ' + 'that a order line is selected')) + + def get_ref_invoice_vals(self, invoices): + """ + This is the method get_ref_invoice_vals which will return the invoice + vals to the method + """ + origins = set() + payment_refs = set() + refs = set() + ref_invoice_vals = {} + 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, + }) + return ref_invoice_vals diff --git a/invoice_bill_select_orderlines/models/sale_order.py b/invoice_bill_select_orderlines/models/sale_order.py new file mode 100644 index 000000000..9ed0b9ca1 --- /dev/null +++ b/invoice_bill_select_orderlines/models/sale_order.py @@ -0,0 +1,97 @@ +# -*- coding: utf-8 -*- +""" +Can use only selected products to invoice as well as bills. +""" +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions (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 + + +class SaleOrderLine(models.Model): + """Inherits the sale order line for adding the boolean field""" + _inherit = 'sale.order.line' + + is_product_select = fields.Boolean(string="Select", + help="To Select products from order line", + copy=False) + + +class SaleOrder(models.Model): + """Inherits the sale order for selecting products""" + _inherit = 'sale.order' + + is_qty_to_invoice = fields.Boolean(string="Is Qty To Invoice", + help="Is any pending qty to invoice", + compute='_compute_is_qty_to_to_invoice') + + def _compute_is_qty_to_to_invoice(self): + """Function to hide the select/deselect button when nothing to + invoice""" + if self.invoice_status == 'no': + self.is_qty_to_invoice = True + elif False in self.order_line.mapped('is_product_select'): + self.is_qty_to_invoice = False + else: + self.is_qty_to_invoice = True + + 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, line_section='line_section'): + """Return the invoice-able lines for order `self` and Update the + invoiceable lines on the basis of selected lines""" + if self.order_line.filtered( + lambda line: line.is_product_select): + down_payment_line_ids = [] + invoiceable_line_ids = [] + precision = self.env['decimal.precision'].precision_get( + 'Product Unit of Measure') + selected_lines = [] + for line in self.order_line.filtered(lambda line_select: ( + line_select.is_product_select or line_select.is_downpayment) or + True not in self.order_line.mapped( + 'is_product_select') or line_select.display_type == 'line_section' or line_select.display_type == 'line_note'): + selected_lines.append(line) + if line.display_type == line_section: + # Add the section to the invoiceable lines + invoiceable_line_ids.append(line.id) + elif line.display_type == 'line_note': + # Add the note to the invoiceable lines + invoiceable_line_ids.append(line.id) + elif float_is_zero(line.qty_to_invoice, + precision_digits=precision): + continue + else: + invoiceable_line_ids.append(line.id) + # Add the down payment lines to the invoiceable lines, at the end + invoiceable_line_ids += down_payment_line_ids + return self.env['sale.order.line'].browse(invoiceable_line_ids) + raise UserError(_('There is no invoiceable line. Please make sure ' + 'that a order line is selected')) diff --git a/invoice_bill_select_orderlines/static/description/assets/icons/check.png b/invoice_bill_select_orderlines/static/description/assets/icons/check.png new file mode 100755 index 000000000..c8e85f51d Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/icons/check.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/icons/chevron.png b/invoice_bill_select_orderlines/static/description/assets/icons/chevron.png new file mode 100755 index 000000000..2089293d6 Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/icons/chevron.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/icons/cogs.png b/invoice_bill_select_orderlines/static/description/assets/icons/cogs.png new file mode 100755 index 000000000..95d0bad62 Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/icons/cogs.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/icons/consultation.png b/invoice_bill_select_orderlines/static/description/assets/icons/consultation.png new file mode 100755 index 000000000..8319d4baa Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/icons/consultation.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/icons/ecom-black.png b/invoice_bill_select_orderlines/static/description/assets/icons/ecom-black.png new file mode 100755 index 000000000..a9385ff13 Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/icons/ecom-black.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/icons/education-black.png b/invoice_bill_select_orderlines/static/description/assets/icons/education-black.png new file mode 100755 index 000000000..3eb09b27b Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/icons/education-black.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/icons/hotel-black.png b/invoice_bill_select_orderlines/static/description/assets/icons/hotel-black.png new file mode 100755 index 000000000..130f613be Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/icons/hotel-black.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/icons/license.png b/invoice_bill_select_orderlines/static/description/assets/icons/license.png new file mode 100755 index 000000000..a5869797e Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/icons/license.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/icons/lifebuoy.png b/invoice_bill_select_orderlines/static/description/assets/icons/lifebuoy.png new file mode 100755 index 000000000..658d56ccc Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/icons/lifebuoy.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/icons/manufacturing-black.png b/invoice_bill_select_orderlines/static/description/assets/icons/manufacturing-black.png new file mode 100755 index 000000000..697eb0e9f Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/icons/manufacturing-black.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/icons/pos-black.png b/invoice_bill_select_orderlines/static/description/assets/icons/pos-black.png new file mode 100755 index 000000000..97c0f90c1 Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/icons/pos-black.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/icons/puzzle.png b/invoice_bill_select_orderlines/static/description/assets/icons/puzzle.png new file mode 100755 index 000000000..65cf854e7 Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/icons/puzzle.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/icons/restaurant-black.png b/invoice_bill_select_orderlines/static/description/assets/icons/restaurant-black.png new file mode 100755 index 000000000..4a35eb939 Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/icons/restaurant-black.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/icons/service-black.png b/invoice_bill_select_orderlines/static/description/assets/icons/service-black.png new file mode 100755 index 000000000..301ab51cb Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/icons/service-black.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/icons/trading-black.png b/invoice_bill_select_orderlines/static/description/assets/icons/trading-black.png new file mode 100755 index 000000000..9398ba2f1 Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/icons/trading-black.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/icons/training.png b/invoice_bill_select_orderlines/static/description/assets/icons/training.png new file mode 100755 index 000000000..884ca024d Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/icons/training.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/icons/update.png b/invoice_bill_select_orderlines/static/description/assets/icons/update.png new file mode 100755 index 000000000..ecbc5a01a Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/icons/update.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/icons/user.png b/invoice_bill_select_orderlines/static/description/assets/icons/user.png new file mode 100755 index 000000000..6ffb23d9f Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/icons/user.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/icons/wrench.png b/invoice_bill_select_orderlines/static/description/assets/icons/wrench.png new file mode 100755 index 000000000..6c04dea0f Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/icons/wrench.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/misc/Cybrosys R.png b/invoice_bill_select_orderlines/static/description/assets/misc/Cybrosys R.png new file mode 100755 index 000000000..da4058087 Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/misc/Cybrosys R.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/misc/categories.png b/invoice_bill_select_orderlines/static/description/assets/misc/categories.png new file mode 100755 index 000000000..bedf1e0b1 Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/misc/categories.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/misc/check-box.png b/invoice_bill_select_orderlines/static/description/assets/misc/check-box.png new file mode 100755 index 000000000..42caf24b9 Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/misc/check-box.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/misc/compass.png b/invoice_bill_select_orderlines/static/description/assets/misc/compass.png new file mode 100755 index 000000000..d5fed8faa Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/misc/compass.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/misc/corporate.png b/invoice_bill_select_orderlines/static/description/assets/misc/corporate.png new file mode 100755 index 000000000..2eb13edbf Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/misc/corporate.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/misc/customer-support.png b/invoice_bill_select_orderlines/static/description/assets/misc/customer-support.png new file mode 100755 index 000000000..79efc72ed Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/misc/customer-support.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/misc/cybrosys-logo.png b/invoice_bill_select_orderlines/static/description/assets/misc/cybrosys-logo.png new file mode 100755 index 000000000..cc3cc0ccf Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/misc/cybrosys-logo.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/misc/features.png b/invoice_bill_select_orderlines/static/description/assets/misc/features.png new file mode 100755 index 000000000..b41769f77 Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/misc/features.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/misc/logo.png b/invoice_bill_select_orderlines/static/description/assets/misc/logo.png new file mode 100755 index 000000000..478462d3e Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/misc/logo.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/misc/pictures.png b/invoice_bill_select_orderlines/static/description/assets/misc/pictures.png new file mode 100755 index 000000000..56d255fe9 Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/misc/pictures.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/misc/pie-chart.png b/invoice_bill_select_orderlines/static/description/assets/misc/pie-chart.png new file mode 100755 index 000000000..426e05244 Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/misc/pie-chart.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/misc/right-arrow.png b/invoice_bill_select_orderlines/static/description/assets/misc/right-arrow.png new file mode 100755 index 000000000..730984a06 Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/misc/right-arrow.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/misc/star.png b/invoice_bill_select_orderlines/static/description/assets/misc/star.png new file mode 100755 index 000000000..2eb9ab29f Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/misc/star.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/misc/support.png b/invoice_bill_select_orderlines/static/description/assets/misc/support.png new file mode 100755 index 000000000..4f18b8b82 Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/misc/support.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/misc/whatsapp.png b/invoice_bill_select_orderlines/static/description/assets/misc/whatsapp.png new file mode 100755 index 000000000..d513a5356 Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/misc/whatsapp.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/modules/1.jpg b/invoice_bill_select_orderlines/static/description/assets/modules/1.jpg new file mode 100755 index 000000000..e19e7ab11 Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/modules/1.jpg differ diff --git a/invoice_bill_select_orderlines/static/description/assets/modules/2.jpg b/invoice_bill_select_orderlines/static/description/assets/modules/2.jpg new file mode 100755 index 000000000..3f6a08970 Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/modules/2.jpg differ diff --git a/invoice_bill_select_orderlines/static/description/assets/modules/3.jpg b/invoice_bill_select_orderlines/static/description/assets/modules/3.jpg new file mode 100755 index 000000000..33491bcf0 Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/modules/3.jpg differ diff --git a/invoice_bill_select_orderlines/static/description/assets/modules/4.png b/invoice_bill_select_orderlines/static/description/assets/modules/4.png new file mode 100755 index 000000000..612be4b77 Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/modules/4.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/modules/5.jpg b/invoice_bill_select_orderlines/static/description/assets/modules/5.jpg new file mode 100755 index 000000000..693671ccf Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/modules/5.jpg differ diff --git a/invoice_bill_select_orderlines/static/description/assets/modules/6.png b/invoice_bill_select_orderlines/static/description/assets/modules/6.png new file mode 100755 index 000000000..a0ac2d840 Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/modules/6.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/screenshots/hero.gif b/invoice_bill_select_orderlines/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..f6aa49667 Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/screenshots/hero.gif differ diff --git a/invoice_bill_select_orderlines/static/description/assets/screenshots/invoice_bill_01.png b/invoice_bill_select_orderlines/static/description/assets/screenshots/invoice_bill_01.png new file mode 100644 index 000000000..f271efdd9 Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/screenshots/invoice_bill_01.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/screenshots/invoice_bill_02.png b/invoice_bill_select_orderlines/static/description/assets/screenshots/invoice_bill_02.png new file mode 100644 index 000000000..110b782b4 Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/screenshots/invoice_bill_02.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/screenshots/invoice_bill_03.png b/invoice_bill_select_orderlines/static/description/assets/screenshots/invoice_bill_03.png new file mode 100644 index 000000000..0f489f03a Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/screenshots/invoice_bill_03.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/screenshots/invoice_bill_04.png b/invoice_bill_select_orderlines/static/description/assets/screenshots/invoice_bill_04.png new file mode 100644 index 000000000..da9754c45 Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/screenshots/invoice_bill_04.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/screenshots/invoice_bill_05.png b/invoice_bill_select_orderlines/static/description/assets/screenshots/invoice_bill_05.png new file mode 100644 index 000000000..ae6b2580b Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/screenshots/invoice_bill_05.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/screenshots/invoice_bill_06.png b/invoice_bill_select_orderlines/static/description/assets/screenshots/invoice_bill_06.png new file mode 100644 index 000000000..8d73beee3 Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/screenshots/invoice_bill_06.png differ diff --git a/invoice_bill_select_orderlines/static/description/assets/screenshots/invoice_bill_07.png b/invoice_bill_select_orderlines/static/description/assets/screenshots/invoice_bill_07.png new file mode 100644 index 000000000..2cae10634 Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/assets/screenshots/invoice_bill_07.png differ diff --git a/invoice_bill_select_orderlines/static/description/banner.png b/invoice_bill_select_orderlines/static/description/banner.png new file mode 100644 index 000000000..896c0111e Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/banner.png differ diff --git a/invoice_bill_select_orderlines/static/description/icon.png b/invoice_bill_select_orderlines/static/description/icon.png new file mode 100644 index 000000000..0f8c70495 Binary files /dev/null and b/invoice_bill_select_orderlines/static/description/icon.png differ diff --git a/invoice_bill_select_orderlines/static/description/index.html b/invoice_bill_select_orderlines/static/description/index.html new file mode 100755 index 000000000..faf18855d --- /dev/null +++ b/invoice_bill_select_orderlines/static/description/index.html @@ -0,0 +1,764 @@ + + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Odoo.sh +
+
+ Enterprise +
+
+ Community +
+
+
+
+
+
+

+ Invoice Or Bill For Selected Order Lines

+

+ Create invoice or bill for the selected order lines only. +

+
+ +
+
+
+
+
+

+ Key Highlights +

+
+
+
+
+
+ +
+
+

+ Can Create Invoice for Selected Order Lines.

+
+
+
+
+
+
+ +
+
+

+ Can Create Bill for Selected Order Lines.

+
+
+
+
+
+
+ +
+
+

+ Available in Odoo 17.0 Community, Odoo.sh and Enterprise.

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

+ Create a Sale Order and Confirm It

+

+
+
+
+
+
+
+ +
+
+

+ Select Options are available

+

After confirming the sale order,we can see the selection box in each order line which + can be ready to invoice.Also we have options to select all and deselect all. +

+
+
+
+
+
+
+ +
+
+

+ Invoice Creation

+

+ Click Create invoice button, and choose Regular invoice option +

+
+
+
+
+
+
+ +
+
+

+ Invoice Created for the selected Order lines

+

Now we can see the invoice is created for the selected Order lines only

+
+
+
+
+
+
+ +
+
+

+ Remaining Invoice.

+

We can create invoice for remaining order lines from the sale order by selecting the + remaining order lines. +

+
+
+
+
+
+
+ +
+
+

+ Bill for Selected Products.

+

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

+
+
+
+
+
+
+ +
+
+

+ Order Lines Added.

+

+ We can see the selected order lines are added in to the Bill. +

+
+
+
+ +
+
+
+
    +
  • + Available in Odoo 17.0 Community and Enterprise +
  • +
  • + Invoices for selected Sale order lines +
  • +
  • + Bill for selected Purchase order lines. +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:5th July 2024 +
+

+ Initial Commit for Invoice Or Bill For Selected Order Lines .

+
+
+
+
+
+
+
+

+ 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_bill_select_orderlines/views/purchase_order_views.xml b/invoice_bill_select_orderlines/views/purchase_order_views.xml new file mode 100644 index 000000000..9c5e65da7 --- /dev/null +++ b/invoice_bill_select_orderlines/views/purchase_order_views.xml @@ -0,0 +1,23 @@ + + + + + purchase.order.view.inherit.tree.invoice.or.bill.for.selected.order.lines + + purchase.order + + + + + + +
+
+
+
+
+
\ No newline at end of file diff --git a/invoice_bill_select_orderlines/views/sale_order_views.xml b/invoice_bill_select_orderlines/views/sale_order_views.xml new file mode 100644 index 000000000..2d1e9de70 --- /dev/null +++ b/invoice_bill_select_orderlines/views/sale_order_views.xml @@ -0,0 +1,23 @@ + + + + + sale.order.view.inherit.tree.invoice.or.bill.for.selected.order.lines + + sale.order + + + + + +
+ +
+
+
+
+
\ No newline at end of file