bemade-addons/bemade_mailcow_integration/models/res_config_settings.py
2023-07-21 13:26:07 -04:00

20 lines
No EOL
640 B
Python

from odoo import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = 'res.config.settings'
mailcow_base_url = fields.Char(
string="Mailcow Base URL",
help="URL for the Mailcow server API",
config_parameter='mailcow.base_url',
)
mailcow_api_key = fields.Char(
string="Mailcow API Key",
help="API key for the Mailcow server",
config_parameter='mailcow.api_key',
)
mailcow_sync_alias = fields.Boolean(
string='Sync Aliases with Odoo',
help='Auto create Aliases in Mailcow from Odoo',
config_parameter='mailcow.sync_alias')