Odoo Help


How to display value from field in custom module on a form view in a different module

Pieter Paulussen
on 4/13/16, 4:19 AM 806 views

I would like to add the value of a field from a custom module to an existing view.

mymodule.py file

class MyClass()
     my_var = fields.Char()
in the xml file=

<record from different module>
<xpath ...>
    <field name="my_var">     
to point to the value in my module?What do I need to add to the <field...> to point to the value in my module? What do I need to add to the


Jérémy Kersten (jke)

--Jérémy Kersten (jke)--

| 3 3 5
Jodoigne, Belgium
--Jérémy Kersten (jke)--

Jérémy is a member of the core R&D team since september 2013. He developed several projects for OpenERP version 8 including the eCommerce, the Google Calendar synchronization and the new product variants/configurator. Now, he manages Odoo website and themes for saas.

Jérémy Kersten (jke)
On 4/13/16, 6:29 AM

Please read the documentation and the tutorial...

All is explained... 


take a look here: https://www.odoo.com/documentation/9.0/howtos/backend.html#view-inheritance

so in your case:

<field name='inherit_id' ref='other_module.xml_id'
<field name='field_name_from_other_module' position='after'>

About This Community

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


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 4/13/16, 4:19 AM
Seen: 806 times
Last updated: 4/17/16, 5:42 PM