-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] Cosntruction: Adding knowledge tour
Addding a purple dot pointing to the knowledge app. task-4056239
- Loading branch information
Showing
4 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# -*- coding: utf-8 -*- | ||
# Part of Odoo. See LICENSE file for full copyright and licensing details. | ||
|
||
from odoo.tests import HttpCase | ||
from odoo.tests.common import HttpCase | ||
|
||
def testing(): | ||
test = HttpCase() | ||
test.start_tour("/", 'knowledge_tour', login="admin") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { _t } from "@web/core/l10n/translation"; | ||
import { registry } from "@web/core/registry"; | ||
import { stepUtils } from "@web_tour/tour_service/tour_utils"; | ||
|
||
import { markup } from "@odoo/owl"; | ||
|
||
registry.category("web_tour.tours").add("knowledge_tour", { | ||
url: "/web", | ||
rainbowManMessage: _t("Congrats, best of luck catching such big fish! :)"), | ||
sequence: 0, | ||
steps: () => [ | ||
stepUtils.showAppsMenuItem(), | ||
{ | ||
isActive: ["auto"], | ||
trigger: '.o_app[data-menu-xmlid="knowledge.knowledge_menu_root"]', | ||
content: markup( | ||
_t( | ||
"Ready to boost your sales? Let's have a look at your <b>Pipeline</b>." | ||
) | ||
), | ||
position: "bottom", | ||
run: "click", | ||
}, | ||
], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<odoo noupdate="1"> | ||
<record id="combo_burger_choice_line" model="product.combo.item"> | ||
<field name="combo_id" ref="combo_burger_choice"/> | ||
<field name="product_id" ref="product_product_36"/> | ||
</record> | ||
<record id="combo_drink_choice_line" model="product.combo.item"> | ||
<field name="combo_id" ref="combo_drink_choice"/> | ||
<field name="product_id" ref="product_product_39"/> | ||
</record> | ||
<record id="combo_burger_choice_line_1" model="product.combo.item"> | ||
<field name="combo_id" ref="combo_burger_choice"/> | ||
<field name="product_id" ref="product_product_52"/> | ||
</record> | ||
<record id="combo_drink_choice_line_1" model="product.combo.item"> | ||
<field name="combo_id" ref="combo_drink_choice"/> | ||
<field name="product_id" ref="product_product_53"/> | ||
</record> | ||
</odoo> |