Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2953 Lượt xem

  I want to show all week of year in one2many field odoo to compute some indicator per week, (like the image below).


  I can't declare 52 fields! and compute each one! so i need to declare the week field as array.

  how can i do that?


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Okay reverse your logic, Make your weeks as data, not column names. columns are static here and adding through JS would not be a good method. So I recommend swapping your axis and add weeks as data according to the year.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 7 19
10373
0
thg 12 18
3518
1
thg 3 22
13611
1
thg 6 21
6744
2
thg 12 19
3183