Question

I need to create button that would open print option (and option to save in pdf format) for the current view form. Now it is possible to do so by going into print options in browser (like in chrome). But can I do it to open such print option directly by pressing button in openerp form?

Something like:

<button name="Print"/> 

and it would open same thing that is opened when you go to browser options and choose print.

I found something similar in point of sale module when you press Validate button it opens that menu for check to pay. But haven't figured out how it is done. Do I need to use javascript /jQuery for that or something?

For example to open something like this:

enter image description here

Was it helpful?

Solution

<input type="button" value="click" onclick="window.print();">
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top