Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3257 มุมมอง

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 ?

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.พ. 16
5362
2
มี.ค. 15
5265
Onchange date plus 2 day แก้ไขแล้ว
2
พ.ย. 16
5974
Onchange get weekday name แก้ไขแล้ว
1
ก.ย. 16
7925
6
มิ.ย. 21
25671