OdooWiki OCA HUB

Pricelist Price Based on Custom Value

pricelist_price_base_custom folder_open OCA/sale-workflow open_in_new
Sales License: AGPL-3

This module add a new "Custom Value" to the list of pricelist base price options.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Adds a new "Custom Value" option to the base price choices of pricelist rules, letting the price be calculated from a value supplied by other code instead of the product's normal cost or sales price.

This module extends the product pricelist so that pricing rules can use a custom value as their starting point.

  • On each pricelist rule (the lines inside a pricelist), the "Based on" field now includes an extra choice called "Custom Value" next to the standard options.
  • When a rule is set to "Custom Value", the price is no longer taken from the product's cost, sales price or other standard source. Instead, the system looks for a custom base price that another part of Odoo has placed in the current context; if none is provided, the base price is treated as zero.
  • The pricelist price calculation has been adjusted so that this custom value is passed through when a caller supplies it, and the rule's computation uses it directly.
  • If the "Custom Value" option is removed or no longer available, existing rules that used it fall back to the default base setting rather than breaking.

This module does not add menus, screens, buttons or reports of its own. It works behind the scenes on the product.pricelist and product.pricelist.item models and is meant to be used together with other modules that provide the custom value.

Depends on

product
Models and fields (2)
  • product.pricelist · extends an existing model
  • product.pricelist.item · extends an existing modelbase

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

Confirmed on 2026-11-03 in branch 16.0 of OCA/sale-workflow.

terminal Installation and usage

OCA documentation · Odoo 16.0

Create a new one or select an existing pricelist with "Computation" mode set to "Formula".

In the pricelist:

  • Select "Formula" in the "Computation" selector.
  • Select "Custom Value" in the "Based on" field.

This is a technical module which means it's designed to be used as a part of custom solutions. You need to add your price as custom_base_price​ kwargs key when calling _get_product_price function of the product.pricelist ​model.

No verified information in OCA: Installation.

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.