Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Creating Graph View Issue

on 3/9/14, 1:02 PM 1,773 views

At Point of Sale Orders, I wanted to add a Graph View where it can be grouped by (Shop)

I've successfully added the field 'shop_id' to the tree view, then to the group by at search view. through inherited views for each.

I've created a graph view for the object: pos.order

Architecture: <graph string="POS Orders" type="bar"> <field name="shop_id"/> <field name="amount_total" operator="+"/> </graph>

Later I've added a graph view in the action, so the graph view button appears right after the list view (tree)

problem is ...

The graph appears without proper data.

Par type shows 0 sales, though there are posted orders Pie type shows NaN%

regardless of trying to group by other fields.

I noticed that this problem also happens at the account.account model graph view

Could you please help me with this case ?

I'm not sur the operator attribute work on >v7 ):

Thomas Fossoul
on 10/28/14, 6:16 AM

in this line you specified <field name="amount_total" operator="+"/>

what is the use of operator ="+"

on 7/14/16, 9:28 AM
On 7/14/16, 9:25 AM

 in this line you specified <field name="amount_total" operator="+"/> 

what is the use of operator ="+" 

On 11/3/14, 9:44 AM

I hope that, if you want to group by shop_id, check if the following code works,


<field name="shop_id"/>


<field name="shop_id" group="True"/>

i.e., Group by shop_id... We have to add the attribute group set to True.



Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 3/9/14, 1:02 PM
Seen: 1773 times
Last updated: 7/14/16, 9:25 AM