Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
In case there are multiple databases in the server, are you supposed to install the 'server-wide' module in every single database, or should installing in one database suffice?
My understanding has been the latter. However, we have one situation that's been puzzling us.
We have installed a module (dbfilter_from_header) which is supposed to be loaded as a 'server-wide' module. We have set the module as a server-wide module in the configuration file (server_wide_modules = dbfilter_from_header) to limit database access according to the URL based on the web server configuration.
The settings work as expected most of the time, except after database backup script runs which stops Odoo server, takes database dump and starts Odoo server. It seems right after the script is run, database filtering does not work as expected and you can see all the databases (then the situation gets back to normal after some fiddling on the screen).
My understanding of the 'server-wide' module being like mentioned above, I had only installed the dbfilter_from_header module in one of the databases. However, I now wonder if you are actually supposed to install the module in all the databases in the server. Does anyone have an insight on this?
Server-wide module is a bit messed and confusing name..
In fact it is module wich has auto_install : True in __openerp__.py , and it means that module will be installed when you cretae new database... ( such modules are base, web ... )
If you have some custom module you want to install on every new created db ( for example.. you create a moduel wich sets admin user technical features enabled on db cretatin) then you put auto_install : True and call that module server_wide mdoule..
However. this will not impact existing databases...
For them you have 2 choices:
1. manualy install suchmodule on every db
2. start server with -u module_name parameter ( -u = --update ) so it will update selected module or modules when you first logn to db
(note.. WHEN you login , not done to all dabases when server is started!)
hope it helps..
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 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
|Asked: 1/15/15, 3:17 AM|
|Seen: 1026 times|
|Last updated: 3/16/15, 8:10 AM|