How to read information from other table?

Hello!
I have to tables: Products and Stocks, the relation is one to many. I created a table that reads all the information from Stocks, but if I want to view any stock with the Detail option, the information from products is not shown. The table is shown correct, but when I press view the information is not shown:


Note: Products has the information of: Image, Number, Name. Stocks has the information of: Product Id, Quantity and Price.
This is how my code look like:
info.AddField(“NAME”, “name”, db.Varchar).FieldJoin(types.Join{
Table: “products”,
Field: “product_id”,
JoinField: “id”,
})

detail.AddField(“NAME”, “name”, db.Varchar).FieldJoin(types.Join{
Table: “products”,
Field: “product_id”,
JoinField: “id”,
})

Any help or advise would help me a lot, thank you very much in advance!