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:
- CRM
- e-Commerce
- Бухгалтерия
- Склад
- PoS
- Project
- MRP
Этот вопрос был отмечен
1
Ответить
2927
Представления
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"] }
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
РегистрацияRelated Posts | Ответы | Просмотры | Активность | |
---|---|---|---|---|
|
0
сент. 22
|
2450 | ||
|
4
мая 21
|
29029 | ||
|
2
нояб. 23
|
9017 | ||
|
0
июл. 20
|
3122 | ||
|
1
июн. 23
|
2531 |