OdooWiki OCA HUB

Account Cash Discount Write Off

account_cash_discount_write_off folder_open OCA/account-payment open_in_new
Uncategorised License: AGPL-3

Create an automatic write-off for payment with discount on the payment order confirmation. If the cash discount amount is computed based on the total amount, the created write-off will also contains tax adjustments. This adjustments are computed based on the discount percent configured on the related invoice.

auto_awesome What this module does

AI-generated from the code · Odoo 14.0

Automatically creates a write-off journal entry when a payment with a cash discount is confirmed on a payment order, including tax adjustments when the discount is based on the total amount.

When a payment order is confirmed (moved from generated to uploaded), this module checks each payment line that uses a cash discount. If the payment line is linked to an invoice that has a discount and the paid amount matches the invoice total minus refunds, discount, plus refund discounts, it creates an automatic write-off entry.

The write-off entry uses the write-off account and journal configured on the company. You must set these two fields on the company form (Write-Off Account and Write-Off Journal) before confirming a payment order; otherwise an error message appears asking you to fill them in.

If the company option to use tax adjustment is enabled, the write-off also includes tax adjustment lines. These are computed from the tax lines of the invoice and its refunds, using the discount percentage configured on the invoice. The tax adjustments are added to the write-off amount.

After creating the write-off move, the module reconciles the write-off lines with the original invoice line on the same account. If the payment mode is configured to post moves automatically, the write-off move is posted immediately.

The module adds two fields to the company settings and extends the payment order and payment line models. It does not add new menus or reports.

Models and fields (3)
  • res.company · extends an existing modeldefault_cash_discount_writeoff_account_id (Cash Discount Write-Off Account), default_cash_discount_writeoff_journal_id (Cash Discount Write-Off Journal)
  • account.payment.line · extends an existing model
  • account.payment.order · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 14.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: 2 confirmed, 7 with no information of 9 versions.

Sources · Odoo 13.0

Confirmed on 2026-11-03 in branch 13.0 of OCA/account-payment.

terminal Installation and usage

OCA documentation · Odoo 14.0

To use this module, you need to:

  • Create a supplier invoice
  • In the "Other Info" tab, you can configure a discount in percent and a discount delay in days
  • Validate the invoice
  • Create a payment order and add the previously created invoice using the search based on the cash discount due date
  • Validate your payment order till the last state
  • The invoice is now marked as "Paid".

No verified information in OCA: Installation, Configuration.

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.