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

I was wondering how to extend a class which uses the new Owl framework in Odoo Version 15.



อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello Conor, what class do you want to extend ?
if you want to extend component it's simple, 

like this :

class ListView extends owl.Component {} // for extend to create ListView class

class MyFieldWidget extends  AbstractFieldOwl {} // for extend to create new field widget (need import this class  web.AbstractFieldOwl)

class MyWidget extends owl.Component {}  // for extend to create new tag widget such as week_days, etc.


check this out: https://codingdodo.com/tag/owl/ or https://www.odoo.com/documentation/15.0/developer/reference/frontend/owl_components.html

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ธ.ค. 22
4200
0
ม.ค. 25
917
0
ก.ย. 23
2863
1
พ.ค. 23
2182
2
พ.ค. 22
14155