diff options
| author | dmonzonis <mod@odoo.com> | 2020-04-02 07:22:37 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2020-04-30 09:06:26 +0000 |
| commit | 897724e5c78101b68091e0386285598a249edca9 (patch) | |
| tree | 77a296c8afa1e9daceff84cd6beb9786040c7c3c /addons/project/static/src | |
| parent | f5fe11cf1e74216afea7976d8515d4448f054dd2 (diff) | |
[IMP] web: Allow customization of text in button to apply kanban example
Before this commit, the only module that allows for selecting and
applying kanban column examples is the project module, for its tasks
kanban, so the message in the button to apply the example is hardcoded
as "Use This For My Project".
After this commit, the text in this button can be customized to make
this more generic, so a different module could use a different message
like "Use This For My Campaigns". If no text is specified, a generic
"Use This For My Kanban" is used instead.
Usage
```
kanbanExamplesRegistry.add('utm_campaign', {
applyExamplesText: _lt("Use This For My Campaigns"),
```
Task ID: 2047369
PR #48299
Diffstat (limited to 'addons/project/static/src')
| -rw-r--r-- | addons/project/static/src/js/project_task_kanban_examples.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/project/static/src/js/project_task_kanban_examples.js b/addons/project/static/src/js/project_task_kanban_examples.js index 72f09478df6..1717ae49778 100644 --- a/addons/project/static/src/js/project_task_kanban_examples.js +++ b/addons/project/static/src/js/project_task_kanban_examples.js @@ -39,6 +39,7 @@ function escFormat() { kanbanExamplesRegistry.add('project', { ghostColumns: [_lt('New'), _lt('Assigned'), _lt('In Progress'), _lt('Done')], + applyExamplesText: _lt("Use This For My Project"), examples:[{ name: _lt('Software Development'), columns: [_lt('Backlog'), _lt('Specifications'), _lt('Development'), _lt('Tests'), _lt('Delivered')], |
