diff --git a/purchase_down_payment/README.rst b/purchase_down_payment/README.rst new file mode 100755 index 000000000..db501afcd --- /dev/null +++ b/purchase_down_payment/README.rst @@ -0,0 +1,46 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +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) +(http://www.gnu.org/licenses/agpl.html) + +Credits +------- +Developer: V16 - Aswathi PN @cybrosys, Contact: odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit `Our Website `__ + +Further information +=================== +HTML Description: ``__ diff --git a/purchase_down_payment/__init__.py b/purchase_down_payment/__init__.py new file mode 100644 index 000000000..8387dbe7b --- /dev/null +++ b/purchase_down_payment/__init__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Aswathi PN (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 wizards diff --git a/purchase_down_payment/__manifest__.py b/purchase_down_payment/__manifest__.py new file mode 100644 index 000000000..fb7ef055c --- /dev/null +++ b/purchase_down_payment/__manifest__.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Aswathi PN (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. +############################################################################## +{ + 'name': 'Purchase Down Payment', + 'version': '16.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': "http://www.cybrosys.com", + 'depends': ['base', 'purchase', 'sale'], + 'data': [ + 'security/ir.model.access.csv', + 'wizards/purchase_order_advance_payment_views.xml', + 'views/purchase_order_views.xml', + 'views/res_config_settings_views.xml', + ], + 'images': ['static/description/banner.jpg'], + '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..2d0600c02 --- /dev/null +++ b/purchase_down_payment/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 03.01.2023 +#### Version 16.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..51a7e412a --- /dev/null +++ b/purchase_down_payment/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Aswathi PN (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..61af7cf53 --- /dev/null +++ b/purchase_down_payment/models/purchase_order.py @@ -0,0 +1,182 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Aswathi PN (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..5e6d1c0d7 --- /dev/null +++ b/purchase_down_payment/models/purchase_order_line.py @@ -0,0 +1,58 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Aswathi PN (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..61be250b3 --- /dev/null +++ b/purchase_down_payment/models/res_config_settings.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Aswathi PN (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..77cdf3a3a --- /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,access.purchase.order.advance.payment,model_purchase_order_advance_payment,base.group_user,1,1,1,1 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 100644 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 100644 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/cogs.png b/purchase_down_payment/static/description/assets/icons/cogs.png new file mode 100644 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/consultation.png b/purchase_down_payment/static/description/assets/icons/consultation.png new file mode 100644 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/ecom-black.png b/purchase_down_payment/static/description/assets/icons/ecom-black.png new file mode 100644 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 100644 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/hotel-black.png b/purchase_down_payment/static/description/assets/icons/hotel-black.png new file mode 100644 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 100644 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/lifebuoy.png b/purchase_down_payment/static/description/assets/icons/lifebuoy.png new file mode 100644 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/manufacturing-black.png b/purchase_down_payment/static/description/assets/icons/manufacturing-black.png new file mode 100644 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/pos-black.png b/purchase_down_payment/static/description/assets/icons/pos-black.png new file mode 100644 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.png b/purchase_down_payment/static/description/assets/icons/puzzle.png new file mode 100644 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/restaurant-black.png b/purchase_down_payment/static/description/assets/icons/restaurant-black.png new file mode 100644 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/service-black.png b/purchase_down_payment/static/description/assets/icons/service-black.png new file mode 100644 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/trading-black.png b/purchase_down_payment/static/description/assets/icons/trading-black.png new file mode 100644 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 100644 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/update.png b/purchase_down_payment/static/description/assets/icons/update.png new file mode 100644 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 100644 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/wrench.png b/purchase_down_payment/static/description/assets/icons/wrench.png new file mode 100644 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/misc/categories.png b/purchase_down_payment/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/purchase_down_payment/static/description/assets/misc/categories.png differ diff --git a/purchase_down_payment/static/description/assets/misc/check-box.png b/purchase_down_payment/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/purchase_down_payment/static/description/assets/misc/check-box.png differ diff --git a/purchase_down_payment/static/description/assets/misc/compass.png b/purchase_down_payment/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/purchase_down_payment/static/description/assets/misc/compass.png differ diff --git a/purchase_down_payment/static/description/assets/misc/corporate.png b/purchase_down_payment/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/purchase_down_payment/static/description/assets/misc/corporate.png differ diff --git a/purchase_down_payment/static/description/assets/misc/customer-support.png b/purchase_down_payment/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/purchase_down_payment/static/description/assets/misc/customer-support.png differ diff --git a/purchase_down_payment/static/description/assets/misc/cybrosys-logo.png b/purchase_down_payment/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/purchase_down_payment/static/description/assets/misc/cybrosys-logo.png differ diff --git a/purchase_down_payment/static/description/assets/misc/features.png b/purchase_down_payment/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/purchase_down_payment/static/description/assets/misc/features.png differ diff --git a/purchase_down_payment/static/description/assets/misc/logo.png b/purchase_down_payment/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/purchase_down_payment/static/description/assets/misc/logo.png differ diff --git a/purchase_down_payment/static/description/assets/misc/pictures.png b/purchase_down_payment/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/purchase_down_payment/static/description/assets/misc/pictures.png differ diff --git a/purchase_down_payment/static/description/assets/misc/pie-chart.png b/purchase_down_payment/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/purchase_down_payment/static/description/assets/misc/pie-chart.png differ diff --git a/purchase_down_payment/static/description/assets/misc/right-arrow.png b/purchase_down_payment/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/purchase_down_payment/static/description/assets/misc/right-arrow.png differ diff --git a/purchase_down_payment/static/description/assets/misc/star.png b/purchase_down_payment/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/purchase_down_payment/static/description/assets/misc/star.png differ diff --git a/purchase_down_payment/static/description/assets/misc/support.png b/purchase_down_payment/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/purchase_down_payment/static/description/assets/misc/support.png differ diff --git a/purchase_down_payment/static/description/assets/misc/whatsapp.png b/purchase_down_payment/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/purchase_down_payment/static/description/assets/misc/whatsapp.png differ diff --git a/purchase_down_payment/static/description/assets/modules/1.png b/purchase_down_payment/static/description/assets/modules/1.png new file mode 100644 index 000000000..489f44e86 Binary files /dev/null and b/purchase_down_payment/static/description/assets/modules/1.png differ diff --git a/purchase_down_payment/static/description/assets/modules/2.png b/purchase_down_payment/static/description/assets/modules/2.png new file mode 100644 index 000000000..5acf9a06a Binary files /dev/null and b/purchase_down_payment/static/description/assets/modules/2.png differ diff --git a/purchase_down_payment/static/description/assets/modules/3.png b/purchase_down_payment/static/description/assets/modules/3.png new file mode 100644 index 000000000..57eebc5b2 Binary files /dev/null and b/purchase_down_payment/static/description/assets/modules/3.png 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..bc5648b1a 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.png b/purchase_down_payment/static/description/assets/modules/5.png new file mode 100644 index 000000000..f8aaeb32c Binary files /dev/null and b/purchase_down_payment/static/description/assets/modules/5.png differ diff --git a/purchase_down_payment/static/description/assets/modules/6.png b/purchase_down_payment/static/description/assets/modules/6.png new file mode 100644 index 000000000..06d73ee7f Binary files /dev/null and b/purchase_down_payment/static/description/assets/modules/6.png differ diff --git a/purchase_down_payment/static/description/assets/screenshots/down2.png b/purchase_down_payment/static/description/assets/screenshots/down2.png new file mode 100644 index 000000000..edd48b516 Binary files /dev/null and b/purchase_down_payment/static/description/assets/screenshots/down2.png differ diff --git a/purchase_down_payment/static/description/assets/screenshots/down3.png b/purchase_down_payment/static/description/assets/screenshots/down3.png new file mode 100644 index 000000000..f6de60aea Binary files /dev/null and b/purchase_down_payment/static/description/assets/screenshots/down3.png differ diff --git a/purchase_down_payment/static/description/assets/screenshots/down4.png b/purchase_down_payment/static/description/assets/screenshots/down4.png new file mode 100644 index 000000000..2ecf70cd0 Binary files /dev/null and b/purchase_down_payment/static/description/assets/screenshots/down4.png differ diff --git a/purchase_down_payment/static/description/assets/screenshots/down5.png b/purchase_down_payment/static/description/assets/screenshots/down5.png new file mode 100644 index 000000000..71020366e Binary files /dev/null and b/purchase_down_payment/static/description/assets/screenshots/down5.png differ diff --git a/purchase_down_payment/static/description/assets/screenshots/down6.png b/purchase_down_payment/static/description/assets/screenshots/down6.png new file mode 100644 index 000000000..dd84aaf94 Binary files /dev/null and b/purchase_down_payment/static/description/assets/screenshots/down6.png differ diff --git a/purchase_down_payment/static/description/assets/screenshots/down7.png b/purchase_down_payment/static/description/assets/screenshots/down7.png new file mode 100644 index 000000000..c35d2d96d Binary files /dev/null and b/purchase_down_payment/static/description/assets/screenshots/down7.png differ diff --git a/purchase_down_payment/static/description/assets/screenshots/down8.png b/purchase_down_payment/static/description/assets/screenshots/down8.png new file mode 100644 index 000000000..0bcd1b443 Binary files /dev/null and b/purchase_down_payment/static/description/assets/screenshots/down8.png differ diff --git a/purchase_down_payment/static/description/assets/screenshots/down_payment1.png b/purchase_down_payment/static/description/assets/screenshots/down_payment1.png new file mode 100644 index 000000000..bd74631b5 Binary files /dev/null and b/purchase_down_payment/static/description/assets/screenshots/down_payment1.png differ diff --git a/purchase_down_payment/static/description/assets/screenshots/hero.gif b/purchase_down_payment/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..38dcef88e Binary files /dev/null and b/purchase_down_payment/static/description/assets/screenshots/hero.gif differ diff --git a/purchase_down_payment/static/description/banner.jpg b/purchase_down_payment/static/description/banner.jpg new file mode 100644 index 000000000..481577d72 Binary files /dev/null and b/purchase_down_payment/static/description/banner.jpg 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..f5e17100c 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..9b4fb375f --- /dev/null +++ b/purchase_down_payment/static/description/index.html @@ -0,0 +1,644 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+ +
+
+ + + +

+ Purchase Down Payment

+

+ Down Payment with Purchase Order

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

+ Overview +

+
+
+
+ This module 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. +
+
+ + + +
+
+ +
+

+ Features +

+
+
+
+
+ + Available in Odoo 16.0 Community and Enterprise. +
+
+
+ +
+ + We can easily manage the down payment with purchase order. +
+
+
+
+ + You can choose whether to deduct the down payment from the invoice or not. +
+
+
+
+ + A bill can be created in three ways: with percentages, with fixed amounts, or with regular amounts. +
+
+
+ + + +
+
+ +
+

+ Screenshots +

+
+
+
+ +
+

+ Options For Creating Vendor Bill

+

+

+ +
+ +
+

+ Down Payment with fixed amount

+

+ +
+ +
+

+ Down Payment with a Percentage.

+

+ +
+ +
+

+ Regular Bill.

+

+

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

+ 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/purchase_down_payment/views/purchase_order_views.xml b/purchase_down_payment/views/purchase_order_views.xml new file mode 100644 index 000000000..8e6a30b09 --- /dev/null +++ b/purchase_down_payment/views/purchase_order_views.xml @@ -0,0 +1,18 @@ + + + + + purchase.order.view.form.inherit.purchase.down.payment + purchase.order + + + +