MODULES / CUSTOM

Customer Default Discount

Customer discount defaults for quotations, sales orders and invoices, with editable line discounts.

Overview

Module idcustomer_default_discount
Version1.0.0
Who uses itAnyone who uses the screens listed below.
InstalledOn demand, from Settings → Modules. Anything it needs is installed with it.

How it links to other modules

  • Needs: Invoicing
  • Works better with: no other module in particular
  • Needed by: no other module

A module that is needed cannot be turned off while the module that needs it is on.

Details

Customer default discount

Install customer_default_discount from Settings > Modules. On a customer's detail page, enable the default and enter a percentage from 0 to 100 (up to four decimal places). It is company-specific and auditable.

Selecting a customer or product fills the discount on quotation and invoice product lines. The document's Default discount % control applies an override to product lines and supplies the default for subsequent product selections. Manual line overrides, including zero, remain editable. Changing quantity keeps the line's chosen discount. Description-only lines do not inherit the default.

New service/API-created invoices and quotations also inherit defaults when the product line omits a discount. Saved discounts, quotation conversions, credit notes and vendor bills are never repriced from the customer master. Discounts flow through the existing tax, rounding, posting and print/PDF calculations.

Sales orders offer the same editable percentage and store the resulting net unit price at six decimal places, matching ASKERP's existing order contract. Delivery invoices use that net price with zero further discount. The original gross price and percentage are not separate order columns; this is an explicit adaptation from Odoo. The document default control is an entry aid; saved line values are the authoritative document values.

Disabling hides the controls and stops automatic defaults. Stored configuration and document prices remain intact; reinstall restores the configuration. An explicit order-discount request while disabled is rejected.

Source inspected: customer_default_discount/__manifest__.py, models, views and access CSV under the read-only Odoo 18 addon directory. ASKERP uses its existing draft-edit permission instead of Odoo's sales discount group. No separate ledger, Odoo Python runtime or posting implementation is introduced.

Customer Default Discount | ASKERP Docs