50 lines
2.6 KiB
XML
50 lines
2.6 KiB
XML
<?xml version="1.0"?>
|
|
<flectra>
|
|
<record id="digest_digest_view_form_inherit" model="ir.ui.view">
|
|
<field name="name">digest.digest.view.form.inherit</field>
|
|
<field name="model">digest.digest</field>
|
|
<field name="inherit_id" ref="digest.digest_digest_view_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//page[@name='kpis']" position="after">
|
|
<page name="how_to" string="How to customize your digest?" groups="base.group_no_one">
|
|
<div>
|
|
<button type="action" class="oe_highlight" name="%(digest.digest_custom_fields_action)d" string="Add Customized Digest"/>
|
|
<button type="action" name="%(digest.digest_custom_remove_action)d" string="Remove Customized Digest"/>
|
|
</div>
|
|
<div class="alert alert-info" role="alert">
|
|
In order to build your customized digest, follow these steps:
|
|
<ol>
|
|
<li>
|
|
You may want to add new computed fields:
|
|
<ul>
|
|
<li>
|
|
you must create 2 fields on the
|
|
<code>digest</code>
|
|
object:
|
|
</li>
|
|
<li>
|
|
first create a boolean field called
|
|
<code>x_kpi_field_name</code>
|
|
and display it in the KPI's tab;
|
|
</li>
|
|
<li>
|
|
then create a computed field called
|
|
<code>x_kpi_field_name_value</code>
|
|
that will compute your customized KPI.
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li>Select your KPIs in the KPI's tab.</li>
|
|
<li>
|
|
Create or edit the mail template: you may get computed KPI's value using these fields:
|
|
<code>
|
|
<field name="available_fields" class="oe_inline" />
|
|
</code>
|
|
</li>
|
|
</ol>
|
|
</div>
|
|
</page>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</flectra> |