100 lines
5.0 KiB
XML
100 lines
5.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<flectra>
|
|
|
|
<record id="digest_digest_view_tree" model="ir.ui.view">
|
|
<field name="name">digest.digest.view.tree</field>
|
|
<field name="model">digest.digest</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="KPI Digest">
|
|
<field name="name"/>
|
|
<field name="periodicity"/>
|
|
<field name="next_run_date" groups="base.group_no_one"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
<record id="digest_digest_view_form" model="ir.ui.view">
|
|
<field name="name">digest.digest.view.form</field>
|
|
<field name="model">digest.digest</field>
|
|
<field name="arch" type="xml">
|
|
<form string="KPI Digest">
|
|
<field name="is_subscribed" invisible="1"/>
|
|
<header>
|
|
<button type="object" name="action_subscribe" string="Subscribe"
|
|
class="oe_highlight"
|
|
attrs="{'invisible': ['|',('is_subscribed', '=', True), ('state','=','deactivated')]}"/>
|
|
<button type="object" name="action_unsubcribe" string="Unsubscribe me"
|
|
class="oe_highlight"
|
|
attrs="{'invisible': ['|',('is_subscribed', '=', False), ('state','=','deactivated')]}"/>
|
|
<button type="object" name="action_deactivate" string="Deactivate for everyone"
|
|
class="oe_highlight"
|
|
attrs="{'invisible': [('state','=','deactivated')]}" groups="base.group_system"/>
|
|
<button type="object" name="action_activate" string="Activate"
|
|
class="oe_highlight"
|
|
attrs="{'invisible': [('state','=','activated')]}" groups="base.group_system"/>
|
|
<button type="object" name="action_send" string="Send Now"
|
|
class="oe_highlight"
|
|
attrs="{'invisible': [('state','=','deactivated')]}" groups="base.group_system"/>
|
|
<field name="state" widget="statusbar"/>
|
|
</header>
|
|
<sheet>
|
|
<div class="oe_button_box" name="button_box">
|
|
<button class="oe_stat_button" name="%(digest.wizard_email_template_preview_digest)d" icon="fa-search-plus" string="Preview" type="action" target="new" context="{'template_id': template_id}" attrs="{'invisible': [('template_id', '=', False)]}"/>
|
|
</div>
|
|
<div class="oe_title">
|
|
<label for="name" class="oe_edit_only"/>
|
|
<h1>
|
|
<field name="name"/>
|
|
</h1>
|
|
</div>
|
|
<group>
|
|
<group>
|
|
<field name="periodicity" widget="radio" options="{'horizontal': true}"/>
|
|
<field name="user_ids" widget="many2many_tags" options="{'no_create': True}" groups="base.group_system"/>
|
|
<field name="template_id" groups="base.group_no_one"/>
|
|
<field name="next_run_date" groups="base.group_system"/>
|
|
<field name="company_id" options="{'no_create': True}" invisible="1"/>
|
|
</group>
|
|
</group>
|
|
<notebook>
|
|
<page name="kpis" string="KPIs">
|
|
<group name="kpis">
|
|
<group name="kpi_general" string="General" groups="base.group_system">
|
|
<field name="kpi_res_users_connected"/>
|
|
<field name="kpi_mail_message_total"/>
|
|
</group>
|
|
<group name="kpi_sales"/>
|
|
</group>
|
|
</page>
|
|
</notebook>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
<record id="digest_digest_view_search" model="ir.ui.view">
|
|
<field name="name">digest.digest.view.search</field>
|
|
<field name="model">digest.digest</field>
|
|
<field name="arch" type="xml">
|
|
<search>
|
|
<field name="name"/>
|
|
<field name="user_ids"/>
|
|
<group expand="1" string="Group by">
|
|
<filter string="Periodicity" name="periodicity" context="{'group_by': 'periodicity'}"/>
|
|
</group>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
<record id="digest_digest_action" model="ir.actions.act_window">
|
|
<field name="name">Digest Emails</field>
|
|
<field name="res_model">digest.digest</field>
|
|
<field name="view_type">form</field>
|
|
<field name="search_view_id" ref="digest_digest_view_search"/>
|
|
</record>
|
|
|
|
<menuitem id="digest_menu"
|
|
action="digest_digest_action"
|
|
parent="base.menu_email"
|
|
groups="base.group_erp_manager"
|
|
sequence="93"/>
|
|
|
|
</flectra>
|