Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3038 มุมมอง

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?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ต.ค. 24
1459
Manage returns & refunds แก้ไขแล้ว
2
เม.ย. 21
26585
0
ธ.ค. 18
4872
0
พ.ค. 18
2498
1
มี.ค. 15
5493