# -*- coding: utf-8 -*- conf_content = """[options] addons_path = /mnt/extra-addons db_host = db db_port = 5432 db_user = odoo db_password = odoo db_name = dev list_db = False log_level = info """ with open('/etc/odoo/odoo.conf', 'w', encoding='utf-8') as f: f.write(conf_content) print("SUCCESS: Updated /etc/odoo/odoo.conf with db_name = dev and list_db = False!")