Odoo Help


How do I embed a graph view in a form view?

Alex Malone
on 7/3/13, 7:16 AM 1,306 views

Hi folks,

So, in my system, I have a couple of entities. One is called an "account" which can represent a company, contact or whatever else you want. The other is called the activity log, which is an SQL view that collates all activities within the system (such as calendar events, opportunities, leads etc).

The activity log is linked to accounts by a many2one field called account_id.

What I want to do is to display a graph within the accounts form view that shows relevant activities per month, grouped by type of activity. So, the graph would show months along the x-axis, whilst the bars themselves would show a count of each activity type for that month.

The bit I am mainly struggling with is how to display a graph within a form view. I can't find any examples elsewhere so it may not be possible but the documentation states that since OpenERP 4.1, it has been possible to do this.

Does anyone know how?

Many thanks

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 platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 7/3/13, 7:16 AM
Seen: 1306 times
Last updated: 3/16/15, 8:10 AM