From fb53eb10cb01f033ab03c91729e117130857f80f Mon Sep 17 00:00:00 2001
From: qmo-odoo
Date: Wed, 3 Mar 2021 08:58:24 +0000
Subject: [PATCH] [IMP] utm*: Rename is_website field
This commit renames the field is_website into is_auto_campaign
for clarity purpose.
The is_website field always meant that the campaigns were created automatically
in some instances. Could be created automatically via a link to the website
or even by simply creating a marketing campaign in marketing_automation.
is_auto_campaign is a better name as it does not wrongly imply that only
the website can generate campaigns automatically, while also pointing
out the automatic generation mechanism.
The utm campaigns behaviour rests unchanged.
LINKS:
TaskID: 2414694
PR: #65824
Enterprise PR: #16238
Related: odoo/upgrade#2146
Related: odoo/enterprise#16238
Signed-off-by: Thibault Delavallee (tde)
---
addons/mass_mailing/views/utm_campaign_views.xml | 2 +-
addons/utm/__manifest__.py | 2 +-
addons/utm/data/utm_demo.xml | 8 ++++----
addons/utm/models/utm.py | 2 +-
addons/utm/models/utm_mixin.py | 4 ++--
addons/utm/views/utm_campaign_views.xml | 1 +
addons/utm/views/utm_views.xml | 2 +-
addons/website_links/static/src/js/website_links.js | 2 +-
8 files changed, 12 insertions(+), 11 deletions(-)
diff --git a/addons/mass_mailing/views/utm_campaign_views.xml b/addons/mass_mailing/views/utm_campaign_views.xml
index 7dc5303581b..ab9a0504f12 100644
--- a/addons/mass_mailing/views/utm_campaign_views.xml
+++ b/addons/mass_mailing/views/utm_campaign_views.xml
@@ -101,7 +101,7 @@
Campaigns are the perfect tool to track results across multiple mailings.
- [('is_website', '=', False)]
+ [('is_auto_campaign', '=', False)]