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

Example: i want to save date in product.product automatically without scheduler or without click any button when first time product will less than or equal to zero


What I Tried?

1. onchnage or depends of qty_available (not working because compute field)

2. super call of _compute_quantities method (not working)


Thanks :)

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

Hi Dhiraj,

I think you can use the fields quantity(On Hand quantity) or available_quantity(Available quantity) from the stock.quant model, through onchange or sql constrains and check for its value whether its less than or equal to zero, and then write the date to the related product from the stock.quant model itself.

Hope this will help you
Thank you

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 9 22
2786
3
thg 9 25
3257
0
thg 8 25
799
1
thg 8 25
3021
2
thg 7 25
8652