Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
127 Zobrazení

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?

Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
pro 23
1553
0
srp 23
2857
1
pro 23
1653
1
čvn 25
590
0
led 25
1037