Copy Quote is not working

Hi EveryOne,

I have created record.js to hide pdf templates based on condition and allowing users to edit the quote based on user type.  This functionality is working but copy quote functionality is not working now( not able to copy the record).

Does anyone knows how to enable this copy functionality using record.js in quotes module?