Some one can told me which is the correct way to add js library to a odoo v16 website via custom addon ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
Hi,
Put the JavaScript file under module_name -> static -> src-> js folder.
You can create the directory if you haven’t.
And in manifest,
'assets': {
'web.assets_frontend': [
'module_name/static/src/js/file_name.js’]
}
Regards
Hi Cybrosys,
As you said, I added JavaScript and CSS custom module files to the manifest file, but none of them are added, and they don't work!
How should I fix it? Or should I check if they are added correctly or not?
'assets': {
'web.assets_frontend': [
'energy_website/static/src/scss/b_theme.scss',
'energy_website/static/src/scss/b_style.scss',
'energy_website/static/src/js/b_script.js',
'energy_website/static/src/js/b_myscript.js'
]
}
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
1
ส.ค. 25
|
3123 | ||
|
1
เม.ย. 24
|
2066 | ||
|
0
ม.ค. 24
|
1656 | ||
|
1
ก.ย. 23
|
3078 | ||
|
2
เม.ย. 23
|
5219 |