44 lines
1.4 KiB
JavaScript
44 lines
1.4 KiB
JavaScript
import { patch } from "@web/core/utils/patch";
|
|
import { accountTourSteps } from "@account/js/tours/account";
|
|
import { stepUtils } from "@web_tour/tour_utils";
|
|
import { _t } from "@web/core/l10n/translation";
|
|
|
|
patch(accountTourSteps, {
|
|
goToAccountMenu(description="Open Accounting Menu") {
|
|
return stepUtils.goToAppSteps('accountant.menu_accounting', description);
|
|
},
|
|
onboarding() {
|
|
return [
|
|
{
|
|
trigger: ".o_widget_account_onboarding .fa-circle",
|
|
},
|
|
{
|
|
trigger: "a[data-method=action_open_step_fiscal_year]",
|
|
content: _t("Set Periods"),
|
|
run: "click",
|
|
},
|
|
{
|
|
trigger: "input[data-field=opening_date]",
|
|
run: "edit 2025-01-01",
|
|
},
|
|
{
|
|
trigger: "button[name=action_save_onboarding_fiscal_year]",
|
|
content: _t("Save Fiscal Year end"),
|
|
run: "click",
|
|
},
|
|
];
|
|
},
|
|
newInvoice() {
|
|
return [
|
|
{
|
|
trigger: ".o_widget_account_onboarding .fa-check-circle",
|
|
},
|
|
{
|
|
trigger: "button[name=action_create_new]",
|
|
content: _t("Now, we'll create your first invoice (accountant)"),
|
|
run: "click",
|
|
},
|
|
];
|
|
},
|
|
});
|