odoo/odoo#48362 updated the systems to not show the "Statistics" section when it's empty, but left an @invisible, leading to not showing the section at all, ever (which technically does avoid showing an empty section). Remove the `invisible` attribute, since the section is now added by `digest` it should never be hidden. This doesn't fix existing views tho. closes odoo/odoo#67964 X-original-commit: 09d8b027e39d1d2eb15abb8d9fe564292fa96d32 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
40 lines
2.2 KiB
XML
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" >
|
|
<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>
|