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 send automatic emails when stock levels are low?

Subscribe

Get notified when there's activity on this post

This question has been flagged
inventoryquickstartv12v13v14
2 Replies
10941 Views
Avatar
Lucas Barros (lub)

Although we do have features such as the Replenishment tool (v14) and Reordering Rules, some users require to have an automatic (live) notification of when a product (or certain products) go below a certain stock level. 

0
Avatar
Discard
Avatar
Lucas Barros (lub)
Author Best Answer

1. Activate Developer Mode.

2. Go to product.product, form view.

3. Create a new field type float (using Studio).

4. Access the field properties:



5. On the fields “Related Field” and  “Dependencies, add “qty_available”. Make sure to mark the field as “Stored”.



6.  Go to Server Actions and create this server action:


The field “x_studio_quantity_on_hand_stored” is the new float field created. Make sure to adapt this to your field name.

 

for record in records:

qty = record['qty_available']

record['x_studio_quantity_on_hand_stored'] = qty



7.

Go to product.product list viewand add filter the list by “Product Type: Storable Product”

8. Select all the products

9. Go to Actionsand execute the server action just created:


This server action will compute the field “On Hand Quantity” into the new field you just created.

10. Go back to the Server Actions menu and DELETE THE SERVER ACTION.


11. Go to Email Templatesand create a new email template which the user will receive when the stock level is low. For example:



12. Go to Automated Actionsand create a new automated action. Model: “Product, Trigger: “On Update”, Action to Do: “Send Email”, Email Template: the email template you just created.

Before Update Domain: Quantity on Hand (stored) Quantity on Hand (stored) [THIS SHOULD BE THE FIELD YOU CREATED >= ”threshold number”




Before Update Domain: Quantity on Hand (stored) Quantity on Hand (stored) [THIS SHOULD BE THE FIELD YOU CREATED >= ”threshold number”

 

Apply On: Quantity on Hand (stored) [THIS SHOULD BE THE FIELD YOU CREATED] < “threshold number”


Click on the 3 dots icon on the right side of the window:

Select the product IDs that you’d like to apply that threshold with a “Any” condition:



Ideally, you’ll add all the product IDs of the products that meet the same threshold for low stock level.

 

 

If you need to add more than one threshold, create a new automated action with the same parameters, but changing the threshold. Be careful with creating too many automated actions.

 

 

13. Once the product quantity goes below the threshold, the user that you defined on your email template will receive the email.

2
Avatar
Discard
Shawn Wright

We want to use this mechanism, except for us it's not (as much) about quantity on-hand. We have a virtual warehouse that is the default warehouse for web orders, and we only keep a certain amount of stock in that warehouse. We're wanting to notify the right personnel that they need to do a stock move/internal transfer (from main warehouse to web warehouse). We don't want the stock move to be automatic because most of our stock (non-web sales orders) is B2B (to distributors). Web orders is direct to public but priority for stock is given to distribution, so they need to make a situational decision about how much stock to make available to the public.

Avatar
Omprakash
Best Answer

Hi, Lucas, 

if you are looking for automatic emails when stock levels are low, you can take a look at this application:

Low Stock Alert It is recommended that you customize the application to suit your business requirements.

0
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 create multiple delivery orders on the same SO by product category or inventory location? Solved
inventory quickstart v12 v13
Avatar
Avatar
2
Mar 23
8688
Inventory Valuation - moving from Manual (periodic) to Automated (real time) - process / best practices? Solved
inventory change quickstart v13 v14
Avatar
Avatar
Avatar
Avatar
3
Mar 25
21231
How to add 2 steps picking on subcontracting route Solved
manufacturing inventory quickstart v13 v14
Avatar
Avatar
2
Apr 23
4016
How can I Manage Amazon FBA Inventory separately from my main WH? Solved
inventory functional quickstart v14
Avatar
Avatar
1
Aug 24
4740
Bank reconciliation methods Solved
v12 v13 Accounting v14
Avatar
1
Mar 24
7922
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