Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
3266 Visninger

How can I do?

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

Avatar
Kassér
Bedste svar

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
Kassér
Forfatter

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 Besvarelser Visninger Aktivitet
0
feb. 16
5385
2
mar. 15
5277
2
nov. 16
5985
1
sep. 16
7930
6
jun. 21
25687