51 lines
2.6 KiB
XML
51 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<record id="res_config_settings_view_form" model="ir.ui.view">
|
|
<field name="name">res.config.settings.view.form.inherit.fusion.api</field>
|
|
<field name="model">res.config.settings</field>
|
|
<field name="inherit_id" ref="base.res_config_settings_view_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//form" position="inside">
|
|
<app data-string="Fusion API" string="Fusion API"
|
|
name="fusion_api"
|
|
groups="fusion_api.group_manager">
|
|
<block title="General Settings">
|
|
<setting string="Default Environment"
|
|
help="Choose whether API calls default to production or sandbox keys.">
|
|
<field name="fusion_api_default_environment"/>
|
|
</setting>
|
|
<setting string="Auto-Detect Consumers"
|
|
help="Automatically register new Fusion modules when they first call the API.">
|
|
<field name="fusion_api_auto_detect"/>
|
|
</setting>
|
|
</block>
|
|
<block title="Budget & Retention">
|
|
<setting string="Global Monthly Budget"
|
|
help="Set a global monthly cost cap across all providers. 0 = unlimited.">
|
|
<div class="content-group">
|
|
<div class="row mt8">
|
|
<label class="col-lg-3" for="fusion_api_global_budget"/>
|
|
<field name="fusion_api_global_budget" class="col-lg-3"/>
|
|
<span class="col-lg-2">USD</span>
|
|
</div>
|
|
</div>
|
|
</setting>
|
|
<setting string="Log Retention"
|
|
help="Keep detailed usage logs for this many days. Daily summaries are kept indefinitely.">
|
|
<div class="content-group">
|
|
<div class="row mt8">
|
|
<label class="col-lg-3" for="fusion_api_log_retention_days"/>
|
|
<field name="fusion_api_log_retention_days" class="col-lg-3"/>
|
|
<span class="col-lg-2">days</span>
|
|
</div>
|
|
</div>
|
|
</setting>
|
|
</block>
|
|
</app>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|