Hi community , i am trying to add a custom button to print a sales invoice report with a default printformat selected so the user can bypass the report format selection page.
Ill need to pass all arguments used by the default print button:
Doc type:
name :
and so on.
I found this print it function which i suppose is the default used for printing. any advice how to use it in a custom button?