Availability |
Odoo Online
Odoo.sh
On Premise
|
Technical Name |
sythil_saas_server_domain_filter |
License | LGPL-3 |
Versions | 9.0 10.0 |
Description
Assigns top level domains to database of any nameInstructions
You need to add an option to your odoo/tools.config.py file, be sure to replace "my_default='saas'" with the actual name of the database with the saas server module installed.group.add_option("--sythilsaasserver", dest="sythilsaasserver", my_default='saas', help="The name of the saas server database")
You will also need to make the module run as a server wide module by changing the line
self.options['server_wide_modules'] = 'web,web_kanban'to
self.options['server_wide_modules'] = 'web,web_kanban,sythil_saas_server_domain_filter'
Also if you are using a reverse proxy such as NGINX be sure to update your odoo config file (/etc/odoo.conf)
proxy_mode = True
You can test that the module is running as a server side module by going to <domain>/saas/domain/test
It should display a message that reads "SAAS Database:", be sure this matches the name of the database with the saas server modules installed
Once setup you can add domains under the saas->domains, when a person visits the domain it will do a lookup and automatically choose the appropriate database
Please log in to comment on this module