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

I am working on odoo 16 for an inline form module.

In the JS i override the _processDirectPayment but when in this function i check if there is an error and then call the _enableButton function with this._enableButton() I get an  Uncaught (in promise) TypeError: this is undefined 

Is this the way to stop the button from blocking itself?

If yes why can i override with ease _processDirectPayment but not call this function?

If no what should i do to get the button in it's enable state?


Thanks in advance

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يوليو 25
1935
2
يناير 24
1115
1
سبتمبر 25
335
0
يونيو 25
970
2
يونيو 25
1039