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

Hi. I am working with Odoo enterprise online V16.4+e

I have two pages where on page B I want to get the city instead of the desc(name) from page A when adding a new many2one. By default, it will always be the desc that will be shown. Is it possible to do this? Thanks in advance!



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

Hi,
Suppose if the many2one is displaying data from model abc and value from field_1 in the model and if you need to change it to show value from field_2, just you need to change the rec_name of the model abc or change the name_get method of that model.

* Odoo Name Get Function
* Rec Name for the models

Thanks

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

Hi, Thanks for your answer. Anyway I am working with Odoo enterprise web and doing the stuffs with studio, where can I find the file where the rec located? Is it in View, Model or somewhere else? Thanks!

Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 2 24
1666
1
thg 2 24
1034
1
thg 2 24
1116
2
thg 2 25
5958
1
thg 12 24
1491