Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Using pyperclip to copy a field text content to clipboard in client system

Akhil P Sivan
on 3/6/15, 10:22 PM 1,030 views

I am using pyperclip.py to grab the content of a char field in just a button click and paste it anywhere, as that get copied to the clipboard. Its working perfect in the local system. While running it on server and access from client system through browser, it didn't get copied to the clipboard in client computer on button click. How can I make it copied to the clipboard of client system? please give a suggestion


Axel Mendoza

--Axel Mendoza--
| 6 7 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full time employee trying to understand what to do an how

Reach me at aekroft@gmail.com

Axel Mendoza
On 10/22/15, 2:46 AM

You need to implement your solution in the browser, not on python. Take here an example of how to copy to clipboard in js, you just need to find a way to integrate it on a widget

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Copy to Clipboard Test</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
function copyToClipboard(element) {

<body style="text-align:center">
<input id="t1" type="text"/>
<button onclick="copyToClipboard('#t1')">Copy</button>

Axel, thank you for your answer. I tried using javascript also at that time, but was unable to copy to the clipboard, let me try with one.

Akhil P Sivan
on 10/22/15, 2:50 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)


Asked: 3/6/15, 10:22 PM
Seen: 1030 times
Last updated: 10/22/15, 2:46 AM