Add Line Item to Custom Module Just Like Quote Line Item

Hello All,

We are using Sugarcrm 8.2 Ent Edition

We require a below functionality 

There is a custom module and we need to add line item panel on record view 

Does anyone have any reference or any code that we can attach line item to module