Example: In product.product there is field qty_available which is compute field and no store, so in the change of that field i want to put some logic if quantity will less than zero.
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Example: In product.product there is field qty_available which is compute field and no store, so in the change of that field i want to put some logic if quantity will less than zero.
Thanks
You can override compute method and add your custom code to track changes of that field and make your custom code work.Try below code.
def _compute_quantities(self):
super()._compute_quantities()
# Add Your custom code here
Thanks, I thought too this same but this method is using by many fields so i thought it will risky but let's try if no any other alternative solution is there.
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
RegistrierenVerknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
---|---|---|---|---|
|
1
Sept. 22
|
2005 | ||
|
0
Mai 25
|
12 | ||
|
2
Jan. 25
|
2428 | ||
|
1
Dez. 24
|
6131 | ||
|
1
Nov. 24
|
2568 |