Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Make inheritance each other?

By
aci aisha
on 2/16/15, 1:24 AM 320 views

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..

1

Ivan

--Ivan--
3210
| 5 3 6
Jakarta, Indonesia
--Ivan--
Ivan
On 2/16/15, 2:03 AM

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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 2/16/15, 1:24 AM
Seen: 320 times
Last updated: 3/16/15, 8:10 AM