diff --git a/purchase_down_payment/README.rst b/purchase_down_payment/README.rst new file mode 100755 index 000000000..3dff7d515 --- /dev/null +++ b/purchase_down_payment/README.rst @@ -0,0 +1,49 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Purchase Down Payment +======================= +This module helps to register down payment against the purchase order. + +Configuration +============= +No additional configuration + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +======= +GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPLv3) +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +Developer: V16 - Aswathi PN + V17 - Gayathri V + V18 - Ashwin T +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/purchase_down_payment/__init__.py b/purchase_down_payment/__init__.py new file mode 100644 index 000000000..ac7617bfe --- /dev/null +++ b/purchase_down_payment/__init__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Ashwin T(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. +############################################################################## +from . import models +from . import wizard diff --git a/purchase_down_payment/__manifest__.py b/purchase_down_payment/__manifest__.py new file mode 100644 index 000000000..41c099f91 --- /dev/null +++ b/purchase_down_payment/__manifest__.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Ashwin T () +# +# 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. +############################################################################## +{ + 'name': 'Purchase Down Payment', + 'version': '18.0.1.0.0', + 'summary': """Down payment with purchase order""", + 'description': 'This module provides easy feature to register down payment' + 'against the purchase order. User will be able to register ' + 'downpayment in percentage and amount that would deduct from' + 'vendor bill.', + 'category': 'Purchase', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['purchase', 'sale'], + 'data': [ + 'security/ir.model.access.csv', + 'wizard/purchase_order_advance_payment_views.xml', + 'views/purchase_order_views.xml', + 'views/res_config_settings_views.xml', + ], + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/purchase_down_payment/doc/RELEASE_NOTES.md b/purchase_down_payment/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..7c8af666a --- /dev/null +++ b/purchase_down_payment/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 27.12.2024 +#### Version 18.0.1.0.0 +#### ADD + +- Initial commit for Purchase Down Payment diff --git a/purchase_down_payment/models/__init__.py b/purchase_down_payment/models/__init__.py new file mode 100644 index 000000000..d5bd7ce2b --- /dev/null +++ b/purchase_down_payment/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Ashwin T (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. +############################################################################## +from . import purchase_order +from . import purchase_order_line +from . import res_config_settings diff --git a/purchase_down_payment/models/purchase_order.py b/purchase_down_payment/models/purchase_order.py new file mode 100644 index 000000000..dbcaa2276 --- /dev/null +++ b/purchase_down_payment/models/purchase_order.py @@ -0,0 +1,201 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Ashwin T (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. +############################################################################## +from odoo import api, models, _ +from odoo.tools import float_is_zero +from itertools import groupby +from odoo.exceptions import UserError + + +class PurchaseOrder(models.Model): + """ + This class is created for inherited model Purchase Order. + + Methods: _nothing_to_invoice_error(self): Function for showing the + user error while there is no products are received for the purchase + order. + + _deduct_payment(self): This function is for deducting the down + payment amount from next down payment invoice. + + _prepare_down_payment_section_line(self): Function for creating + dict of values to create a new purchase down payment section. + + _get_invoiceable_lines(self): + Function for returning the orders invoiceable lines. + + """ + _inherit = 'purchase.order' + + @api.model + def _nothing_to_invoice_error(self): + """Function to showing user error while there is no products are + received for the purchase order""" + return UserError(_( + "There is nothing to bill!\n\n" + "Reason(s) of this behavior could be:\n" + "- You should recieve your products before billing them: " + "Click on the \"truck\" icon " + "(top-right of your screen) and follow instructions.\n" + "- You should modify the control policy of your product: Open the " + "product, go to the " + "\"Purchase\" tab and modify control policy from \"On received " + "quantities\" to \"On ordered" + "quantities\"." + )) + + def _deduct_payment(self, grouped=False, final=False, date=None): + """ + Create the Bill associated to the PO. + :returns: list of created invoices + """ + invoice_vals_list = [] + invoice_item_sequence = 0 # Incremental sequencing to keep the lines + # order on the invoice. + for order in self: + order = order.with_company(order.company_id) + invoice_vals = order._prepare_invoice() + invoiceable_lines = order._get_invoiceable_lines(final) + if not any(not line.display_type for line in invoiceable_lines): + continue + invoice_line_vals = [] + down_payment_section_added = False + for line in invoiceable_lines: + if not down_payment_section_added and line.is_downpayment: + invoice_line_vals.append( + (0, 0, order._prepare_down_payment_section_line( + sequence=invoice_item_sequence, + )), + ) + down_payment_section_added = True + invoice_item_sequence += 1 + invoice_line_vals.append( + (0, 0, line._prepare_invoice_line( + sequence=invoice_item_sequence, + )), + ) + invoice_item_sequence += 1 + invoice_vals['invoice_line_ids'] += invoice_line_vals + invoice_vals_list.append(invoice_vals) + if not invoice_vals_list: + raise self._nothing_to_invoice_error() + if not grouped: + new_invoice_vals_list = [] + invoice_grouping_keys = self._get_invoice_grouping_keys() + invoice_vals_list = sorted( + invoice_vals_list, + key=lambda x: [ + x.get(grouping_key) for grouping_key in + invoice_grouping_keys + ] + ) + for grouping_keys, invoices in groupby(invoice_vals_list, + key=lambda x: [ + x.get(grouping_key) for + grouping_key in + invoice_grouping_keys]): + 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 + if len(invoice_vals_list) < len(self): + PurchaseOrderLine = self.env['purchase.order.line'] + for invoice in invoice_vals_list: + sequence = 1 + for line in invoice['invoice_line_ids']: + line[2][ + 'sequence'] = PurchaseOrderLine._get_invoice_line_sequence( + new=sequence, + old=line[2]['sequence']) + sequence += 1 + moves = self.env['account.move'].sudo().with_context( + default_move_type='out_invoice').create(invoice_vals_list) + return moves + + @api.model + def _prepare_down_payment_section_line(self, **optional_values): + """ + Prepare the dict of values to create a new down payment section for a + purchase order line. :param optional_values: any parameter that + should be added to the returned down payment section + """ + context = {'lang': self.partner_id.lang} + down_payments_section_line = { + 'display_type': 'line_section', + 'name': _('Down Payments'), + 'product_id': False, + 'product_uom_id': False, + 'quantity': 0, + 'discount': 0, + 'price_unit': 0, + 'account_id': False + } + del context + if optional_values: + down_payments_section_line.update(optional_values) + return down_payments_section_line + + def _get_invoice_grouping_keys(self): + """Return invoice grouping keys""" + return ['company_id', 'partner_id', 'currency_id'] + + def _get_invoiceable_lines(self, final=False): + """Return the invoiceable lines for order `self`.""" + down_payment_line_ids = [] + invoiceable_line_ids = [] + pending_section = None + precision = self.env['decimal.precision'].precision_get( + 'Product Unit of Measure') + for line in self.order_line: + line.display_type = '' + if line.display_type == 'line_section': + 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: + 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) + return self.env['purchase.order.line'].browse( + invoiceable_line_ids + down_payment_line_ids) diff --git a/purchase_down_payment/models/purchase_order_line.py b/purchase_down_payment/models/purchase_order_line.py new file mode 100644 index 000000000..9c580ebb4 --- /dev/null +++ b/purchase_down_payment/models/purchase_order_line.py @@ -0,0 +1,61 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Ashwin T(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. +############################################################################## +from odoo import fields, models + + +class PurchaseOrderLine(models.Model): + """ + The class is created for inherited the model purchase.order.line. + + Methods: + _prepare_invoice_line(): + Function to add the invoice lines of down payment + """ + _inherit = 'purchase.order.line' + + is_downpayment = fields.Boolean( + string="Is a down payment", help="Down payments are made when " + "creating Bills from a purchase order." + "They are not copied when " + "duplicating a purchase order.") + + def _prepare_invoice_line(self, **optional_values): + """ + Prepare the dict of values to create the new bill line for a purchase + order line. :param qty: float quantity to bill :param + optional_values: any parameter that should be added to the returned + bill line + """ + self.ensure_one() + res = { + 'display_type': 'product', + 'sequence': self.sequence, + 'name': self.name, + 'product_id': self.product_id.id, + 'product_uom_id': self.product_uom.id, + 'quantity': self.qty_to_invoice, + 'price_unit': self.price_unit, + 'purchase_line_id': self.id, + } + if optional_values: + res.update(optional_values) + if self.display_type: + res['account_id'] = False + return res diff --git a/purchase_down_payment/models/res_config_settings.py b/purchase_down_payment/models/res_config_settings.py new file mode 100644 index 000000000..73f3bd214 --- /dev/null +++ b/purchase_down_payment/models/res_config_settings.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Ashwin T (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. +############################################################################## +from odoo import fields, models + + +class ResConfigSettings(models.TransientModel): + """The class is to created for inherited the model Res Config Settings""" + _inherit = 'res.config.settings' + + po_deposit_default_product_id = fields.Many2one( + 'product.product', + 'PO Deposit Product', + domain="[('type', '=', 'service')]", + config_parameter='purchase_down_payment.po_deposit_default_product_id', + help='Default product used for payment advances in purchase order') diff --git a/purchase_down_payment/security/ir.model.access.csv b/purchase_down_payment/security/ir.model.access.csv new file mode 100644 index 000000000..49557aae6 --- /dev/null +++ b/purchase_down_payment/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_purchase_order_advance_payment_user,access.purchase.order.advance.payment.user,model_purchase_order_advance_payment,base.group_user,1,1,1,1 diff --git a/purchase_down_payment/static/description/assets/icons/arrows-repeat.svg b/purchase_down_payment/static/description/assets/icons/arrows-repeat.svg new file mode 100755 index 000000000..1d7efabc5 --- /dev/null +++ b/purchase_down_payment/static/description/assets/icons/arrows-repeat.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/purchase_down_payment/static/description/assets/icons/banner-1.png b/purchase_down_payment/static/description/assets/icons/banner-1.png new file mode 100755 index 000000000..c180db172 Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/banner-1.png differ diff --git a/purchase_down_payment/static/description/assets/icons/banner-2.svg b/purchase_down_payment/static/description/assets/icons/banner-2.svg new file mode 100755 index 000000000..e606d97d9 --- /dev/null +++ b/purchase_down_payment/static/description/assets/icons/banner-2.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/purchase_down_payment/static/description/assets/icons/banner-bg.png b/purchase_down_payment/static/description/assets/icons/banner-bg.png new file mode 100755 index 000000000..a8238d3c0 Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/banner-bg.png differ diff --git a/purchase_down_payment/static/description/assets/icons/banner-bg.svg b/purchase_down_payment/static/description/assets/icons/banner-bg.svg new file mode 100755 index 000000000..b1378103e --- /dev/null +++ b/purchase_down_payment/static/description/assets/icons/banner-bg.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/purchase_down_payment/static/description/assets/icons/banner-call.svg b/purchase_down_payment/static/description/assets/icons/banner-call.svg new file mode 100755 index 000000000..96c687e81 --- /dev/null +++ b/purchase_down_payment/static/description/assets/icons/banner-call.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/purchase_down_payment/static/description/assets/icons/banner-mail.svg b/purchase_down_payment/static/description/assets/icons/banner-mail.svg new file mode 100755 index 000000000..cbf0d158d --- /dev/null +++ b/purchase_down_payment/static/description/assets/icons/banner-mail.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/purchase_down_payment/static/description/assets/icons/banner-pattern.svg b/purchase_down_payment/static/description/assets/icons/banner-pattern.svg new file mode 100755 index 000000000..9c1c7e101 --- /dev/null +++ b/purchase_down_payment/static/description/assets/icons/banner-pattern.svg @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/purchase_down_payment/static/description/assets/icons/banner-promo.svg b/purchase_down_payment/static/description/assets/icons/banner-promo.svg new file mode 100755 index 000000000..d52791b11 --- /dev/null +++ b/purchase_down_payment/static/description/assets/icons/banner-promo.svg @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/purchase_down_payment/static/description/assets/icons/brand-pair.svg b/purchase_down_payment/static/description/assets/icons/brand-pair.svg new file mode 100755 index 000000000..d8db7fc1e --- /dev/null +++ b/purchase_down_payment/static/description/assets/icons/brand-pair.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/purchase_down_payment/static/description/assets/icons/check.png b/purchase_down_payment/static/description/assets/icons/check.png new file mode 100755 index 000000000..c8e85f51d Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/check.png differ diff --git a/purchase_down_payment/static/description/assets/icons/chevron.png b/purchase_down_payment/static/description/assets/icons/chevron.png new file mode 100755 index 000000000..2089293d6 Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/chevron.png differ diff --git a/purchase_down_payment/static/description/assets/icons/close-icon.svg b/purchase_down_payment/static/description/assets/icons/close-icon.svg new file mode 100755 index 000000000..df8cce37a --- /dev/null +++ b/purchase_down_payment/static/description/assets/icons/close-icon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/purchase_down_payment/static/description/assets/icons/cogs.png b/purchase_down_payment/static/description/assets/icons/cogs.png new file mode 100755 index 000000000..95d0bad62 Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/cogs.png differ diff --git a/purchase_down_payment/static/description/assets/icons/collabarate-icon.svg b/purchase_down_payment/static/description/assets/icons/collabarate-icon.svg new file mode 100755 index 000000000..dd4e10518 --- /dev/null +++ b/purchase_down_payment/static/description/assets/icons/collabarate-icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/purchase_down_payment/static/description/assets/icons/consultation.png b/purchase_down_payment/static/description/assets/icons/consultation.png new file mode 100755 index 000000000..8319d4baa Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/consultation.png differ diff --git a/purchase_down_payment/static/description/assets/icons/cybro-logo.png b/purchase_down_payment/static/description/assets/icons/cybro-logo.png new file mode 100755 index 000000000..ff4b78220 Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/cybro-logo.png differ diff --git a/purchase_down_payment/static/description/assets/icons/down.svg b/purchase_down_payment/static/description/assets/icons/down.svg new file mode 100755 index 000000000..f21c36271 --- /dev/null +++ b/purchase_down_payment/static/description/assets/icons/down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/purchase_down_payment/static/description/assets/icons/ecom-black.png b/purchase_down_payment/static/description/assets/icons/ecom-black.png new file mode 100755 index 000000000..a9385ff13 Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/ecom-black.png differ diff --git a/purchase_down_payment/static/description/assets/icons/education-black.png b/purchase_down_payment/static/description/assets/icons/education-black.png new file mode 100755 index 000000000..3eb09b27b Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/education-black.png differ diff --git a/purchase_down_payment/static/description/assets/icons/faq.png b/purchase_down_payment/static/description/assets/icons/faq.png new file mode 100755 index 000000000..4250b5b81 Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/faq.png differ diff --git a/purchase_down_payment/static/description/assets/icons/feature-icon.svg b/purchase_down_payment/static/description/assets/icons/feature-icon.svg new file mode 100755 index 000000000..fa0ea6850 --- /dev/null +++ b/purchase_down_payment/static/description/assets/icons/feature-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/purchase_down_payment/static/description/assets/icons/feature.png b/purchase_down_payment/static/description/assets/icons/feature.png new file mode 100755 index 000000000..ac7a785c0 Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/feature.png differ diff --git a/purchase_down_payment/static/description/assets/icons/gear.svg b/purchase_down_payment/static/description/assets/icons/gear.svg new file mode 100755 index 000000000..0cc66b6ea --- /dev/null +++ b/purchase_down_payment/static/description/assets/icons/gear.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/purchase_down_payment/static/description/assets/icons/hero.gif b/purchase_down_payment/static/description/assets/icons/hero.gif new file mode 100644 index 000000000..0930b0bbf Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/hero.gif differ diff --git a/purchase_down_payment/static/description/assets/icons/hire-odoo.svg b/purchase_down_payment/static/description/assets/icons/hire-odoo.svg new file mode 100755 index 000000000..e1ac089b0 --- /dev/null +++ b/purchase_down_payment/static/description/assets/icons/hire-odoo.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/purchase_down_payment/static/description/assets/icons/hotel-black.png b/purchase_down_payment/static/description/assets/icons/hotel-black.png new file mode 100755 index 000000000..130f613be Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/hotel-black.png differ diff --git a/purchase_down_payment/static/description/assets/icons/license.png b/purchase_down_payment/static/description/assets/icons/license.png new file mode 100755 index 000000000..a5869797e Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/license.png differ diff --git a/purchase_down_payment/static/description/assets/icons/life-ring-icon.svg b/purchase_down_payment/static/description/assets/icons/life-ring-icon.svg new file mode 100755 index 000000000..3ae6e1d89 --- /dev/null +++ b/purchase_down_payment/static/description/assets/icons/life-ring-icon.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/purchase_down_payment/static/description/assets/icons/lifebuoy.png b/purchase_down_payment/static/description/assets/icons/lifebuoy.png new file mode 100755 index 000000000..658d56ccc Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/lifebuoy.png differ diff --git a/purchase_down_payment/static/description/assets/icons/mail.svg b/purchase_down_payment/static/description/assets/icons/mail.svg new file mode 100755 index 000000000..1eedde695 --- /dev/null +++ b/purchase_down_payment/static/description/assets/icons/mail.svg @@ -0,0 +1,3 @@ + + + diff --git a/purchase_down_payment/static/description/assets/icons/manufacturing-black.png b/purchase_down_payment/static/description/assets/icons/manufacturing-black.png new file mode 100755 index 000000000..697eb0e9f Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/manufacturing-black.png differ diff --git a/purchase_down_payment/static/description/assets/icons/notes.png b/purchase_down_payment/static/description/assets/icons/notes.png new file mode 100755 index 000000000..ee5e95404 Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/notes.png differ diff --git a/purchase_down_payment/static/description/assets/icons/notification icon.svg b/purchase_down_payment/static/description/assets/icons/notification icon.svg new file mode 100755 index 000000000..053189973 --- /dev/null +++ b/purchase_down_payment/static/description/assets/icons/notification icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/purchase_down_payment/static/description/assets/icons/odoo-consultancy.svg b/purchase_down_payment/static/description/assets/icons/odoo-consultancy.svg new file mode 100755 index 000000000..e05f65bde --- /dev/null +++ b/purchase_down_payment/static/description/assets/icons/odoo-consultancy.svg @@ -0,0 +1,4 @@ + + + + diff --git a/purchase_down_payment/static/description/assets/icons/odoo-licencing.svg b/purchase_down_payment/static/description/assets/icons/odoo-licencing.svg new file mode 100755 index 000000000..2606c88b0 --- /dev/null +++ b/purchase_down_payment/static/description/assets/icons/odoo-licencing.svg @@ -0,0 +1,3 @@ + + + diff --git a/purchase_down_payment/static/description/assets/icons/odoo-logo.png b/purchase_down_payment/static/description/assets/icons/odoo-logo.png new file mode 100755 index 000000000..0e4d0eb5a Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/odoo-logo.png differ diff --git a/purchase_down_payment/static/description/assets/icons/patter.svg b/purchase_down_payment/static/description/assets/icons/patter.svg new file mode 100755 index 000000000..25c9c0a8f --- /dev/null +++ b/purchase_down_payment/static/description/assets/icons/patter.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/purchase_down_payment/static/description/assets/icons/pattern1.png b/purchase_down_payment/static/description/assets/icons/pattern1.png new file mode 100755 index 000000000..09ab0fb2d Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/pattern1.png differ diff --git a/purchase_down_payment/static/description/assets/icons/pos-black.png b/purchase_down_payment/static/description/assets/icons/pos-black.png new file mode 100755 index 000000000..97c0f90c1 Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/pos-black.png differ diff --git a/purchase_down_payment/static/description/assets/icons/puzzle-piece-icon.svg b/purchase_down_payment/static/description/assets/icons/puzzle-piece-icon.svg new file mode 100755 index 000000000..3e9ad9373 --- /dev/null +++ b/purchase_down_payment/static/description/assets/icons/puzzle-piece-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/purchase_down_payment/static/description/assets/icons/puzzle.png b/purchase_down_payment/static/description/assets/icons/puzzle.png new file mode 100755 index 000000000..65cf854e7 Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/puzzle.png differ diff --git a/purchase_down_payment/static/description/assets/icons/replace-icon.svg b/purchase_down_payment/static/description/assets/icons/replace-icon.svg new file mode 100755 index 000000000..d0e3a7af1 --- /dev/null +++ b/purchase_down_payment/static/description/assets/icons/replace-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/purchase_down_payment/static/description/assets/icons/restaurant-black.png b/purchase_down_payment/static/description/assets/icons/restaurant-black.png new file mode 100755 index 000000000..4a35eb939 Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/restaurant-black.png differ diff --git a/purchase_down_payment/static/description/assets/icons/screenshot-main.png b/purchase_down_payment/static/description/assets/icons/screenshot-main.png new file mode 100755 index 000000000..575f8e676 Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/screenshot-main.png differ diff --git a/purchase_down_payment/static/description/assets/icons/screenshot.png b/purchase_down_payment/static/description/assets/icons/screenshot.png new file mode 100755 index 000000000..cef272529 Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/screenshot.png differ diff --git a/purchase_down_payment/static/description/assets/icons/service-black.png b/purchase_down_payment/static/description/assets/icons/service-black.png new file mode 100755 index 000000000..301ab51cb Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/service-black.png differ diff --git a/purchase_down_payment/static/description/assets/icons/skype-fill.svg b/purchase_down_payment/static/description/assets/icons/skype-fill.svg new file mode 100755 index 000000000..c17423639 --- /dev/null +++ b/purchase_down_payment/static/description/assets/icons/skype-fill.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/purchase_down_payment/static/description/assets/icons/skype.png b/purchase_down_payment/static/description/assets/icons/skype.png new file mode 100755 index 000000000..51b409fb3 Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/skype.png differ diff --git a/purchase_down_payment/static/description/assets/icons/skype.svg b/purchase_down_payment/static/description/assets/icons/skype.svg new file mode 100755 index 000000000..df3dad39b --- /dev/null +++ b/purchase_down_payment/static/description/assets/icons/skype.svg @@ -0,0 +1,3 @@ + + + diff --git a/purchase_down_payment/static/description/assets/icons/star-1.svg b/purchase_down_payment/static/description/assets/icons/star-1.svg new file mode 100755 index 000000000..7e55ab162 --- /dev/null +++ b/purchase_down_payment/static/description/assets/icons/star-1.svg @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/purchase_down_payment/static/description/assets/icons/star-2.svg b/purchase_down_payment/static/description/assets/icons/star-2.svg new file mode 100755 index 000000000..5ae9f507a --- /dev/null +++ b/purchase_down_payment/static/description/assets/icons/star-2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/purchase_down_payment/static/description/assets/icons/support.png b/purchase_down_payment/static/description/assets/icons/support.png new file mode 100755 index 000000000..4f18b8b82 Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/support.png differ diff --git a/purchase_down_payment/static/description/assets/icons/test-1 - Copy.png b/purchase_down_payment/static/description/assets/icons/test-1 - Copy.png new file mode 100755 index 000000000..f6a902663 Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/test-1 - Copy.png differ diff --git a/purchase_down_payment/static/description/assets/icons/test-1.png b/purchase_down_payment/static/description/assets/icons/test-1.png new file mode 100755 index 000000000..0908add2b Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/test-1.png differ diff --git a/purchase_down_payment/static/description/assets/icons/test-2.png b/purchase_down_payment/static/description/assets/icons/test-2.png new file mode 100755 index 000000000..4671fe91e Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/test-2.png differ diff --git a/purchase_down_payment/static/description/assets/icons/trading-black.png b/purchase_down_payment/static/description/assets/icons/trading-black.png new file mode 100755 index 000000000..9398ba2f1 Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/trading-black.png differ diff --git a/purchase_down_payment/static/description/assets/icons/training.png b/purchase_down_payment/static/description/assets/icons/training.png new file mode 100755 index 000000000..884ca024d Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/training.png differ diff --git a/purchase_down_payment/static/description/assets/icons/translate.svg b/purchase_down_payment/static/description/assets/icons/translate.svg new file mode 100755 index 000000000..af9c8a1aa --- /dev/null +++ b/purchase_down_payment/static/description/assets/icons/translate.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/purchase_down_payment/static/description/assets/icons/update.png b/purchase_down_payment/static/description/assets/icons/update.png new file mode 100755 index 000000000..ecbc5a01a Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/update.png differ diff --git a/purchase_down_payment/static/description/assets/icons/user.png b/purchase_down_payment/static/description/assets/icons/user.png new file mode 100755 index 000000000..6ffb23d9f Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/user.png differ diff --git a/purchase_down_payment/static/description/assets/icons/video.png b/purchase_down_payment/static/description/assets/icons/video.png new file mode 100755 index 000000000..576705b17 Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/video.png differ diff --git a/purchase_down_payment/static/description/assets/icons/whatsapp.png b/purchase_down_payment/static/description/assets/icons/whatsapp.png new file mode 100755 index 000000000..d513a5356 Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/whatsapp.png differ diff --git a/purchase_down_payment/static/description/assets/icons/wrench-icon.svg b/purchase_down_payment/static/description/assets/icons/wrench-icon.svg new file mode 100755 index 000000000..174b5a465 --- /dev/null +++ b/purchase_down_payment/static/description/assets/icons/wrench-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/purchase_down_payment/static/description/assets/icons/wrench.png b/purchase_down_payment/static/description/assets/icons/wrench.png new file mode 100755 index 000000000..6c04dea0f Binary files /dev/null and b/purchase_down_payment/static/description/assets/icons/wrench.png differ diff --git a/purchase_down_payment/static/description/assets/modules/1.jpg b/purchase_down_payment/static/description/assets/modules/1.jpg new file mode 100644 index 000000000..3cb15fe01 Binary files /dev/null and b/purchase_down_payment/static/description/assets/modules/1.jpg differ diff --git a/purchase_down_payment/static/description/assets/modules/2.jpg b/purchase_down_payment/static/description/assets/modules/2.jpg new file mode 100644 index 000000000..662cadcc3 Binary files /dev/null and b/purchase_down_payment/static/description/assets/modules/2.jpg differ diff --git a/purchase_down_payment/static/description/assets/modules/3.jpg b/purchase_down_payment/static/description/assets/modules/3.jpg new file mode 100644 index 000000000..717a00443 Binary files /dev/null and b/purchase_down_payment/static/description/assets/modules/3.jpg differ diff --git a/purchase_down_payment/static/description/assets/modules/4.png b/purchase_down_payment/static/description/assets/modules/4.png new file mode 100644 index 000000000..00ebf54ad Binary files /dev/null and b/purchase_down_payment/static/description/assets/modules/4.png differ diff --git a/purchase_down_payment/static/description/assets/modules/5.jpg b/purchase_down_payment/static/description/assets/modules/5.jpg new file mode 100644 index 000000000..7c67e2eec Binary files /dev/null and b/purchase_down_payment/static/description/assets/modules/5.jpg differ diff --git a/purchase_down_payment/static/description/assets/modules/6.gif b/purchase_down_payment/static/description/assets/modules/6.gif new file mode 100644 index 000000000..a35ece8df Binary files /dev/null and b/purchase_down_payment/static/description/assets/modules/6.gif differ diff --git a/purchase_down_payment/static/description/assets/screenshots/1.png b/purchase_down_payment/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..bcc98b708 Binary files /dev/null and b/purchase_down_payment/static/description/assets/screenshots/1.png differ diff --git a/purchase_down_payment/static/description/assets/screenshots/10.png b/purchase_down_payment/static/description/assets/screenshots/10.png new file mode 100644 index 000000000..1747baed0 Binary files /dev/null and b/purchase_down_payment/static/description/assets/screenshots/10.png differ diff --git a/purchase_down_payment/static/description/assets/screenshots/2.png b/purchase_down_payment/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..23938082b Binary files /dev/null and b/purchase_down_payment/static/description/assets/screenshots/2.png differ diff --git a/purchase_down_payment/static/description/assets/screenshots/3.png b/purchase_down_payment/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..b62ef6ad1 Binary files /dev/null and b/purchase_down_payment/static/description/assets/screenshots/3.png differ diff --git a/purchase_down_payment/static/description/assets/screenshots/4.png b/purchase_down_payment/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..20123dc05 Binary files /dev/null and b/purchase_down_payment/static/description/assets/screenshots/4.png differ diff --git a/purchase_down_payment/static/description/assets/screenshots/5.png b/purchase_down_payment/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..bca7be714 Binary files /dev/null and b/purchase_down_payment/static/description/assets/screenshots/5.png differ diff --git a/purchase_down_payment/static/description/assets/screenshots/6.png b/purchase_down_payment/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..2c8949d54 Binary files /dev/null and b/purchase_down_payment/static/description/assets/screenshots/6.png differ diff --git a/purchase_down_payment/static/description/assets/screenshots/7.png b/purchase_down_payment/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..fda99ec57 Binary files /dev/null and b/purchase_down_payment/static/description/assets/screenshots/7.png differ diff --git a/purchase_down_payment/static/description/assets/screenshots/8.png b/purchase_down_payment/static/description/assets/screenshots/8.png new file mode 100644 index 000000000..aea629eff Binary files /dev/null and b/purchase_down_payment/static/description/assets/screenshots/8.png differ diff --git a/purchase_down_payment/static/description/assets/screenshots/9.png b/purchase_down_payment/static/description/assets/screenshots/9.png new file mode 100644 index 000000000..1674c2abd Binary files /dev/null and b/purchase_down_payment/static/description/assets/screenshots/9.png differ diff --git a/purchase_down_payment/static/description/banner.png b/purchase_down_payment/static/description/banner.png new file mode 100644 index 000000000..c5b7f7437 Binary files /dev/null and b/purchase_down_payment/static/description/banner.png differ diff --git a/purchase_down_payment/static/description/icon.png b/purchase_down_payment/static/description/icon.png new file mode 100644 index 000000000..8dcf185f4 Binary files /dev/null and b/purchase_down_payment/static/description/icon.png differ diff --git a/purchase_down_payment/static/description/index.html b/purchase_down_payment/static/description/index.html new file mode 100644 index 000000000..d41a2be10 --- /dev/null +++ b/purchase_down_payment/static/description/index.html @@ -0,0 +1,1101 @@ + + + + + + Purchase Down Payment + + + + + + + + + + +
+
+ + + +
+
+ Community +
+
+ Enterprise +
+ +
+
+ +
+
+
+
+

+ Down Payment with Purchase Order. +

+

Purchase Down Payment +

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

Key + Highlights

+
+
+
+
+ +
+
+ Provides easy feature to register down payment against the purchase order. +
+ + +
+
+
+
+
+ +
+
+ User will be able to register down payment in percentage and amount that would + deduct from vendor bill. +
+ +
+
+
+
+ +
+
+
+ Purchase Down Payment +

+ Are you ready to make your business more + organized? +
Improve now! +

+ +
+
+ +
+
+
+ + + + +
+
+ +
+
+
+
+ acc_bg +
+ +
+
+
+
+

+ Down Payment product on the + + settings +

+
+
+

+ Go to Purchase --> Setting --> + Invoice Tab to + Down Payment. +

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

+ Button For Creating Vendor Bill in + + Purchase Order. +

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

+ Options For Creating
+ Vendor Bill. +

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

+ Vendor Bill For + + Regular Payment. +

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

+ Down Payment with + + fixed amount. +

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

+ Detailed View of + + Down Payment(Fixed price). +

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

+ Down Payment With + + Percentage. +

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

+ Detailed View of + + Down Payment(Percentage). +

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

+ Down Payment + + Deduction. +

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

+ Vendor Bill After + + Down payment Deduction. +

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

+ Percentage-Based Down Payments

+
+
+
+
+
+
+
+ +
+

+ Fixed Amount Down Payments

+
+
+
+
+
+
+
+ +
+

+ Down payment Deduction

+
+
+

+ The down payment registered is deducted from the vendor's final bill, + reflecting the reduced amount that needs to be paid. +

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

+ Once a purchase order is confirmed, + you can register a down payment by selecting the option to + register a down payment from the purchase order view. + You will have the choice to either specify a percentage or a fixed amount as a down payment. +

+
+
+ +
+ +
+

+ The down payment registered is deducted from the total + amount of the vendor bill. When the bill is generated, + the amount paid as a down payment is subtracted from the total, + and the remaining balance is shown as payable. +

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

+ Latest Release 18.0.1.0.0 +

+ + 27th December, 2024 + +
+
+
+
+
+ Add +
+
+
+
    +
  • + Initial Commit +
  • + +
+
+
+
+
+
+
+
+
+
+ + + +
+

+ Related Products +

+ +
+ + +
+

+ Our Services

+ +
+ +
+
+ .... +
+
+ +
+ + +
+
+ + + + + + \ No newline at end of file diff --git a/purchase_down_payment/views/purchase_order_views.xml b/purchase_down_payment/views/purchase_order_views.xml new file mode 100644 index 000000000..a356194fa --- /dev/null +++ b/purchase_down_payment/views/purchase_order_views.xml @@ -0,0 +1,20 @@ + + + + + + purchase.order.view.form.inherit.purchase.down.payment + + purchase.order + + + +