I've been told to change the values on the left column of the Project/Tasks gantt view. The texts have become to long so I need to enlarge the column. How can I do it? Where can I do it?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
This question is quite old but I think the answer is still relevant. v11 here. And of course, the web_gantt module is only available in Enterprise Edition so it is not available in Community Edition.
So Odoo uses dhtmlxGantt which is a JS framework. One way to set the tasks (left) column width is to create a new module, and in the JavaScript inherit (include) 'web_gantt.GanttRenderer' and override _configGantt(), call super first and then set this property to a higher value:
gantt.config.grid_width = 250;
Be aware that this will change ALL gantt charts across Odoo. Unless you "extend" instead of "include" in your JS module and have your specific view load your specific JS module bit it this is more complicated and a bit off topic.
See web_gantt/static/src/js/gantt_renderer.js for more info.
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
2
thg 3 15
|
8669 | ||
|
0
thg 3 15
|
2260 | ||
Using Project/Gantt view ?
Đã xử lý
|
|
3
thg 2 24
|
11884 | |
|
4
thg 1 24
|
23412 | ||
Attrs attribute
Đã xử lý
|
|
2
thg 1 24
|
2610 |
I'd like to do this also, with v10 Enterprise.