Skip to Content
Menu
This question has been flagged
1 Reply
3153 Views

How can I do?

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

Avatar
Discard
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
Discard
Author

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 Replies Views Activity
0
Feb 16
5233
2
Mar 15
5118
2
Nov 16
5881
1
Sep 16
7834
6
Jun 21
25429