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

Hello guys,

In Reporting->Point of sale->Sales analysis, I have great graph.

At this place, what would be the easier way to get « pie chart » by default instead of « table mode »?

(can not insert image here)

Thanks


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

Hi Pascal,

The default type of the graph is a pie chart

Bt in the POS , they changed the graph type as "pivot"  or  "bar",

For example:

<graph string="Point of Sale Analysis" type="pivot"> .

So you can change this to:

<graph string="Point of Sale Analysis" type="pie">

Ảnh đại diện
Huỷ bỏ
Tác giả

thanks, I try it soon!

But this not work for me in odoo 9

Agreed that this doesn't work in Odoo 9

Câu trả lời hay nhất

if type attribute doesn't work for you try to add this context in your window action

<field name="context">{ 'graph_mode': 'pie' }</field>

this worked for me

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 2 23
1883
0
thg 9 20
4066
0
thg 3 15
3437
3
thg 3 15
11227
1
thg 2 24
1955