Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4 Trả lời
10453 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Tác giả

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?

Bài viết liên quan Trả lời Lượt xem Hoạt động
7
thg 10 17
13083
2
thg 4 16
6913
3
thg 3 15
4056
0
thg 2 17
3126
0
thg 11 16
4157