Customizing how records are searched

The Defining the Model representation and order recipe in Chapter 4, Creating Odoo Add-On Modules, introduced the name_get() method, which is used to compute a representation of the record in various places, including in the widget that's used to display Many2one relations in the web client.

This recipe will show you how to search for a book in the Many2one widget by title, author, or ISBN by redefining name_search.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset