54 lines
2.6 KiB
XML
54 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">gotenberg.config.settings</field>
|
|
<field name="model">res.config.settings</field>
|
|
<field name="inherit_id" ref="base_setup.res_config_settings_view_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//div[@id='recaptcha']" position="after">
|
|
<div class="col-12 col-lg-6 o_setting_box" id="gotenberg_setting">
|
|
<div class="o_setting_left_pane">
|
|
<field name="module_gotenberg"/>
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<label for="module_gotenberg"/>
|
|
<div class="text-muted">
|
|
Convert documents from Word to PDF
|
|
</div>
|
|
<div class="content-group" attrs="{'invisible': [('module_gotenberg','=',False)]}"
|
|
id="msg_module_gotenberg">
|
|
<div class="mt16 text-warning">
|
|
<strong>Save</strong>
|
|
this page and come back here to set up the feature.
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
<div id="msg_module_gotenberg" position="replace">
|
|
<div class="content-group"
|
|
attrs="{'invisible': [('module_gotenberg','=',False)]}">
|
|
<div class="content-group mt16">
|
|
<label for="server" class="o_light_label"/>
|
|
<field name="server"/>
|
|
</div>
|
|
<div class="content-group mt16">
|
|
<label for="method_authentication" class="o_light_label"/>
|
|
<field name="method_authentication"/>
|
|
</div>
|
|
<div class="content-group mt16"
|
|
attrs="{'invisible': [('method_authentication','!=','basic')]}">
|
|
<label for="username" class="o_light_label"/>
|
|
<field name="username"/>
|
|
</div>
|
|
<div class="content-group mt16"
|
|
attrs="{'invisible': [('method_authentication','!=','basic')]}">
|
|
<label for="password" class="o_light_label"/>
|
|
<field name="password" password="True"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</field>
|
|
</record>
|
|
</odoo>
|