OdooWiki OCA HUB

Account Payment Discount

account_payment_discount folder_open OCA/bank-payment-alternative open_in_new
Uncategorised License: AGPL-3

This module extends the functionality of account payment base to support discount and to allow users to automatically create early payment discount move lines.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Lets you pay invoices early and automatically book the early payment discount, including discounts linked to refunds, when preparing payments in batch.

This module adds early payment discount handling to the payment lines used when you prepare payments in batch.

On each payment line you now see the invoice's discount due date, the discount amount and a "Pay with discount" checkbox. These fields only appear when the invoice's payment terms actually offer an early payment discount. The checkbox is ticked automatically when the discount due date is still in the future compared with the payment date (or the scheduled date for fixed-date payments), and unticked otherwise.

When you tick it, the payment line amount is replaced by the discounted amount, and the difference between the residual amount and the discounted amount is shown as the discount amount. If the invoice is linked to refunds, their discount amounts are included too.

When the payment is created, the module adds the corresponding early payment discount accounting entries, so the discount is booked correctly instead of leaving the invoice partly unpaid.

In the wizard that selects which invoice lines to pay, a new "Discount Due Date" option lets you filter lines whose discount due date is on or after a chosen date, so you can pick only the invoices still eligible for the discount.

It works together with account.payment.line, account.payment.line.create and account.move, and also allows discounts on refunds.

Models and fields (2)
  • account.payment.line · extends an existing modeldiscount_date, can_have_discount, pay_with_discount, amount_residual_currency, discount_amount_currency, diff_amount_residual_currency_amount_discount_currency (Discount Amount)
  • account.payment.line.create · extends an existing modeldate_type, cash_discount_date

Text generated by AI (DeepSeek) from reading the Odoo 19.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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 19.0

Confirmed on 2026-11-03 in branch 19.0 of OCA/bank-payment-alternative.

terminal Installation and usage

OCA documentation · Odoo 19.0

Configuration used is the same as Odoo standard, it doesn't add any new configuration

No verified information in OCA: Installation, Usage.

info

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.