Sunday, August 14, 2022

odoo server wide modules

Odoo server wide modules are modules are supposed to provide features not necessarily tied to a particular database and they are loaded after running the server just as base and web modules , we can use this feature for example if we want to create login API with HTTP type , or API to return the databases list ...etc

How to define custom module as server wide module ?

First : if we are running the server from command line directly we must use --load with the running command 

eg : ./odoo-bin --addons-path='/opt/test/odoo-14.0/addons' --load=base,web,custom_web

Second : if we add odoo as service and created configuration file we can add server_wide_modules inside the configuration file 

eg :
[options]
; This is the password that allows database operations:
admin_passwd = master_admin@ssc
db_host = False
server_wide_modules = base,web,custom_web
db_port = False
db_user = test
db_password = False
addons_path = /opt/test/odoo/addons
logfile = /var/log/test/odoo-test.log
http_port = 8080
limit_request = 8192
limit_time_cpu = 600
limit_time_real = 120000

No comments:

Post a Comment

Odoo Invoice Qr code issues

There are two main issues must of us facing with the QR code in Odoo invoice & these issues are 1/ QR code displayed as broken image w...