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
    • Estate 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
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

How to set different minimum margins based on cost price ?

Subscribe

Get notified when there's activity on this post

This question has been flagged
priceslistquickstartmarginsStudioAutomatedActions
1 Reply
6528 Views
Avatar
Arnaud Biebuyck (abi)

The costs of my products often changes , and depending on the values of those cost, I'd like to apply a specific minimum margin. For example, if a product has a cost of 5€ or less (standard price valuation) , I'd like to sell it with a minimum margin of 75%i. If the cost prices goes from 5 to 10€, I'd like the minimum margin to be set on 50%. Finally, when the cost of a product goes beyond 10€ , the minimum margin should be 25%. The only thing I change manually is the cost price on the product template, and the pricelist should be updated according to the new cost of the product.

1
Avatar
Discard
Avatar
Arnaud Biebuyck (abi)
Author Best Answer

Explanation of the flow/features: 

First, at the creation of a product, it should be added to a pricelist in order to apply the minimum margin on it. It's possible with an automated action, the screenshot below shows how to configure it: 

This will create a specific line (pricelist item) in the pricelist "Public Pricelist (EUR)" for this product so you don't have to update your pricelist each time you create a new product.

The pricelist items are configured like that :

  • Apply on : products
  • Compute Price : Formula
  • Based on : Cost
  • Price discount : - the margin you want


One it's done, you will need to display the product cost in the pricelist item (form view). To do that, you just have to add a related field that points towards the product>cost .  I called it PrCost. Make sure this field is stored, it will be necessary for the next steps.

It's now time to create the automated actions that will update the "price discount" field in the pricelist items. Here are 3 screenshots of the automated actions created (minimum margin for cost below X€, between X and Y€ and above Y€, in the order )


Once it's done, the price discounts are automatically updated when you modify the cost on the product template.

To resume : 

  • Creating a product will automatically create a dedicated pricelist item for it, and based on what you put in the product cost when you create it , it will automatically have a minimum margin applied.
  • Each time you modify the cost of a product, the existing pricelist item for this product will be updated.
2
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
How to update a field on invoice based on a field on sale order Solved
sales invoicing quickstart Studio AutomatedActions
Avatar
Avatar
2
Jan 22
4573
How to add a related field coming from a sales order on an invoice? Solved
quickstart Studio
Avatar
Avatar
2
May 25
7992
How to filter the customers in the Sales Order for the salesperson? Solved
quickstart Studio
Avatar
1
Mar 23
3776
Studio : add a specific field (SIRET) in the header of PDF documents
quickstart Studio
Avatar
0
Jul 21
444
Odoo 17: Alternative to deprecated "On Creation" for automated actions? Solved
Studio AutomatedActions v17
Avatar
Avatar
Avatar
2
Jan 25
5626
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
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

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

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now