跳至內容
選單
此問題已被標幟

Hi, Odooers!

I'm working on Pos Loyalty on JS using OWL. I noticed that the class I  need to work on, is declared as const using E6S syntax and the class does not have the export declaration. Is there a way to extend PosLoyaltyOrder class which is in a native module? I have extended several components before, they were really easy to extend.

This is the native class I would want to extend:

const PosLoyaltyOrder = (Order) => class PosLoyaltyOrder extends Order {

​...

​...

}


Instead I extended Order class component  like this and it's working fine 

const PosLoyaltyOrderPriceUpdate = (Order) => class PosLoyaltyOrderPriceUpdate extends Order{

}


Thank you!

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
6月 23
4906
1
12月 23
2058
0
12月 23
1719
1
10月 23
3248
0
9月 23
2181