Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
3204 Представления

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
5297
2
мар. 15
5194
2
нояб. 16
5928
1
сент. 16
7880
6
июн. 21
25549