تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
3212 أدوات العرض

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
فبراير 16
5301
2
مارس 15
5197
2
نوفمبر 16
5931
1
سبتمبر 16
7886
6
يونيو 21
25559