i am giving file permission to openerp user. It is corrected
How to create QR bar automatically for my module?
Question
I am trying to create user module with QR id generation. I have created my module. I want add QR code generation in my module automatically. Tell me, what do I do?
python method(part of the python coding):
def barcode(self, cr, uid, ids, context=None):
qr = QRCode(version=20, error_correction=ERROR_CORRECT_L)
qr.add_data("http://sample:/")
qr.make()
im = qr.make_image()
im.save("sample.png")
while i am running my application the following error is shown.
File "/usr/local/lib/python2.7/dist-packages/qrcode/image/pil.py", line 29, in save
self._img.save(stream, kind)
File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 1433, in save
fp = __builtin__.open(fp, "wb")
IOError: [Errno 13] Permission denied: 'sample.png'
how to clear permission error
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow