Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2849 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
wrz 22
2789
3
wrz 25
3257
0
sie 25
799
1
sie 25
3022
2
lip 25
8654