OdooWiki OCA HUB

Account Cash Discount Base Sale

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

This module is used to apply the onchange to update values linked to payment_term when an invoice is created from a sale order.

auto_awesome What this module does

AI-generated from the code · Odoo 13.0

When you invoice a sales order that has a payment term, Odoo now automatically applies the cash discount settings linked to that payment term on the created invoice.

This module is a small connector between the cash discount functionality and the Sales app. It does not add any new screen or menu; it changes what happens behind the scenes when an invoice is generated from a sales order.

  • If the sales order has a payment term set, the invoice created from it is automatically updated with the cash discount options that belong to that payment term.
  • If the sales order has no payment term, nothing extra is applied and the invoice is created as usual.

In practice, this means the payment term and its related cash discount settings are carried over correctly from the quotation/sales order to the customer invoice, without the user having to open the invoice and re-select the payment term manually.

The module touches the sales order (sale.order) and the invoice/journal entry (account.move) models. It only acts during invoice creation from a sales order, so existing invoices and manually created invoices are not affected.

Models and fields (2)
  • sale.order · extends an existing model
  • account.move · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 13.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 13.0

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

terminal Installation and usage

No verified information

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.

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.