İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
2818 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Nis 21
3208
2
Nis 23
8510
0
Haz 21
4
0
Haz 21
5
1
Oca 21
6762