跳至內容
選單
此問題已被標幟
1 回覆
1076 瀏覽次數

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!



頭像
捨棄
最佳答案

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

頭像
捨棄
作者

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!

相關帖文 回覆 瀏覽次數 活動
4
2月 24
1614
1
2月 24
1001
1
2月 24
1105
2
2月 25
5916
1
12月 24
1467