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

Hello

I was wondering why the _inherit for mail.thread is always _inherit = ["mail.thread"] where as most other models leave off the '[ ]'?  For instance I can do _inherit = "product.attribute.value" and that works just fine. 

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

The box brackets [] are used when you have multiple inheritance.

Ảnh đại diện
Huỷ bỏ