跳至内容
菜单
此问题已终结
1 回复
3186 查看

How can I do?

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

形象
丢弃
最佳答案

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. 


形象
丢弃
编写者

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 ?

相关帖文 回复 查看 活动
0
2月 16
5286
2
3月 15
5149
2
11月 16
5901
1
9月 16
7856
6
6月 21
25496