Compute product sales price from a pricelist
This module enables the automatic computation of a product's sale price based on the configuration of a pricelist.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0Lets you set a pricelist as the source for product sales prices, then automatically updates each product's sales price when that pricelist changes or on demand.
This module links a pricelist to your company and uses it to calculate the sales price of products. In Sales settings you can choose a "Recomputing pricelist" and, if you use multiple companies, a "Main company for compute sale price". A button "Update product prices" lets you recalculate all product prices immediately from that pricelist; a warning reminds you that prices are always computed for a quantity of 1, so quantity-based rules are ignored.
Once configured, Odoo keeps prices in sync automatically: whenever you create or change a pricelist rule (for example its price, discount, category, product, dates or rounding), the affected products' sales prices are recalculated. A scheduled job (disabled by default) can also refresh prices daily for every company that has a recomputing pricelist.
The module works with product.pricelist, product.pricelist.item, res.company, res.config.settings and product.template. It respects company rules: prices are only computed for products whose company matches the main company or is empty, and only when the pricelist applies to that company.
Depends on
Models and fields (4)
- res.company · extends an existing modelbase_pricelist_compute_price_id (Recomputing pricelist)
- product.pricelist · extends an existing model
- res.config.settings · extends an existing modelmain_company_compute_price_id (Main company for compute sale price), base_pricelist_compute_price_id
- product.pricelist.item · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 18.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-03Confirmation status: 2 confirmed, 7 with no information of 9 versions.
Sources · Odoo 18.0
Confirmed on 2026-11-03 in branch 18.0 of OCA/product-attribute.
terminal Installation and usage
OCA documentation · Odoo 18.0Configuration
Source · Odoo 18.0- Go to Sales -\> Products -\> Pricelists.
- Create a new pricelist and add at least one rule.
- Specify the product template or category for the rule.
- Set the computation mode and save
Note: Ensure the minimum quantity is not great than 1 for the rule to apply effectively.
- Go to Sales -\> Configuration -\> Settings.
- In the Pricing section, select the Pricelist to compute sale price created in the previous step.
- Optionally and only with a multi-company environment enabled, set the Main company for compute sale price to restrict the computation to a specific company.
- Save the configuration
The module creates a cron job to update the product list price every day. The cron job is disabled by default. To enable it, go to Settings -\> Technical -\> Automation -\> Scheduled Actions and search for Product sale price: Update price from pricelist.
Usage
Source · Odoo 18.0To update product prices according to the pricelist rules
- Stay in the settings configuration with the selected Pricelist.
- Click the Update Product Prices button to apply the rules and update the sale prices of all products.
No verified information in OCA: Installation.
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.
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.