summaryrefslogtreecommitdiff
path: root/addons/utm/data/utm_data.xml
diff options
context:
space:
mode:
authorOdoo's Mergebot <xmo+roboto@odoo.com>2020-04-30 11:41:46 +0200
committerGitHub <noreply@github.com>2020-04-30 11:41:46 +0200
commit8d001b74c6005ffa84d43e4fc9948a7c2b0c718e (patch)
treef4587e9556cd2342a284bfdaf648468fd7b46c85 /addons/utm/data/utm_data.xml
parentf5fe11cf1e74216afea7976d8515d4448f054dd2 (diff)
parent56835877d2417e0b7b7cd8199cdea464e12e6b6b (diff)
[MERGE][IMP] web, utm: add kanban example stages for UTM campaigns
Inspired by what is done in the task kanban of the project module, add examples of kanban stage setups for UTM campaigns, and allow users to load them. There have also been some minor changes to the campaigns view: - The helper message when there are no UTM campaigns has been changed to a more descriptive message. - All stages that existed by default (hardcoded in the data XML) have been removed except default New one. An user with a fresh database will have no stages in their kanban. The old hardcoded stages have been moved to the demo data instead, so they will still be added by default if the user installs demo data. - The ghost columns that appear in the kanban when no stages exist have been renamed to match the old stages that were hardcoded. - When the user opens the view to create a column, the 'See examples' link will appear below the 'Column title', just like in the project addon, and clicking it will open some examples specifically made for UTM campaigns. Clicking on the 'Use This For My Kanban' button will load the stages of the selected example. - A min-height property has been given to the example modal view so that the view does not change size depending on the number of rows in the ghost columns. Sub commits are present to allow tweaking the feature more that currently feasible. Task ID: 2047369 PR #48299 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/utm/data/utm_data.xml')
-rw-r--r--addons/utm/data/utm_data.xml14
1 files changed, 2 insertions, 12 deletions
diff --git a/addons/utm/data/utm_data.xml b/addons/utm/data/utm_data.xml
index 0b9a5fb62d7..cf7bafd7134 100644
--- a/addons/utm/data/utm_data.xml
+++ b/addons/utm/data/utm_data.xml
@@ -1,22 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- UTM Stage -->
+ <!-- This one is kept in data instead of demo to avoid crashing if the user starts creating campaigns
+ before stages have been created, as they are mandatory -->
<record id="default_utm_stage" model="utm.stage">
<field name="name">New</field>
<field name="sequence">10</field>
</record>
- <record id="campaign_stage_1" model="utm.stage">
- <field name="name">Schedule</field>
- <field name="sequence">10</field>
- </record>
- <record id="campaign_stage_2" model="utm.stage">
- <field name="name">Design</field>
- <field name="sequence">20</field>
- </record>
- <record id="campaign_stage_3" model="utm.stage">
- <field name="name">Sent</field>
- <field name="sequence">30</field>
- </record>
<!-- UTM Source -->
<record model="utm.source" id="utm_source_search_engine">