Skip to Content
Menu
This question has been flagged
1 Reply
1725 Views

Dear all,

Well, I am a rookie in odoo, and still crawling about underlying tech in odoo. 

Anyway, I need to give an api response from _rec_name module, I have had read about this forum but didn't get a clear answer about this. Can I make a dictionary as my _rec_name field?

Thanks!

Avatar
Discard
Best Answer

Hi,

Is the question is about how to access the value of rec_name of a model ? If yes, you can call record.display_name which will return the rec_name or or user defined name_get value for the model.

Rec Name in Odoo: https://www.youtube.com/watch?v=d_cyPsVc7vg

Odoo Environment:  https://www.youtube.com/watch?v=0mHM_EPT6Fw

Thanks

Avatar
Discard