Skip to Content
Menu
This question has been flagged
1 Reply
1984 Views

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.

Avatar
Discard
Best Answer

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


Avatar
Discard
Related Posts Replies Views Activity
1
Apr 21
2305
2
Apr 23
6963
0
Jun 21
4
0
Jun 21
5
1
Jan 21
5647