Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Sales
  3. Product Formula Pricing v 18.0
  4. Sales Conditions FAQ

Product Formula Pricing

by OCH - Olimalt Chahidov https://www.och-web.com/
Odoo

$ 92.00

v 18.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Sales (sale_management)
• Discuss (mail)
• Invoicing (account)
Lines of code 1428
Technical Name och_sale_price_formula
LicenseOPL-1
Websitehttps://www.och-web.com/
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Sales (sale_management)
• Discuss (mail)
• Invoicing (account)
Lines of code 1428
Technical Name och_sale_price_formula
LicenseOPL-1
Websitehttps://www.och-web.com/
  • Description
  • License
OCH — Odoo 18 module

Stop calculating prices in Excel.
Quote inside Odoo.

Product Formula Pricing — custom price formulas on sale order lines, with audit trail and pricelist integration.

Your products have a price that depends on dimensions, options or finish levels. Odoo cannot compute it natively, so your sales team drops into Excel for every quote. This module adds the missing pricing layer between your catalog and your pricelist — every quote stays in Odoo, every price is auditable, every margin is protected.

For Odoo 18 OPL-1 License EN / FR

What this Excel side-process is really costing you

In most SMBs that sell made-to-order or configurable products, the real quoting flow looks like this: salesperson opens Excel, computes the price from customer inputs, types the result back into Odoo. It feels harmless. It is not.

5–15 min

lost per quote on calculations that could be automated

1 typo

can ship a quote below your actual cost. Margin gone, undetected.

0 trace

in Odoo of how that price was calculated. Impossible to audit later.

∞ sheets

in circulation, each salesperson keeping their own version

The problem isn't your sales team — it's that Odoo's native pricelist engine has no parametric layer between the catalog price and pricelist rules. The team is forced to work outside the ERP. This module adds that missing layer.

Key features

λ

Python formulas, sandboxed

Evaluated with safe_eval: no import, no system access. Compiled and dry-run at save.

⚙

Typed variables

Integer with coefficient, or selection with weighted options. Reusable across products.

📃

Configurator wizard

On each sale order line, a modal collects values with a live price preview.

📈

Pricelist compatible

The formula output replaces list_price for that line — percentage, rounding and margin rules still apply on top.

🔒

Standard Odoo ACL

Reuses the built-in Sales / Salesperson and Sales / Administrator groups. No custom group to assign.

🌐

Translations bundled

English (default) and French provided out of the box. Easily extend with .po files.

How it works

1

Define a formula

Go to Sales > Configuration > Price formulas, declare variables and write a short Python body.

2

Attach to a product

On the product template, Sales tab, pick the formula in the Extra info group.

3

Sell

On the quotation, pick the product: the configurator opens, users fill the variables, price is computed live.

Screenshots

1. Formula definition

Define variables (integer or selection) directly on the formula form, with sequence, coefficient and default values.

Formula form view

2. Sale order configurator

On each order line, a configurator collects the values with a live price preview and an Apply button.

Configurator wizard

3. Order line integration

A discrete calculator button reopens the configurator anytime. Variable values are printed in the line description for a clean document.

Sale order line with formula button

4. Python editor with safe symbols

Full-featured Ace editor. A cheat sheet lists all available symbols. Every save compiles and dry-runs the code.

Python editor

Formula examples

A few real-world snippets you can copy/paste into your formula body.

Surface-based pricing (m²)
# Surface-based pricing (m2)
width  = vars.get("width", 0)
length = vars.get("length", 0)
result = list_price * width * length
Weighted tier (Selection variable)
# Weighted tier (Selection variable)
# 1.0 = Standard / 1.25 = Premium / 1.5 = Platinum
result = list_price * vars.get("tier", 1.0)
Customer-specific minimum price
# Customer-specific minimum price
base = list_price + vars.get("extra", 0)
minimum = 50.0 if partner and partner.customer_rank else 25.0
result = max(base, minimum)

Available symbols in formulas

Symbol Type Description
productproduct.productThe variant being priced.
templateproduct.templateShortcut for product.product_tmpl_id.
list_pricefloatCatalog sale price of the variant.
varsdictVariable code -> numeric value.
qtyfloatOrder line quantity.
uomuom.uomUnit of measure of the line.
partnerres.partnerOrder customer (may be empty in preview).
pricelistproduct.pricelistPricelist (may be empty in preview).
resultfloat (output)Assign the final base price to this variable.

Who is this for?

Built for SMBs whose products do not have a fixed price — every quote is different.

🏗️ Carpentry & cabinet-making

Price per m² varying by wood species, dimensions, finish.

Variables: width, length, material coefficient

🖼️ Print & signage

Price varying by format, substrate, ink type, finishing.

Variables: width, height, support (selection), finishing

🪓 Glaziers & mirror makers

Made-to-measure glass with thickness and safety treatment.

Variables: width, height, thickness, treatment (selection)

🧹 Embroidery & textile customisation

Per-piece price varying by colour count and pattern complexity.

Variables: colour count, complexity (selection)

💼 Consulting & training services

Daily rate scaled by consultant seniority and travel mode.

Variables: days, seniority (selection), travel (selection)

⚙️ Metalwork & fabrication

Price per kilo varying by steel grade and thickness.

Variables: weight, grade (selection with coefficients)

Your industry isn't listed above? If your products have variable pricing inputs, the module adapts to your calculation logic.

Security model

No custom group to configure. The module reuses Odoo's built-in Sales groups, so your existing user assignments already work.

Sales / Salesperson

  • Sells formula products on quotations & orders
  • Opens the configurator on sale lines
  • Sees the live price preview as values change
  • Read-only on formulas — cannot see or run Python code (field-level restriction)

Sales / Administrator

  • Everything a salesperson can do
  • Creates, edits and archives formulas
  • Defines variables (integer / selection) and their options
  • Writes and reads the Python source code
  • Save-time validation: syntax + dry-run with defaults

🛡️ safe_eval sandbox

Every formula runs inside Odoo's safe_eval with a restricted opcode set:

  • No import / no __import__ / no exec / no eval
  • No file system access, no network, no Python builtins beyond a safe subset
  • Attribute walks to dangerous internals (__class__.__bases__...) blocked
  • If a formula fails at runtime, the sale line displays a red error and confirmation of the quotation is blocked — no silent 0 € orders

Quality & compatibility

18.0

Odoo 18 (CE & EE)

47

Unit tests

EN / FR

Translations

OPL-1

License

Need help or a custom formula?

OCH provides Odoo consulting, custom development and ongoing support.

✉ contact@och-web.com 🌐 www.och-web.com

© 2026 OCH — Olimalt CHAHIDOV. All rights reserved.

Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with