Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
3014 Ansichten

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

E.G.:

...

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?

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Okt. 24
1437
2
Apr. 21
26576
0
Dez. 18
4857
0
Mai 18
2479
1
März 15
5467