Discount on batch payments
This module allows you to define discounts for early payment and apply them on batch payments.
auto_awesome What this module does
AI-generated from the code · Odoo 16.0Apply early-payment discounts when paying invoices in batch. Odoo calculates the discount automatically, shows a discount date on invoices, and lets you filter invoices that still qualify for the discount.
This module adds early-payment discount handling to batch payments. When an invoice is posted, Odoo calculates a discount validity date from the payment terms and stores it on the invoice. A hidden field valid_discount_date is added to the invoice form, and a new "Discount Invoice" filter appears in the invoice search view, showing posted invoices whose discount date has not yet passed.
In the payment registration wizard, when you pick a payment date, the amounts of the selected invoice payment lines are recalculated. If the payment is made within the discount period, the discount amount is computed from the payment terms, and the difference is handled automatically: the line is set to reconcile, the discount account is used as the write-off account, and the note "Early Pay Discount" is added. If the difference is zero, the handling switches back to open.
Changing the discount days on a payment term line updates the discount date on all posted invoices using that payment term. The wizard also requires a payment date before auto-filling payments, and it recalculates the cheque amount from the invoice payment lines. The module works together with account.move, account.payment.term.line, account.payment.register and invoice.payment.line.
Models and fields (4)
- account.move · extends an existing modelvalid_discount_date
- invoice.payment.line · extends an existing model
- account.payment.register · extends an existing model
- account.payment.term.line · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 2 confirmed, 7 with no information of 9 versions.
Sources · Odoo 14.0
Confirmed on 2026-11-03 in branch 14.0 of OCA/account-payment.
terminal Installation and usage
OCA documentation · Odoo 16.0Configuration
Source · Odoo 16.0- Go to Accounting > Invoicing > Payment Terms
- Select or create a payment term
- Check the box "Early discount payment"
- Exclude the shipping and/or the tax amount
- Create a line with a discount for early payment, like 2% if paid within 15 days
Usage
Source · Odoo 16.0- Go to Accounting > Customers > Invoices or Accounting > Vendors > Bills
- Select various open invoices or bills
- Go to the Action menu
- Select Batch Payments
- Adjust the information
- Click on Make Payments
No verified information in OCA: Installation.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.