Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1448 Lượt xem

I am using Odoo 15 Point of Sale Community to manage my coffee sales. Each coffee sale has a BOM, which automatically reduces the on-hand inventory of raw materials like cups, sugar, and other items. I also want to set up a system where, if any raw material falls below a certain stock level, a notification is automatically sent to the vendor. How can we achieve this in Odoo 15?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello Shakuur ally,

We can Automate Notification for Low Inventory using custom schedule action.


Here is code for the same

Add python code to check if stock is low

def run_low_stock_notification(self):
        threshold = 10

        # Fetch products below the threshold
        low_stock_products = self.search([('qty_available', '

provide custom method reference view



I hope this will help you !

Thanks,
Vimal Rughani (Founder and CTO)
Himanjali Intelligent Automation Pvt Ltd
Contact:
 +91- 972-606-7737
Emailhello@himanjali.com 
NewsletterThe Odoo Scoop
Websitewww.himanjali.co


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 21
3368
1
thg 1 19
4921
1
thg 7 19
4765
Multi layered BOMs Đã xử lý
2
thg 8 25
621
1
thg 10 24
1074