Link a POS for custom Doctype

I made a new Doctype called test in which there is a field called month and a field called year.

When the person clicks on the DocType name, I need to show the dashboard such that both the month and the year are shown for every entry.

I saw pos_invoice_list.html and understood how that is done. But how do I link my pos file to my doctype?

Share mockups if you can of how you want it to look.
You can use HTML field in the doctype and build your custom html using js templates (that is how pos is built)