[v13] Restricting custom print formats to a company (in multicompany setup)

Hi,

I have a multi-company setup, and each company has their custom print format for a doctype (say, sales invoice). I want to restrict the print formats to respective companies.

So far I haven’t been able to find a way to do that.

As an alternative, I tried restricting a user to a particular print format, but it didn’t work, as all the print formats are visible. (shown below)

image
Any pointers on how I can achieve this?

Thanks
Nasir