Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
2806 Переглядів

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

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
вер. 22
2768
3
вер. 25
3251
0
серп. 25
798
1
серп. 25
3010
2
лип. 25
8628