Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
7987 Lượt xem

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



Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 22
4265
0
thg 1 25
983
0
thg 9 23
2913
1
thg 5 23
2199
2
thg 5 22
14214