I currently struggle with fields in odoo. I'm pretty new to odoo so it would be very nice to have an overview over the whole fields/inheritance stuff. Just picture the following scenario: Module A has some fields that I'd like to display in Module B. For that purpose I'm developing Module C.
How can I read a field from Module A? How can I create a field in Module B? How can I assign the field in Module B the content of the Field in Module A?
Thank you!
Your requirements are not very clear.
However, let's say that in Module A there's a class called classA. In Module B there's a class called classB. You want to show the fields of classA in classB, then you need some connection between them.
In your module C, create a class called classC in which you inherit classB and add a relation field that will create this kind of connection.
This can be achieved by Relational fields . You can either read the documentation. https://www.odoo.com/documentation/8.0/reference/orm.html or this link http://findnerd.com/list/view/Create-many2one-and-one2many-relationship-in-OpenERP/508/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.