跳至內容
選單
此問題已被標幟
1 回覆
3211 瀏覽次數

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
5301
2
3月 15
5197
2
11月 16
5931
1
9月 16
7885
6
6月 21
25559