跳至內容
選單
此問題已被標幟
1 回覆
2939 瀏覽次數

  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?


頭像
捨棄
最佳答案

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
4
7月 19
10345
0
12月 18
3494
1
3月 22
13587
1
6月 21
6720
2
12月 19
3162