Understanding the Rare ORM Method name_get() in Odoo 19
When working with Odoo development, most developers frequently use ORM methods like create() , write() , search() , and unlink() . However, Odoo also provides several lesser-known ORM methods that quietly power many UI behaviors behind the scenes. One such important method is name_get() . Even though many developers rarely touch it, this method becomes extremely important when dropdown labels, breadcrumbs, chatter references, or Many2one fields start displaying incorrect or confusing values. What is name_get() in Odoo? The name_get() method defines how a record should appear as a readable label inside the Odoo interface. Odoo uses it in places like: Many2one dropdowns Breadcrumbs Chatter mentions Smart buttons Search popups RPC calls and backend references The method returns a list of tuples in this format: [(record_id, display_name)] Example: [(1, 'Azure Interior'), (2, 'Deco Addict'), (3, 'Agrolait')] Default Behavior of name_get() If you do not overri...