Odoo Help


Which are the predefined attributes of the return to a view?

Juan Formoso
on 7/7/14, 7:58 AM 489 views

I am a newbie in Odoo and I am seeing that in several models, in some functions there is a return at the end, and it uses to be a dictionary with some predefined values, like for example, type (this one uses to be in everyone).



datas = {
   'model': 'account.journal',
   'print_by': print_by,
   'sort_selection': wiz_form.sort_selection,
   'target_move': wiz_form.target_move,
   'display_currency': wiz_form.amount_currency,
   'group_entries': wiz_form.group_entries,

return {
   'type': 'ir.actions.report.xml',
   'report_name': 'nov.account.journal.xls',
   'datas': datas,

Where can I find the meaning of those attributes? Or there are not predefined and come from an inheritance? Where are they going to?

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

1 follower(s)


Asked: 7/7/14, 7:58 AM
Seen: 489 times
Last updated: 3/16/15, 8:10 AM