Initial commit: Core packages

This commit is contained in:
Ernad Husremovic 2025-08-29 15:20:45 +02:00
commit 12c29a983b
9512 changed files with 8379910 additions and 0 deletions

View file

@ -0,0 +1,39 @@
odoo.define('utm.campaing_kanban_examples', function (require) {
'use strict';
var core = require('web.core');
var kanbanExamplesRegistry = require('web.kanban_examples_registry');
const { registry } = require("@web/core/registry");
var _lt = core._lt;
const exampleData = {
ghostColumns: [_lt('Ideas'), _lt('Design'), _lt('Review'), _lt('Send'), _lt('Done')],
applyExamplesText: _lt("Use This For My Campaigns"),
allowedGroupBys: ['stage_id'],
examples: [{
name: _lt('Creative Flow'),
columns: [_lt('Ideas'), _lt('Design'), _lt('Review'), _lt('Send'), _lt('Done')],
description: _lt("Collect ideas, design creative content and publish it once reviewed."),
}, {
name: _lt('Event-driven Flow'),
columns: [_lt('Later'), _lt('This Month'), _lt('This Week'), _lt('Running'), _lt('Sent')],
description: _lt("Track incoming events (e.g. : Christmas, Black Friday, ...) and publish timely content."),
}, {
name: _lt('Soft-Launch Flow'),
columns: [_lt('Pre-Launch'), _lt('Soft-Launch'), _lt('Deploy'), _lt('Report'), _lt('Done')],
description: _lt("Prepare your Campaign, test it with part of your audience and deploy it fully afterwards."),
}, {
name: _lt('Audience-driven Flow'),
columns: [_lt('Gather Data'), _lt('List-Building'), _lt('Copywriting'), _lt('Sent')],
description: _lt("Gather data, build a recipient list and write content based on your Marketing target."),
}, {
name: _lt('Approval-based Flow'),
columns: [_lt('To be Approved'), _lt('Approved'), _lt('Deployed')],
description: _lt("Prepare Campaigns and get them approved before making them go live."),
}],
};
kanbanExamplesRegistry.add('utm_campaign', exampleData);
registry.category("kanban_examples").add("utm_campaign", exampleData);
});

View file

@ -0,0 +1,12 @@
.o_kanban_renderer.o_utm_kanban {
--KanbanRecord-width: #{380px - 2 * ($grid-gutter-width * .25)};
--KanbanGroup-padding-h: #{$grid-gutter-width * .25};
--KanbanGroup-padding-bottom: #{$grid-gutter-width};
#o_utm_actions {
> a {
padding: var(--KanbanRecord-gap-inner-v) var(--KanbanRecord-padding-h);
white-space: nowrap;
}
}
}