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.


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

Luis Leiva
on 6/3/13, 9:50 PM 940 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?

On 6/4/13, 3:56 AM

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

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

0 follower(s)


Asked: 6/3/13, 9:50 PM
Seen: 940 times
Last updated: 3/16/15, 8:10 AM