Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3368 Lượt xem

How can I do?

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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. 


Ảnh đại diện
Huỷ bỏ
Tác giả

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 ?

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 2 16
5529
2
thg 3 15
5410
2
thg 11 16
6088
1
thg 9 16
8050
6
thg 6 21
25865