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

hello

I'm trying to playing around this two method but i'm having some difficulties like,

> when name_get() and name_search() get called?!

> Does it need to call it's super() ?

> and In which particular case use right method from this two?

i'm new to odoo

thanks for you help :)

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Learn – Overriding name_get method in Odoo 8 with Example - Odoo Technical

http://odootechnical.com/overriding-name_get-method-in-odoo-8/

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Those methods are called by Odoo, probably you will never end up calling those by yourself. Those methods are called by some widgets like many2one to get the display name of the record.

อวตาร
ละทิ้ง
ผู้เขียน

ok thanks for your answer. but can you give me more precise answer about when these method called exactly by odoo!

what it's exactly what you need?

Related Posts ตอบกลับ มุมมอง กิจกรรม
7
ต.ค. 17
13082
2
เม.ย. 16
6912
3
มี.ค. 15
4051
0
ก.พ. 17
3120
0
พ.ย. 16
4155