Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2782 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
1
Apr 21
3187
2
Apr 23
8494
0
Jun 21
4
0
Jun 21
5
1
Jan 21
6704