Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
805 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
gru 23
1884
0
sie 23
3294
1
gru 23
1944
1
cze 25
1622
0
sty 25
1306