Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Actually, I used the qrcode package. It generates a qrcode which is a PIL object.
Then I want to save the qrcode image to the disk through the save() method.
With the code "img.save('abc.png')" (img is a variable of PIL object).
And odoo returned me "IOError: [Errno 13] Permission denied: 'abc.png'".
But I have already used the command "chmod -R 777 openerp/" and "chown -R odoo:odoo openerp/" to open the permission. Also the home directory of the linux user odoo who run the odoo service. But it seems didn't take effect.
And I tried the code in the SHELL:
Python 2.7.9 (default, Nov 11 2015, 17:17:16)
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import qrcode
>>> img = qrcode.make('something')
It can save the qrcode to the home directory of the linux user odoo successfully.
I have no idea about what's wrong with my developing module.
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 platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 11/23/15, 9:43 PM|
|Seen: 719 times|
|Last updated: 11/23/15, 9:43 PM|