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

Hi there,


I've been using Odoo Studio to create reports since Odoo 15. In previous versions, when I created dynamic tables, the report automatically displayed alternate colors for each line in the tables. However, this feature no longer exists when I create a new report in Odoo 17, making it difficult to read large tables.


If I create a new dynamic table:

- In a report created in Odoo 17, I don't have alternate colors.

- In a report created in Odoo 16, I still have the alternate colors.

I guess old reports load some other CSS (or other things) but I can't find them. 
Any idea on how to recreate alternate colors on reports?


FYI: The same xml lines show alternate colors on a report previously created on Odoo 16 but don't show alternate colors on Odoo 17:


 

   

     

   

   

     

   

 

Title

        name

       

     

```



Thanks

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

Hi there!


Thank you for your response. Do you have an example of CSS code to achieve alternate row colors? I'm not very familiar with CSS and I can't seem to find a reference for a report that has this style in its XML. Thanks for your assistance!

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

Hi,

To add alternate row colors to a report in Odoo Studio, open the report and access the XML Editor. Add inline CSS for alternate row colors. 

For example, click the marked button to open the XML editor, and we can add style to the XML and save it to edit the report.


Hope it helps.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 7 22
101
1
thg 3 24
2751
0
thg 11 19
8
Custom Report V17 Đã xử lý
1
thg 4 24
1725
2
thg 3 24
4615