flectra/addons/digest/views/res_config_settings_views.xml

33 lines
1.7 KiB
XML
Raw Normal View History

2018-08-20 11:29:49 +02:00
<?xml version="1.0" encoding="utf-8"?>
<flectra>
<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='access_rights']" position="before">
<div class="col-12 col-lg-6 o_setting_box" title="New users are automatically added as recipient of the following digest email.">
<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>
<button type="action" name="%(digest.digest_digest_action)d" string="Configure Digest Emails" icon="fa-arrow-right" class="btn-link"/>
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
</flectra>