Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

Hello,


I am trying to add custom messages to inform our users when they check-in or check-out but there is never specified how does JS inheritance work in Odoo 15 or which files are required and what enheritance is needed...

Ive created custom module with js file, and views inheriting the template and linking my js file, but it just gives me a blank odoo page .. 

this is my views xml file

<odoo><templateid="hr_attendance_welcome_asset_ext"inherit_id="hr_attendance.hr_attendance_action_greeting_message">    <xpathexpr="."position="inside">        <scripttype="text/javascript"                src="/hr_attendance_welcome/static/src/js/greeting_message.js">script>    xpath>template>odoo>

odoo doesnt allow to add the code correctly so ignore mistakes.

also if you can give me a quick overview or help how to inherit the JS file, it would be highly appreciated, the file is greeting_message.js

Than you

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
mar 25
4186
0
wrz 23
2766
2
sie 23
2036
0
lut 23
2282
3
lut 25
14309