Files
odoo_source/addons/digest/views/res_config_settings_views.xml
T
Sébastien Mottet (oms) cd9dfc9da4 [IMP] base_setup: some changes in settings display
- Hide statistics section when empty
- Change order of two options in Integrations section
- Change label users to permissions to avoid duplicated label

Task ID: 2214425

closes odoo/odoo#48362

Related: odoo/enterprise#9491
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-05-06 12:54:39 +00:00

40 lines
2.2 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.digest</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='contacts_settings']" position="before">
<div id="statistics" invisible="1">
<h2>Statistics</h2>
<div class='row mt16 o_settings_container' id='statistics_div'>
<div class="col-12 col-lg-6 o_setting_box"
title="New users are automatically added as recipient of the following digest email."
name="digest_email_setting_container">
<div class="o_setting_left_pane">
<field name="digest_emails"/>
</div>
<div class="o_setting_right_pane">
<label string="Digest Email" for="digest_emails"/>
<div class="text-muted" id="msg_module_digest">
Add new users as recipient of a periodic email with key metrics
</div>
<div class="content-group" attrs="{'invisible': [('digest_emails','=',False)]}">
<div class="mt16">
<label for="digest_id" class="o_light_label"/>
<field name="digest_id" class="oe_inline"/>
</div>
<div class="mt8">
<button type="action" name="%(digest.digest_digest_action)d" string="Configure Digest Emails" icon="fa-arrow-right" class="btn-link"/>
</div>
</div>
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
</odoo>