Hello All,
I am just seeking other Odoo expert's suggestions on whether following case may be possible/feasible or not in Odoo V8.
We all very well know that, through Odoo conf file we can set Addons path. But sometimes, we don't want to show some modules in some specific databases. For example, in order to make invisible that module, if we delete module from module list, then also someone can easily make them available them via "Update Module List" menu. And sometimes, when we host Odoo for multiple customers in one server, then we don't want to show modules of customers to each other's.
Possible Way 1 :So what I was thinking, that if somewhere in configuration parameter ( Settings >> Technical >> Parameters >> System Parameters menu), we can set addons path. Then at the time of database initialize from login screen, those specific modules also should be initialize. |
Let me write some other alternative ways in case if above idea will not work. Other possible ways can be as follows,
Note : Generally end customers doesn't like to do any settings from py files so following ways would not be more suitable for end users. They like the policy "As more as from front end & as less as from back end".
Possible Way 2 :We can add one more attribute in "__openerp__.py" file like in_databases : ['test1','test2']So while doing "update module list" we will skip this module's visibility if current database is not in list of that parameter. Off course, in this custom module, there must be "auto_install" set to "True", otherwise someone can uninstall this module and our extended "update module list" method will not worked. ;) ;) ;) |
Possible Way 3 :We can add one more parameter in conf file which shall be kind of a dict ( "{}" ) in conf file. addons_db_path = {'test1' : '/opt/odoo/test1_addons', 'test2' : '/opt/odoo/test2_addons'}so along with addons_path this new attribute will specify addons path for specific databse when some one click on "update module list"
|
Benefits of this kind of feature would be,
Database wise specific modules.
One database's specific modules will not be visible to any other database.
You can keep the same name but different features inside the modules.
You can easily manage different customer's modules into one single instance of Odoo.
Client specific modules will be total secured.
I am very keen and hopeful to get opinions of Odoo experts from this forum.