Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3284 Visualizzazioni

How can I do?

@api.onchange('qty_available')
def _onchange_qty_available(self):
_logger.info('=======================================================')
_logger.info('this')
_logger.info('=======================================================')

Avatar
Abbandona
Risposta migliore

It is not a good idea to make an onchange method for that field. Onchange method is triggered when a user manually updates a field value in the interface while editing object.

'qty_available' is a computed field which is neither stored in Postgres, nor is changeable manually.

That means you onchange would not be triggered. 


Avatar
Abbandona
Autore

I use now jut the stock move create...I think will be almost the same for what i need

hello so can you say me alternative solution for trigger on change in qty_available ?

Post correlati Risposte Visualizzazioni Attività
0
feb 16
5399
2
mar 15
5291
2
nov 16
6001
1
set 16
7943
6
giu 21
25709