Odoo Help


For any report, how do I know which model is .sxw acting on?

Luis Leiva
on 6/3/13, 9:50 PM 1,462 views

I am trying to add somethings to the Overdue report but I don't really know in which model is the report acting.

I mean, for example, I want to change this lines: [[ line['name'] ]] [[ line['ref'] ]]

I have this lines and assume name and ref refer to fields on a model, how do I know which model is it?


Hi ,

you can have several ways to check out , but first you have to know which model you are workng on by activate the developer mode.

Goto (Top right) user name-> "About OpenERP" , when dialog comes out click "Activate the developer mode" , then after the page refresh you can find the extra dropdown menu in your screen on the form ,from the drop down you can use , manage views or edit form option , and take a look at the object , it should be the object that point to the report which you access it from "FORM" . The best is when you select the dropdown options is from the "FORM" view not the "TREE" view . it is easier to understand.

Until you are more familiar with the framework , you should be able to tell easily which module you are working on .


Thanks for the reply. In the case of the overdue report, for example, you print it from a partner view but the model corresponding for the report happened to be account.move.line. I found it out by searching the fields used but it must be defined somewhere. Probably in the addon .py, but then again, I don't know how to know which addon defines the report.

Luis Leiva
on 6/4/13, 12:05 PM

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: 6/3/13, 9:50 PM
Seen: 1462 times
Last updated: 3/16/15, 8:10 AM