Odoo Help

0
7 Answers
2
Karim minaz
2/15/18, 8:07 PM

You can buy this module from odoo apps which will fulfil your needs.

\https://apps.odoo.com/apps/modules/10.0/website_multi_company/

1
Avatar

Ermin Trevisan

--Ermin Trevisan--
9259
| 6 5 7
Walchwil, Switzerland
--Ermin Trevisan--


Ermin Trevisan
6/30/17, 4:47 AM

If you want to serve multiple domains with multiple databases, whereas each domain is connected to one particular database, it is best to run Odoo using the dbfilter option, see https://www.odoo.com/documentation/10.0/setup/deploy.html. If you want to serve multiple websites from one database, it is not officially supported and does not work flawlessly. Check the web for Odoo and Website multi or similar and you'll find plenty of content regarding this topic.

0
Surya Semesta
7/6/18, 1:19 AM

Yes you can do that in 2 database (if default odoo instalation without buy module multiple website)

1 odoo server

2 database

2 domain

You can setting with dbfilter

0

Hi ,

you have to decide , like what the above advices given , 

1. to host it with each domain has it's own database on the same IP (recommended)

or

2. to host it with all domains on the same IP ( not commonly practice ) in ONE db, with this method,

i saw a few modules out there , some needs to pay , like this one , https://www.odoo.com/apps/modules/10.0/pr1_multi_website/ , not sure if this is what you are looking for ?

Thanks.

kalmen



0
Imran
6/30/17, 3:46 AM

You should use apache / nginx and configuration of your /etc/hosts file to direct traffic from www.abc.com to the correct instance of Odoo and same www.xyz.com


I am assuming the themes are at least for two separate DBs, i don't think its possible within the same Odoo DB.  We have done similar multiple DBs on same host server, but you can also run multiple Odoo Servers with different ports on same server


0
Rafael Aguero Baquero
6/30/17, 10:07 AM

Always and always i suggest use other webserver like apache / nginx and as Imran said configure those.

0
Fatih Piristine
7/22/17, 7:18 AM

you can alter the domain part in ir_http to return correct urls. 

i have x-forward-proto for detecting http/https for proper url generation. 

def _get_root_url(trim=False):
"""
add X-Forwarded-Proto
:param trim:
:return:
"""

url_root = request.httprequest.url_root

if trim is True:
url_root = request.httprequest.url_root[:-1]

for k, v in request.httprequest.headers.items():
if k.lower() == 'x-forwarded-proto' and v.lower() == 'https':
url_root = re.sub(r'^http://', 'https://', url_root)
break

return url_root
Ask a Question
Writer
Keep Informed
1 follower(s)
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.

Register
Odoo Training Center

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

Test it now