Hi there
I have two different modules. How can I add a field from the first module in a view of the second module?
I don't get the whole inheritance part somehow, could somebody please explain it to me?
Thank you
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi there
I have two different modules. How can I add a field from the first module in a view of the second module?
I don't get the whole inheritance part somehow, could somebody please explain it to me?
Thank you
The inheritance mechanism has not changed. You can use:
class MyModelExtended(Model):
_inherit = 'a.model' # direct heritage
_inherit = ['a.model, 'a.other.model'] # direct heritage
_inherits = {'a.model': 'field_name'} # polymorphic heritage
For more details about inheritance please have a look at
http://odoo-new-api-guide-line.readthedocs.io/en/latest/environment.html?highlight=_inherits #inheritance
Thank you, I will have a look at it. (Not yet 8karma, so I can't comment on your post, sorry)
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
|
0
अक्तू॰ 17
|
10299 | ||
|
|
2
जन॰ 20
|
15913 | ||
|
|
16
अग॰ 19
|
11274 | ||
|
|
1
जन॰ 19
|
5938 | ||
|
|
3
जुल॰ 18
|
4497 |