I read from cybrosys that we can either use the cdnjs link as an src attribute in the script tag or pull chart.js from git and add it to manifest. I registered cdnjs link to templates and it appears inside head tag, however it doesn't update my charts. Maybe that is because of another link below which calls built-in old chartjs. What about the second option, I don't know how to add chart.js to manifest. (as external dependency? if yes, how?)
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
1
ตอบกลับ
2933
มุมมอง
You can add the latest cdn link for the chart.js library in the assets path, So it will update the library as it updates.
Here is an example showing adding the cdnlink in manifest:
ie:
'assets': {
'web.assets_backend': [ "https://cdn.jsdelivr.net/npm/chart.js"] }
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
0
ก.ย. 22
|
2454 | ||
|
4
พ.ค. 21
|
29029 | ||
Call a method while upgrading a module
แก้ไขแล้ว
|
|
2
พ.ย. 23
|
9019 | |
|
0
ก.ค. 20
|
3123 | ||
|
1
มิ.ย. 23
|
2531 |