Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ

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!

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
มิ.ย. 23
4901
1
ธ.ค. 23
2052
0
ธ.ค. 23
1715
1
ต.ค. 23
3241
0
ก.ย. 23
2178