During first scss convertion, classes called as mixins were changed to an @extend instruction which was the best approximation given the fact there is no equivalent in sass to do that. The problem is that the instruction is slowing the scss computation a lot and might also break the style in unexpected ways because of the complex unwanted selectors the instruction induces. This commit removes the need of extends. This is done case per case. Sometimes this involves adding classes in xml, sometimes to change the style a little, ... The button rendering refactoring which was made at the start of the LESS to SASS merge was also done in prevision of this. After this commit, sass computation is like 5-6 times faster than less computation while it was like 10 times *slower* before this commit.
127 lines
6.3 KiB
XML
127 lines
6.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- MAIL MAIL STATISTICS !-->
|
|
<record model="ir.ui.view" id="view_mail_mail_statistics_search">
|
|
<field name="name">mail.mail.statistics.search</field>
|
|
<field name="model">mail.mail.statistics</field>
|
|
<field name="arch" type="xml">
|
|
<search string="Mail Statistics">
|
|
<field name="mail_mail_id_int"/>
|
|
<field name="message_id"/>
|
|
<field name="mass_mailing_id"/>
|
|
<filter string="Sent" name="filter_sent" domain="[('sent', '!=', False)]"/>
|
|
<filter string="Received" name="filter_received" domain="[('sent', '!=', False), ('bounced', '=', False)]"/>
|
|
<filter string="Scheduled" name="filter_scheduled" domain="[('scheduled', '!=', False), ('sent', '=', False), ('exception', '=', False)]"/>
|
|
<filter string="Failed" name="filter_failed" domain="[('scheduled', '!=', False), ('sent', '=', False), ('exception', '!=', False)]"/>
|
|
<separator/>
|
|
<filter string="Opened" name="filter_opened" domain="[('opened', '!=', False)]"/>
|
|
<filter string="Clicked" name="filter_clicked" domain="[('clicked', '!=', False)]"/>
|
|
<filter string="Replied" name="filter_replied" domain="[('replied', '!=', False)]"/>
|
|
<filter string="Bounced" name="filter_bounced" domain="[('bounced', '!=', False)]"/>
|
|
<group expand="0" string="Group By">
|
|
<filter string="State" name="state" domain="[]" context="{'group_by':'state'}"/>
|
|
<filter string="Open Date" name="group_open_date" context="{'group_by': 'opened:day'}"/>
|
|
<filter string="Reply Date" name="group_reply_date" context="{'group_by': 'replied:day'}"/>
|
|
<filter string="Last State Update" name="state_update" domain="[]" context="{'group_by':'state_update'}"/>
|
|
<filter string="Mass Mailing" name="mass_mailing" domain="[]" context="{'group_by':'mass_mailing_id'}"/>
|
|
</group>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="view_mail_mail_statistics_tree">
|
|
<field name="name">mail.mail.statistics.tree</field>
|
|
<field name="model">mail.mail.statistics</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Mail Statistics" create="0">
|
|
<field name="recipient"/>
|
|
<field name="message_id"/>
|
|
<field name="sent"/>
|
|
<field name="exception"/>
|
|
<field name="opened"/>
|
|
<field name="clicked"/>
|
|
<field name="replied"/>
|
|
<field name="bounced"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="view_mail_mail_statistics_form">
|
|
<field name="name">mail.mail.statistics.form</field>
|
|
<field name="model">mail.mail.statistics</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Mail Statistics" create="0">
|
|
<div class="oe_form_box_info bg-info oe_text_center alert-info" attrs="{'invisible': [('exception', '=', False)]}">
|
|
<p><strong>This email could not be sent.</strong></p>
|
|
</div>
|
|
<sheet>
|
|
<group>
|
|
<group>
|
|
<field name="recipient"/>
|
|
<field name="mass_mailing_id"/>
|
|
<field name="mass_mailing_campaign_id" groups="mass_mailing.group_mass_mailing_campaign"/>
|
|
</group>
|
|
|
|
<group>
|
|
<field name="exception" attrs="{'invisible': [('exception', '=', False)]}"/>
|
|
<field name="sent"/>
|
|
<field name="opened"/>
|
|
<field name="clicked"/>
|
|
<field name="replied"/>
|
|
<field name="bounced"/>
|
|
</group>
|
|
|
|
<group groups="base.group_no_one">
|
|
<field name="mail_mail_id_int"/>
|
|
<field name="message_id"/>
|
|
<field name="model"/>
|
|
<field name="res_id"/>
|
|
</group>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_view_mail_mail_statistics" model="ir.actions.act_window">
|
|
<field name="name">Mail Statistics</field>
|
|
<field name="res_model">mail.mail.statistics</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree,form</field>
|
|
</record>
|
|
|
|
<record id="action_view_mail_mail_statistics_mailing" model="ir.actions.act_window">
|
|
<field name="name">Mail Statistics</field>
|
|
<field name="res_model">mail.mail.statistics</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">graph,tree,form,pivot</field>
|
|
<field name="domain">[]</field>
|
|
<field name="context">{'search_default_mass_mailing_id': active_id}</field>
|
|
</record>
|
|
|
|
<record id="action_view_mail_mail_statistics_mailing_list" model="ir.actions.act_window">
|
|
<field name="name">Emails Sent</field>
|
|
<field name="res_model">mail.mail.statistics</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree,graph,form,pivot</field>
|
|
<field name="domain">[]</field>
|
|
<field name="context">{'search_default_mass_mailing_id': active_id}</field>
|
|
</record>
|
|
|
|
<record id="view_mail_mail_statistics_graph" model="ir.ui.view">
|
|
<field name="name">Mail Statistics Graph</field>
|
|
<field name="model">mail.mail.statistics</field>
|
|
<field name="arch" type="xml">
|
|
<graph string="Mail Statistics" type="bar" stacked="True" interval="day">
|
|
<field name="state_update" type="row" interval="day"/>
|
|
<field name="state" type="row"/>
|
|
</graph>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Add in Technical/Email -->
|
|
<menuitem name="Mail Statistics" id="menu_email_statistics"
|
|
parent="base.menu_email" sequence="50"
|
|
action="action_view_mail_mail_statistics"/>
|
|
</odoo>
|