Sythil SAAS Server - Domain Filter

by
Odoo
v 9.0 v 10.0 Third Party 176
Download for v 10.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Technical Name sythil_saas_server_domain_filter
LicenseLGPL-3
Versions 9.0 10.0
You bought this module and need support? Click here!

Description

Assigns top level domains to database of any name

Instructions

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

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.