Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2854 Tampilan

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 :)

Avatar
Buang
Jawaban Terbai

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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Sep 22
2804
3
Sep 25
3261
0
Agu 25
800
1
Agu 25
3025
2
Jul 25
8657