diff --git a/account_interest_on_overdue_invoice/README.rst b/account_interest_on_overdue_invoice/README.rst new file mode 100644 index 000000000..7bba201ae --- /dev/null +++ b/account_interest_on_overdue_invoice/README.rst @@ -0,0 +1,55 @@ +.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 +Interest for Overdue Invoice +============================ +* Easy to calculate Interest for Overdue invoices. +* It will manage journal items while you calculate amount in invoice. +* you can use different accounts for interest journal entries from payment terms menu +* Interest can be calculated for different period ratios (daily, weekly and monthly) + +Installation +============ + - www.odoo.com/documentation/15.0/setup/install.html + - Install our custom addon + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.odoo.com/documentation/user/15.0/legal/licenses/licenses.html) + + +Configuration +============= +* No additional configurations needed + +Company +------- +* 'Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: +(v15) Naveen Krishna T ( odoo@cybrosys.com) + + +Contacts +-------- +* Mail Contact : odoo@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 https://www.cybrosys.com + +Further information +=================== +HTML Description: __ diff --git a/account_interest_on_overdue_invoice/__init__.py b/account_interest_on_overdue_invoice/__init__.py new file mode 100644 index 000000000..224107691 --- /dev/null +++ b/account_interest_on_overdue_invoice/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Cybrosys(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import models diff --git a/account_interest_on_overdue_invoice/__manifest__.py b/account_interest_on_overdue_invoice/__manifest__.py new file mode 100644 index 000000000..201afcfe6 --- /dev/null +++ b/account_interest_on_overdue_invoice/__manifest__.py @@ -0,0 +1,56 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Cybrosys(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# + +{ + 'name': 'Interest for Overdue Invoice', + 'category': 'Accounting/Accounting', + 'version': '15.0.1.0.0', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'summary': 'Manage Interest/Penalty on Overdue Invoice', + 'description': """ + Interest for Overdue Invoice + ======================= + Module to manage Interest on Overdue Invoices. + This Odoo Module will helps to calculate daily, + weekly or monthly Interest for Overdue Invoices + based on payment term configuration. + """, + 'depends': [ + 'base', + 'sale', + 'account' + ], + 'data': [ + 'views/account_payment_term_views.xml', + 'views/account_move_views.xml', + 'data/cron.xml', + 'views/report_invoice.xml' + ], + 'images': ['static/description/banner.png'], + 'license': 'LGPL-3', + 'installable': True, + 'application': False, + 'auto_install': False, +} diff --git a/account_interest_on_overdue_invoice/data/cron.xml b/account_interest_on_overdue_invoice/data/cron.xml new file mode 100644 index 000000000..323c46fd6 --- /dev/null +++ b/account_interest_on_overdue_invoice/data/cron.xml @@ -0,0 +1,17 @@ + + + + + Account:Daily Invoice Interest check + + code + model._get_interest_check() + + + 1 + days + -1 + + + + \ No newline at end of file diff --git a/account_interest_on_overdue_invoice/doc/RELEASE_NOTES.md b/account_interest_on_overdue_invoice/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..7e199341a --- /dev/null +++ b/account_interest_on_overdue_invoice/doc/RELEASE_NOTES.md @@ -0,0 +1,9 @@ +## Module + +#### 08.07.2022 +#### Version 15.0.1.0.0 +#### ADD +- Initial commit for Interest for Overdue Invoice. + + + diff --git a/account_interest_on_overdue_invoice/models/__init__.py b/account_interest_on_overdue_invoice/models/__init__.py new file mode 100644 index 000000000..b7c9dee65 --- /dev/null +++ b/account_interest_on_overdue_invoice/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Cybrosys(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import account_move +from . import account_payment_term diff --git a/account_interest_on_overdue_invoice/models/account_move.py b/account_interest_on_overdue_invoice/models/account_move.py new file mode 100644 index 000000000..0986cced8 --- /dev/null +++ b/account_interest_on_overdue_invoice/models/account_move.py @@ -0,0 +1,191 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Cybrosys(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +import math + +from dateutil import relativedelta + +from odoo import api, fields, models, _ +from odoo.exceptions import ValidationError + + +class AccountMoves(models.Model): + """ Extending model Invoice model to compute the interest amount for + overdue invoices based on the chosen payment term configurations.""" + + _inherit = "account.move" + + interest_amount = fields.Monetary(string='Interest Amount', readonly=True) + interest_overdue_act = fields.Boolean(related="invoice_payment_term_id" + ".interest_overdue_act") + interest_calculated_period = fields.Char(string="Interest calculated date") + interest_type = fields.Selection(related="invoice_payment_term_id" + ".interest_type") + interest_percentage = fields.Float(related="invoice_payment_term_id" + ".interest_percentage") + + def get_period_time(self, today_date): + """ Compute period duration based on Interest duration type. """ + self.ensure_one() + r_obj = relativedelta. \ + relativedelta(today_date, self.invoice_date_due) + if self.invoice_payment_term_id.interest_type == 'monthly': + period = (r_obj.years * 12) + r_obj.months + if r_obj and r_obj.days > 0: + period = period + 1 + elif self.invoice_payment_term_id.interest_type == 'weekly': + period = math.ceil( + (today_date - self.invoice_date_due).days / 7) + else: + period = (today_date - self.invoice_date_due).days + return period + + def action_interest_compute(self): + """ Action for computing Interest amount based on the chosen payment + term configurations""" + today_date = fields.Date.today() + for rec in self: + if rec.invoice_date_due \ + and rec.invoice_date_due < fields.Date.today() \ + and rec.state == 'draft' \ + and rec.move_type == 'out_invoice' \ + and rec.interest_overdue_act \ + and rec.invoice_payment_term_id.interest_percentage > 0: + period = rec.get_period_time(today_date) + if rec.invoice_payment_term_id.interest_type == 'monthly': + if rec.interest_calculated_period \ + and rec.interest_calculated_period == str(period) \ + + "-m": + raise ValidationError(_('Your payment term is ' + 'monthly, and you can update ' + 'it only once in a month.')) + rec.interest_calculated_period = str(period) + "-m" + elif rec.invoice_payment_term_id.interest_type == 'weekly': + if rec.interest_calculated_period \ + and rec.interest_calculated_period == str(period) \ + + "-w": + raise ValidationError(_('Your payment term is weekly, ' + 'and you can update it only ' + 'once in a week.')) + rec.interest_calculated_period = str(period) + "-w" + else: + if rec.interest_calculated_period \ + and rec.interest_calculated_period == str(period) \ + + "-d": + raise ValidationError(_('Your payment term is daily, ' + 'and you can update it only ' + 'once in a day.')) + rec.interest_calculated_period = str(period) + "-d" + interest_line = rec.invoice_line_ids.search( + [('name', '=', 'Interest Amount for Overdue'), + ('move_id', '=', rec.id)], + limit=1) + if interest_line: + rec.invoice_line_ids = ([(2, interest_line.id, 0)]) + rec.interest_amount = rec.amount_total * rec \ + .invoice_payment_term_id.interest_percentage * period / 100 + vals = {'name': 'Interest Amount for Overdue', + 'price_unit': rec.interest_amount, + 'quantity': 1, + } + if rec.invoice_payment_term_id.interest_account_id: + vals.update({ + 'account_id': rec.invoice_payment_term_id + .interest_account_id}) + if rec.interest_amount > 0: + rec.invoice_line_ids = ([(0, 0, vals)]) + elif rec.interest_amount > 0: + rec.action_interest_reset() + + def _get_interest_check(self): + """ Method for Interest computation via scheduled action """ + + today_date = fields.Date.today() + for rec in self.sudo().search([('state', '=', 'draft')]): + if rec.invoice_date_due and rec.invoice_date_due < today_date \ + and rec.state == 'draft' \ + and rec.move_type == 'out_invoice' \ + and rec.interest_overdue_act \ + and rec.invoice_payment_term_id.interest_percentage > 0: + period = rec.get_period_time(today_date) + if rec.invoice_payment_term_id.interest_type == 'monthly': + if rec.interest_calculated_period \ + and rec.interest_calculated_period == str(period) \ + + "-m": + continue + rec.interest_calculated_period = str(period) + "-m" + elif rec.invoice_payment_term_id.interest_type == 'weekly': + if rec.interest_calculated_period \ + and rec.interest_calculated_period == str(period) \ + + "-w": + continue + rec.interest_calculated_period = str(period) + "-w" + else: + if rec.interest_calculated_period \ + and rec.interest_calculated_period == str(period) \ + + "-d": + continue + rec.interest_calculated_period = str(period) + "-d" + interest_line = rec.invoice_line_ids.search( + [('name', '=', 'Interest Amount for Overdue'), + ('move_id', '=', rec.id)], limit=1) + if interest_line: + rec.invoice_line_ids = ([(2, interest_line.id, 0)]) + rec.interest_amount = rec.amount_total * rec \ + .invoice_payment_term_id.interest_percentage * period / 100 + vals = {'name': 'Interest Amount for Overdue', + 'price_unit': rec.interest_amount, + 'quantity': 1, + } + if rec.invoice_payment_term_id.interest_account_id: + vals.update({ + 'account_id': rec.invoice_payment_term_id. + interest_account_id}) + if rec.interest_amount > 0: + rec.invoice_line_ids = ([(0, 0, vals)]) + elif rec.interest_amount > 0: + rec.action_interest_reset() + + def action_interest_reset(self): + """Method for resetting the interest lines and Interest amount in + Invoice""" + self.interest_amount = 0 + interest_line = self.invoice_line_ids.search( + [('name', '=', 'Interest Amount for Overdue'), + ('move_id', '=', self.id)], limit=1) + if interest_line: + self.invoice_line_ids = ([(2, interest_line.id, 0)]) + self.interest_calculated_period = False + + @api.onchange('invoice_payment_term_id', 'invoice_line_ids', + 'invoice_date_due') + def _onchange_invoice_payment_term_id(self): + """Method for removing interest from Invoice when user changes dependent + values of interest.""" + for rec in self: + if rec.move_type == 'out_invoice': + rec.interest_amount = 0 + interest_line = rec.invoice_line_ids.search( + [('name', '=', 'Interest Amount for Overdue')], limit=1) + if interest_line: + rec.invoice_line_ids = ([(2, interest_line.id, 0)]) + rec.interest_calculated_period = False + return diff --git a/account_interest_on_overdue_invoice/models/account_payment_term.py b/account_interest_on_overdue_invoice/models/account_payment_term.py new file mode 100644 index 000000000..7a4122225 --- /dev/null +++ b/account_interest_on_overdue_invoice/models/account_payment_term.py @@ -0,0 +1,70 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Cybrosys(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import api, fields, models, _ +from odoo.exceptions import ValidationError + + +class AccountPaymentTerms(models.Model): + """ Module for extending account.payment.term model to add interest + computation configuration features for computation of Interest in overdue + invoices.""" + + _inherit = "account.payment.term" + + interest_overdue_act = fields.Boolean(default=False, string="Interest on " + "Overdue " + "Invoices", + help="Activate Interest computation " + "for this Payment term.") + interest_type = fields.Selection( + string='Interest Type', help="Base duration for interest calculation", + selection=[('daily', 'Daily'), + ('weekly', 'Weekly'), + ('monthly', 'Monthly')], + default='daily', copy=False) + interest_percentage = fields\ + .Float(string="Interest Percentage", default="0", digits=(12, 6), + help="Interest percentage ratio per selected Interest type " + "duration.") + interest_account_id = fields.Many2one('account.account', string='Account ' + 'for ' + 'Interest', + domain="[('deprecated', '=', " + "False),('internal_group'," + "'=','income'), " + "('is_off_balance', '=', " + "False),'|',('company_id', " + "'=', " + "current_company_id)," + "('company_id','='," + "company_id)]", + help="Account used for creating " + "accounting entries.") + + @api.constrains('interest_percentage') + def _check_interest_percentage(self): + """ check constrains for validating the interest rate in percentage + is not negative""" + for rec in self: + if rec.interest_overdue_act and rec.interest_percentage <= 0: + raise ValidationError(_('Enter Positive value as Interest ' + 'percentage')) diff --git a/account_interest_on_overdue_invoice/static/description/assets/icons/check.png b/account_interest_on_overdue_invoice/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/icons/check.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/icons/chevron.png b/account_interest_on_overdue_invoice/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/icons/chevron.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/icons/cogs.png b/account_interest_on_overdue_invoice/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/icons/cogs.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/icons/consultation.png b/account_interest_on_overdue_invoice/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/icons/consultation.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/icons/ecom-black.png b/account_interest_on_overdue_invoice/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/icons/ecom-black.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/icons/education-black.png b/account_interest_on_overdue_invoice/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/icons/education-black.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/icons/hotel-black.png b/account_interest_on_overdue_invoice/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/icons/hotel-black.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/icons/license.png b/account_interest_on_overdue_invoice/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/icons/license.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/icons/lifebuoy.png b/account_interest_on_overdue_invoice/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/icons/lifebuoy.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/icons/logo.png b/account_interest_on_overdue_invoice/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/icons/logo.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/icons/manufacturing-black.png b/account_interest_on_overdue_invoice/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/icons/manufacturing-black.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/icons/pos-black.png b/account_interest_on_overdue_invoice/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/icons/pos-black.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/icons/puzzle.png b/account_interest_on_overdue_invoice/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/icons/puzzle.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/icons/restaurant-black.png b/account_interest_on_overdue_invoice/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/icons/restaurant-black.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/icons/service-black.png b/account_interest_on_overdue_invoice/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/icons/service-black.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/icons/trading-black.png b/account_interest_on_overdue_invoice/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/icons/trading-black.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/icons/training.png b/account_interest_on_overdue_invoice/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/icons/training.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/icons/update.png b/account_interest_on_overdue_invoice/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/icons/update.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/icons/user.png b/account_interest_on_overdue_invoice/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/icons/user.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/icons/wrench.png b/account_interest_on_overdue_invoice/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/icons/wrench.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/modules/1.png b/account_interest_on_overdue_invoice/static/description/assets/modules/1.png new file mode 100644 index 000000000..3932f4062 Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/modules/1.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/modules/2.png b/account_interest_on_overdue_invoice/static/description/assets/modules/2.png new file mode 100644 index 000000000..b19bf9df7 Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/modules/2.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/modules/3.png b/account_interest_on_overdue_invoice/static/description/assets/modules/3.png new file mode 100644 index 000000000..1bae9eabe Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/modules/3.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/modules/4.png b/account_interest_on_overdue_invoice/static/description/assets/modules/4.png new file mode 100644 index 000000000..3ad04ecfd Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/modules/4.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/modules/5.png b/account_interest_on_overdue_invoice/static/description/assets/modules/5.png new file mode 100644 index 000000000..77358cf30 Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/modules/5.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/modules/6.png b/account_interest_on_overdue_invoice/static/description/assets/modules/6.png new file mode 100644 index 000000000..f1f9c45b8 Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/modules/6.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/screenshots/Cron.png b/account_interest_on_overdue_invoice/static/description/assets/screenshots/Cron.png new file mode 100644 index 000000000..23326a192 Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/screenshots/Cron.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/screenshots/hero.gif b/account_interest_on_overdue_invoice/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..ab52264c8 Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/screenshots/hero.gif differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/screenshots/image-1.png b/account_interest_on_overdue_invoice/static/description/assets/screenshots/image-1.png new file mode 100644 index 000000000..fed580dd6 Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/screenshots/image-1.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/screenshots/image-2.png b/account_interest_on_overdue_invoice/static/description/assets/screenshots/image-2.png new file mode 100644 index 000000000..20635cdda Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/screenshots/image-2.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/screenshots/image-3.png b/account_interest_on_overdue_invoice/static/description/assets/screenshots/image-3.png new file mode 100644 index 000000000..d65f1eddc Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/screenshots/image-3.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/screenshots/image-4.png b/account_interest_on_overdue_invoice/static/description/assets/screenshots/image-4.png new file mode 100644 index 000000000..8b2e878f7 Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/screenshots/image-4.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/screenshots/image-5.png b/account_interest_on_overdue_invoice/static/description/assets/screenshots/image-5.png new file mode 100644 index 000000000..dc54e4e44 Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/screenshots/image-5.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/screenshots/image-6.png b/account_interest_on_overdue_invoice/static/description/assets/screenshots/image-6.png new file mode 100644 index 000000000..e932501b6 Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/screenshots/image-6.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/screenshots/image-7.png b/account_interest_on_overdue_invoice/static/description/assets/screenshots/image-7.png new file mode 100644 index 000000000..1401869aa Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/screenshots/image-7.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/screenshots/invoice.png b/account_interest_on_overdue_invoice/static/description/assets/screenshots/invoice.png new file mode 100644 index 000000000..b6bf73c0b Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/screenshots/invoice.png differ diff --git a/account_interest_on_overdue_invoice/static/description/assets/screenshots/period-warning.png b/account_interest_on_overdue_invoice/static/description/assets/screenshots/period-warning.png new file mode 100644 index 000000000..9237e23f8 Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/assets/screenshots/period-warning.png differ diff --git a/account_interest_on_overdue_invoice/static/description/banner.png b/account_interest_on_overdue_invoice/static/description/banner.png new file mode 100644 index 000000000..6f11d9e4b Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/banner.png differ diff --git a/account_interest_on_overdue_invoice/static/description/icon.png b/account_interest_on_overdue_invoice/static/description/icon.png new file mode 100644 index 000000000..6301cfc05 Binary files /dev/null and b/account_interest_on_overdue_invoice/static/description/icon.png differ diff --git a/account_interest_on_overdue_invoice/static/description/index.html b/account_interest_on_overdue_invoice/static/description/index.html new file mode 100644 index 000000000..5823547ee --- /dev/null +++ b/account_interest_on_overdue_invoice/static/description/index.html @@ -0,0 +1,641 @@ +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+ +
+
+
+
+ +
+
+
+

+ Interest for Overdue Invoice

+

+ A Module For Interest for Overdue Invoice calculation while creating a invoice +

+ +
+
+ + + +
+
+

+ Overview +

+
+ +
+

+ This Odoo apps is helps to calculate daily,weekly or monthly Interest Penalty on Overdue Invoices based on payment term configuration.Payment term is something that accountant emphasis on most , delay payment can cost as late payment fee , so when payment get overdue , interest needs to be charges in order to get payment sooner, this odoo module does perfect job by helping you to calculate interest on overdue invoices. Calculation of interest will be done based on invoice due date and payment term. +

+
+

+ +
+ + +
+
+

+ Features +

+
+ +
+
+ +
+
+

+ Easy to calculate Interest for Overdue invoices.

+
+
+ +
+
+ +
+
+

+ This module will manage journal items while you calculate Interest in overdue invoice.

+
+
+ +
+
+ +
+
+

+ You can use different accounts for interest journal entries from payment terms menu

+
+
+ +
+
+ +
+
+

+ Also, Interest can be calculated for different period ratios (daily, weekly and monthly)

+
+
+ + +
+ +
+
+

+ Screenshots +

+
+
+

+ Set Payment Term

+

+ Enable the checkbox in payment term configuration to get the Interest calculation in Overdue invoices for the selected payment term.

+ +
+ +
+

+ Interest Configuration

+

+ Set the values required for interest calculation, and the account for interest jornal entries can be changed from here. + This is the details example for immediate payment term with daily period based interest. +

+ +
+ +
+

+ Selecting payment term in invoice

+

+ After the payment configuration we can use that payment term in invoice creation. +

+ +
+ +
+

+ Interest Calculation

+

+ After selecting the appropriate payment term and adding the invoice details ,use the update interest button to calculate interest +

+ +
+ +
+

+ Interest for overdue

+

+ Here you can get updated value of interest and amount. +

+ +
+ +
+

+ Scheduled action

+

+ You can also enable this automatic script for automatic interest updation. +

+ +
+ +
+

+ Warnings

+

+ Warning on updating invoice twice or more in a selected interest period. +

+ +
+ +
+

+ Invoice PDF

+

+ The interest details are included in new invoices +

+ +
+ +
+ +
+
+

Suggested Products

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

Our Services

+
+
+ +
+
+ +
+
+ Odoo + Customization
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Support
+
+ + +
+
+ +
+
+ Hire + Odoo + Developer
+
+ +
+
+ +
+
+ Odoo + Integration
+
+ +
+
+ +
+
+ Odoo + Migration
+
+ + +
+
+ +
+
+ Odoo + Consultancy
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+
+ + + +
+
+
+

Our Industries

+
+
+ +
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+ +
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+ +
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+ +
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+ +
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+ +
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+ +
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+ +
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

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

Need Help?

+
+
+
+ + +
+ +
+ + +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ + +
diff --git a/account_interest_on_overdue_invoice/views/account_move_views.xml b/account_interest_on_overdue_invoice/views/account_move_views.xml new file mode 100644 index 000000000..e6eb723a9 --- /dev/null +++ b/account_interest_on_overdue_invoice/views/account_move_views.xml @@ -0,0 +1,20 @@ + + + + view.move.form.inherit.interest + account.move + + + + +