[IMP] utm, mass_mailing: clean utm.campaign model, form view and stat buttons

This commit cleans up the utm.campaign form view:

  * Don't display mailing related things if no mailings on the campaign or
    if the campaigns were not activated in mass_mailing settings;
  * Stat button for the mass mailings was wrong, it was displaying the number
    of mails instead of the number of mailings;
  * Remove unused global click ratio field all other fields/methods related
    to its computation;
  * Remove ab testing cta on campaign form;
  * Add groups on mailing related fields to avoid access errors;

LINKS

Task ID 2074813 (FP request UTM refactor)
PR: #37185
This commit is contained in:
qmo-odoo
2019-09-20 14:21:25 +00:00
committed by Thibault Delavallée
parent ad98c63400
commit af601da9be
5 changed files with 40 additions and 82 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
<odoo>
<!-- UTM Stage -->
<record id="default_utm_stage" model="utm.stage">
<field name="name">Default</field>
<field name="name">New</field>
<field name="sequence">10</field>
</record>
<record id="campaign_stage_1" model="utm.stage">