Odoo Help


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.


Why Employees model's "Home Address" field is defined as reference to Partners model?

Takahiro Yasui
on 5/17/16, 2:37 PM 482 views

"Employees(hr.employee)" model's "Home Address(address_home)" field is defined as reference to "Partners(res.partner)" model. Therefore, when I want to enter an employee's "Home Address" field, I have to make an "Partners" instance first. And in "Partners" instance, I can enter an address.

But this doesn't make sense for me at all. Because "Partners" model also has fields such as "Company(e.g. ASUStek)", "Job Position(e.g. Sales Director)", "Title(e.g. Dr.)". These fields are not necessary for "Home Address". This database design is strange. And Odoo shows all Partners list that are not related to "Home Address" is also not good.

If Employee's "Home Address" field is defined as reference to a model (for example, "Address" model) that has only "Country", "States", "City", "Address", it makes sense for me.

Can anyone explain the meaning of this design or teach me a work-around solution?

Thank you for your answer, Ray. However I still want a solution for my purpose. I'd like to store our employee's address by more reasonable way. Is it possible to extend "Employee" model to disable existing "Home Address" from its view and add new "Home Address" field that is simply implemented by "Char" format? And may this approach cause any problem?

Takahiro Yasui
on 5/18/16, 4:31 AM

Ray Carnes

--Ray Carnes--
| 9 7 9
Greater Los Angeles, United States
--Ray Carnes--

Senior Odoo Analyst

OpenERP 6.1, 7.0 and Odoo 8.0, 9.0 (Since 2012)

Completed Functional and Technical Training.

Major Skills:

  • Needs Discovery and Requirements Analysis;

  • Function and Technical Specifications;

  • Project Planning;

  • Prototyping and Proof of concepts;

  • Data migration;

  • Configuration & Customization (UI and modules);

  • Integration - data, business logic and service levels;

  • Training and Knowledge transfer;

  • Go Live support;

  • Help desk;

  • Version Migration.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

Ray Carnes
On 5/17/16, 8:54 PM

The design that Odoo chose has Individuals and Companies in the same model.  You choice is just as valid as theirs.  Yours would not make sense the them in the same way theirs doesn't make sense to you.

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)


Asked: 5/17/16, 2:37 PM
Seen: 482 times
Last updated: 5/17/16, 8:54 PM