Skip to content

Commit

Permalink
[ADD] Cosntruction: Adding knowledge tour
Browse files Browse the repository at this point in the history
Addding a purple dot pointing to the knowledge app.

task-4056239
  • Loading branch information
jaeschwa committed Aug 19, 2024
1 parent 46b37e5 commit 95ff2ca
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 1 deletion.
9 changes: 9 additions & 0 deletions construction/__init__.py
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")
8 changes: 7 additions & 1 deletion construction/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@
'demo/planning_recurrency.xml',
'demo/planning_slot.xml',
],
'pre_init_hook': 'testing',
'assets': {
'web.assets_backend': [
'construction/static/src/js/my_tour.js',
]
},
'license': 'OPL-1',
'images': ['images/main.png'],
}
}
25 changes: 25 additions & 0 deletions construction/static/src/binary/js/my_tour.js
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",
},
],
});
19 changes: 19 additions & 0 deletions industry_restaurant/data/pos_combo_item.xml
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>

0 comments on commit 95ff2ca

Please sign in to comment.