简体   繁体   中英

Print view form like from browser?

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:

在此处输入图片说明

<input type="button" value="click" onclick="window.print();">

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM