Odoo Help

Welcome!

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.

4

How do we set a hierarchy for partners?

By
Yannick Vaucher
on 2/5/13, 9:14 AM 3,195 views

How to set affiliated companies to a main company?

In previous version, the parent_id could be used for that. However it is now hidden when is_company field is checked.

4

Yannick Vaucher

--Yannick Vaucher--
1699
| 5 7 9
Lausanne, Switzerland
--Yannick Vaucher--
Yannick Vaucher
On 2/5/13, 9:17 AM

Here is a solution of my own: You can use the res_partner_affiliate community module.

This module is available in lp:partner-contact-management community branch.

To install this module follow instructions under: How to install openerp app from launchpad

I think that installing a non-certified module to do this is overkill considering it is possible just with configuration. See http://help.openerp.com/question/2676/company-under-company/

Fabrice Henrion (fhe)
on 2/22/13, 4:57 AM

Well basically your are doing the same, in a module perhaps its overkill but it is reusable. In my module I also separated affiliates under an other tab than contacts.

Camptocamp SA
on 2/22/13, 5:29 AM

Yannick, yes if it's the only thing you have in that module, it's the same indeed.

Fabrice Henrion (fhe)
on 2/22/13, 8:23 AM

@Fabrice: I do not call changing the views from the view editor 'configuration'. What about the migrations? If you modify all your views from the client, are you sure they will be kept? That's always better to do that in addons, even if this 1 change in 1 view. I think that will never be overkill.

Camptocamp SA, Guewen Baconnier - Software Developer, Camptocamp
on 2/27/13, 6:09 AM

@Guewen: I agree that it is a better practice to make the change in a separate module. But it is only possible for developers. This is why I said it is overkill: it is overkill to have to call a developer to make a field visible. And it is also completely possible to make this change from the view editor AND make sure that it will go through updates and migrations if you do it correctly (inherit and add fields "inside"). This way, you are sure they will be kept because an update will reset the original views, not the ones you have created.

Fabrice Henrion (fhe)
on 2/27/13, 6:22 PM

An installation description would be nice

wjn
on 3/29/13, 4:35 PM

@wjn please refers to this question How to install openerp app from launchpad

Camptocamp SA
on 4/2/13, 9:34 AM

Thank you, that's a more extended and better approach then I did (I copied it directly to the addons path, on a test server of course).

wjn
on 4/2/13, 9:38 AM

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)

Stats

Asked: 2/5/13, 9:14 AM
Seen: 3195 times
Last updated: 3/16/15, 8:10 AM