Community mailing list archives
Re: How to set a multi-company environnement On contact us web page ?by
Hi,Odoo V9 will have a multi-website capability built in. It's included in the base website module, so it will be in the version that includes the website, and i strongly doubt that odoo will put the website module in the enterprise version.Anyway for V8 there is also the website-multi module: https://github.com/odoo/odoo-extra/tree/8.0That said, setting up a multi website system is quite complex due to the fact that the basic setup of modules do not take mutli-website into account. So what happens, is for instance when you install a module, there are a number of pages created for the main website, but nothing is done for other websites. This means that in order to build a multi website you have to know and understand the inner workings of the odoo website system: view inheritance, multicompany access rules, the key/website/xml-id functionality that the multi-website module adds, and this in combination with the buildup of the standard website.Basically, right now it can already be done, but it's very complex. In the future i'm sure this will get better.If you just want to show all companies data on your contact page, you could use something like this:<div t-foreach="res_company.child_ids" t-as="child_company"><t-esc="child_company.name"/><t-esc="child_company.street"/></div>Then make sure, the public user linked to the website is attached to the parent company of all child companies you want to show.Regards,Jos2015-06-05 18:28 GMT+02:00 Houssine BAKKALI <firstname.lastname@example.org>:
Or something you could do it's dig in the qweb code to get what you want and then share it with with the community. The relation is always better when it goes both ways. Displaying children companies should be straight forward while displaying them on the google map should be a little more tricky.Hi Hans,Is this feature is on the comunity edition ?My need was more simpler than that, I just want to diplay children company details alongside the main company details.
Base on their presentation on odoo days1,
They will provide multi website for multi company in version 9,
So I think it will be hard to convince community to developed this.
Expert in Finance, Information System & Business Intelligence
Odoo Silver Partner
Tel. 13670137019 (China - Shenzhen)
From: Yassine Teimi [mailto:email@example.com]
Sent: Thursday, June 04, 2015 7:11 PM
Subject: Re: How to set a multi-company environnement On contact us web page ?
It only displays one company, I added another one, but it doesn't show. In general settings, I ticked multi-company management.
So I have to do it by custom module. How can I suggest this kind of module developpement on Github, to invite community members contribute on it ?
If you want to do it dynamically (eg. you add a new company in Odoo and it automatically appears in the contact page) then you'll need to create a custom module as far as I'm aware.
Perhaps create a HTML mockup of what you want to accomplish first and then post it to the help forum to see if anyone can help.
I have a multi company environnement, and on the website page "contact us", I want to have all the companies adresses and maps displayed ? How to do that kind of configuration ? is it out of the box ? Thanks.
Consultant & Chef de Projet
TEL : +212 6-27 33 30 78
Consultant & Chef de Projet
TEL : +212 6-27 33 30 78--CordialementYassine TEIMIConsultant & Chef de ProjetTEL : +212 6-27 33 30 78