Friends,
How possible inheritance like below,
class A has fields A1,A2,A3
class B has fields B1,B2
I have to use the fields of class B in the view of class A & viceversa..
Thanks..
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Friends,
How possible inheritance like below,
class A has fields A1,A2,A3
class B has fields B1,B2
I have to use the fields of class B in the view of class A & viceversa..
Thanks..
You create Class C that inherits from both A and B. It is rarely used because you need to ensure that there is no conflicting logic in everything (attributes, method, etc.) between A and B. A sample that you can find is in note_pad/note_pad.py. The note.note there inherits from note.note and pad.common.
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký