Skip to Content
Menú
This question has been flagged
1 Respondre
1985 Vistes

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
Descartar
Best Answer

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
Descartar
Related Posts Respostes Vistes Activitat
1
de set. 22
1911
0
de maig 25
11
2
de gen. 25
2377
1
de des. 24
6081
1
de nov. 24
2548