Hello, I have a Many2one field that relates labs to drugs.
Each medicine must have its associated laboratory.
Related models are Medicines and Laboratories The problem is that I need the dropdown not to show me the name of the model and the ID of the registered laboratory.
I need you to show me the lab name field.
I am using Odoo Studio Online, the free version.
How should I add or edit those lines of code?
Hi,
If there is no name field in the newly added model, Use _rec_name = 'some_field', in your model
Or you can define the name_get function for the model.
Hope it helps.