Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
2780 Представления

Hello,

using Odoo 13 CE.

I'm trying to extend the Kiosk Mode view, but it doesnt work.


\my_module\static\src\xml\attendance.xml:

(When I post the code here it gets invisible all the time, so I uploaded it on codepile.net)

https://www.codepile.net/pile/QKPjPgYj


\my_module\static\src\js\attendance.js:

odoo.define("my_module.load", function(require) {
"use strict";
var ajax = require("web.ajax");
var core = require("web.core");
var QWeb = core.qweb;
ajax.loadXML(
"/my_module/static/src/xml/attendance.xml",
QWeb
);
});

\my_module\views\assets.xml:

(When I post the code here it gets invisible all the time, so I uploaded it on codepile.net)

https://www.codepile.net/pile/jXOjLlRM


The assets.xml is added in the manifest of corse.

Аватар
Отменить
Лучший ответ

Hello Jan Krähling,

Here is another way to add a custom message in the “HrAttendanceGreetingMessage” template I can check in odoo base in this template already added one div for the custom message. and this custom message menage odoo js code you can see the code below file
path: “addons/hr_attendance/static/src/js/greeting_message.js.

In this file, you can the two methods for message one is welcome_message() second is farewell_message() in this method custom message is handled in odoo base.

As per your requirement, you can add a custom message in this method.

Here I have attached a screenshot also I have added a custom message to the “HrAttendanceGreetingMessage” template.
https://www.awesomescreenshot.com/image/21932786?key=75335269306a203e205f4918199e5af1

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari


Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
апр. 21
3186
2
апр. 23
8492
0
июн. 21
4
0
июн. 21
5
1
янв. 21
6704