Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
333 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
jouluk. 23
1619
0
elok. 23
2939
1
jouluk. 23
1700
1
kesäk. 25
810
0
tammik. 25
1075