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

How can I do?

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

Avatar
Descartar
Best Answer

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
Descartar
Autor

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 ?

Related Posts Respostes Vistes Activitat
0
de febr. 16
5224
2
de març 15
5116
2
de nov. 16
5873
1
de set. 16
7829
6
de juny 21
25416