mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-19 17:12:01 +02:00
17.0 vanilla
This commit is contained in:
parent
2e65bf056a
commit
df627a6bba
328 changed files with 578149 additions and 759311 deletions
|
|
@ -1,12 +1,10 @@
|
|||
/** @odoo-module **/
|
||||
|
||||
"use strict";
|
||||
|
||||
import tour from "web_tour.tour";
|
||||
|
||||
import { registry } from "@web/core/registry";
|
||||
import { stepUtils } from "@web_tour/tour_service/tour_utils";
|
||||
function checkLoginColumn(translation) {
|
||||
return [
|
||||
tour.stepUtils.showAppsMenuItem(), {
|
||||
stepUtils.showAppsMenuItem(), {
|
||||
content: "Settings",
|
||||
trigger: 'a[data-menu-xmlid="base.menu_administration"]',
|
||||
run: 'click',
|
||||
|
|
@ -21,26 +19,31 @@ function checkLoginColumn(translation) {
|
|||
}, {
|
||||
content: `Login column should be ${translation}`,
|
||||
trigger: `[data-name="login"] span:contains("${translation}")`,
|
||||
isCheck: true,
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
tour.register('ir_model_fields_translation_en_tour', {
|
||||
registry.category("web_tour.tours").add('ir_model_fields_translation_en_tour', {
|
||||
test: true,
|
||||
url: '/web',
|
||||
}, checkLoginColumn('Login'));
|
||||
steps: () => checkLoginColumn('Login')
|
||||
});
|
||||
|
||||
tour.register('ir_model_fields_translation_en_tour2', {
|
||||
registry.category("web_tour.tours").add('ir_model_fields_translation_en_tour2', {
|
||||
test: true,
|
||||
url: '/web',
|
||||
}, checkLoginColumn('Login2'));
|
||||
steps: () => checkLoginColumn('Login2')
|
||||
});
|
||||
|
||||
tour.register('ir_model_fields_translation_fr_tour', {
|
||||
registry.category("web_tour.tours").add('ir_model_fields_translation_fr_tour', {
|
||||
test: true,
|
||||
url: '/web',
|
||||
}, checkLoginColumn('Identifiant'));
|
||||
steps: () => checkLoginColumn('Identifiant')
|
||||
});
|
||||
|
||||
tour.register('ir_model_fields_translation_fr_tour2', {
|
||||
registry.category("web_tour.tours").add('ir_model_fields_translation_fr_tour2', {
|
||||
test: true,
|
||||
url: '/web',
|
||||
}, checkLoginColumn('Identifiant2'));
|
||||
steps: () => checkLoginColumn('Identifiant2')
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue