CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
"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?
About This Community
Odoo Training Center
|Asked: 5/17/16, 2:37 PM|
|Seen: 1083 times|
|Last updated: 5/17/16, 8:54 PM|