跳至内容
菜单
此问题已终结
1 回复
126 查看

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
12月 23
1552
0
8月 23
2855
1
12月 23
1653
1
6月 25
589
0
1月 25
1036