Hi,
In Odoo, if you want to show data from another model (like inventory) in your addon's list view, you don’t need a selection field—you should instead use a related field or a Many2one relation.
Example:
from odoo import models, fields
class MyModel(models.Model):
_name = "my.model"
_description = "My Custom Model"
product_id = fields.Many2one("product.product", string="Product")
This code defines a new custom model in Odoo called my.model. Inside it, you added a field named product_id, which is a Many2one relation to the product.product model (the standard Odoo model for products). That means in your model, each record can be linked to one specific product, and in the form or list views, Odoo will show it as a dropdown/searchable field with all available products. The string="Product" part is just the label that will be shown to users in the UI.
Hope it helps.