コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2781 ビュー

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


アバター
破棄
関連投稿 返信 ビュー 活動
1
4月 21
3187
2
4月 23
8494
0
6月 21
4
0
6月 21
5
1
1月 21
6704