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

I'm on v17. I am trying to patch _getOrderIdsForCurrentPage in the class @pos_sale/app/order_management_screen/sale_order_fetcher/sale_order_fetcher.

The class was not defined as " export class...". So I cant import it. What other tricks can I use. Is this even possible?

الصورة الرمزية
إهمال
أفضل إجابة

Hi,

If the class you're trying to patch in Odoo 17 is not exported with export class ..., you can't import it directly.

You cannot import the class directly if it isn't exported.


Hint :- You can override or replace the module file using the assets key in your module manifest


Hope it helps

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
ديسمبر 23
1549
0
أغسطس 23
2851
1
ديسمبر 23
1652
1
يونيو 25
587
0
يناير 25
1034