OdooWiki OCA HUB

Sale Product Pack Fixed Discount

sale_product_pack_fixed_discount folder_open OCA/product-pack open_in_new
Sales License: AGPL-3

This module is glue module between Sale Product Pack and Sale fixed discount's modules.

For the time being this avoid fixed discount on sale order lines linked to a pack or a pack component excepted for pack with modifiable components.

auto_awesome What this module does

AI-generated from the code · Odoo 17.0

This module controls where a fixed discount can be entered on sales order lines that belong to a product pack. It hides or locks the fixed discount field on pack lines and pack components, except when the pack allows modifiable components.

This is a bridge module that makes the product pack feature and the fixed discount feature work together on sales orders.

When you sell a product pack, the pack is split into a main line and component lines. This module adds a hidden technical flag on each sales order line that tells Odoo whether the product is a pack, whether the line belongs to a pack, and whether the pack's components can be modified.

Based on those flags, the fixed discount field on the order line behaves differently:

  • On the order line form, the fixed discount field is hidden when the line is a pack itself, or when the line is not linked to a pack at all. In other words, it only appears for component lines of a pack.
  • In the order lines list, the fixed discount field is read-only for pack lines and for component lines of packs whose components cannot be modified. It stays editable only for component lines of packs that allow modifiable components.

All of this happens directly on the standard sales order screen (sale.order), in the order lines section. No new menus, reports, emails or scheduled actions are added. The module only changes the visibility and editability of the fixed discount field, so users cannot apply a fixed discount to a whole pack or to locked pack components.

Models and fields (1)
  • sale.order.line · extends an existing modelpack_ok

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

Confirmed on 2026-11-03 in branch 17.0 of OCA/product-pack.

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.