Odoo Help


how to display data in custom table in a form view (Odoo)

Adnier Rosello
on 9/11/15, 10:54 AM 2,366 views

I want to make some calculations with product data and display them in a custom table, for example: I have a list of the kind: [{'name': u'Ipad', 'percentage': 45}, {'name': u'Imac', 'percentage': 20}] , how I can show this table in a form view, maybe I can do this with Qweb templates?, any example?, thanks.


Tarek Mohamed Ibrahim

--Tarek Mohamed Ibrahim--
| 5 3 7
Gîza, Egypt
--Tarek Mohamed Ibrahim--

I am an old VFP developer on ERP

I have moved to 2p since Nov-2014 and started developing with Python on Odoo.



Tarek Mohamed Ibrahim
On 9/14/15, 4:25 PM

You need to create an osv.osv_memory class with the structure

class my_calculation(osv.osv_memory):

you have to display it the same way the 'Change Password' view is shown.

Pls refer to the class 'change_password_wizard' in addons\base\res\wizard

The same data could be shown using a Qweb template, if you see them as a report data.

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

1 follower(s)


Asked: 9/11/15, 10:54 AM
Seen: 2366 times
Last updated: 9/14/15, 4:27 PM