Master - Detail relationship in record templates

Master - Detail relationship in record templates

Hi,

We need to make a record template to create a form similar to an invoice o estimate, where we have a master form and a detail form that are linked by a field, that is:

Master Form: Prebill
Detail Form: Time Entry

The Time Entry form contains a field called Prebill which contains the ID of the Prebill form record . How do I establish the relation and filter the registers of the Time Entry form by means of the Prebill field associated with the Prebill form, in such a way that for each Prebill the registers of the corresponding Time Entry form are visualized?

Regards
Felipe Faccinetto