Odoo Help

Welcome!

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.

0

500 Inernal Server Error

By
Brad Ridgeway
on 9/9/15, 6:35 PM 802 views

Community,

I am getting this server error when trying to download a file from a secure portal page as a portal user? The download works when i am logged in as Administrator.


Internal Server Error

{"message": "Odoo Server Error", "code": 200, "data": {"debug": "Traceback (most recent call last):\n File \"/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py\", line 69, in wrap\n return f(*args, **kwargs)\n File \"/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py\", line 1084, in saveas\n res = Model.read(cr, uid, [int(id)], fields, context)[0]\n File \"/usr/lib/python2.7/dist-packages/openerp/api.py\", line 241, in wrapper\n return old_api(self, *args, **kwargs)\n File \"/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_attachment.py\", line 318, in read\n return super(ir_attachment, self).read(cr, uid, ids, fields_to_read, context=context, load=load)\n File \"/usr/lib/python2.7/dist-packages/openerp/api.py\", line 241, in wrapper\n return old_api(self, *args, **kwargs)\n File \"/usr/lib/python2.7/dist-packages/openerp/models.py\", line 3125, in read\n result = BaseModel.read(records, fields, load=load)\n File \"/usr/lib/python2.7/dist-packages/openerp/api.py\", line 239, in wrapper\n return new_api(self, *args, **kwargs)\n File \"/usr/lib/python2.7/dist-packages/openerp/models.py\", line 3171, in read\n values[name] = field.convert_to_read(record[name], use_name_get)\n File \"/usr/lib/python2.7/dist-packages/openerp/models.py\", line 5554, in __getitem__\n return self._fields[key].__get__(self, type(self))\n File \"/usr/lib/python2.7/dist-packages/openerp/fields.py\", line 810, in __get__\n return record._cache[self]\n File \"/usr/lib/python2.7/dist-packages/openerp/models.py\", line 5910, in __getitem__\n return value.get() if isinstance(value, SpecialValue) else value\n File \"/usr/lib/python2.7/dist-packages/openerp/fields.py\", line 55, in get\n raise self.exception\nAccessError: ('AccessError', u'The requested operation cannot be completed due to security restrictions. Please contact your system administrator.\\n\\n(Document type: ir.attachment, Operation: read)')\n", "exception_type": "except_osv", "message": "AccessError\nThe requested operation cannot be completed due to security restrictions. Please contact your system administrator.\n\n(Document type: ir.attachment, Operation: read)", "name": "openerp.exceptions.AccessError", "arguments": ["AccessError", "The requested operation cannot be completed due to security restrictions. Please contact your system administrator.\n\n(Document type: ir.attachment, Operation: read)"]}}


Thanks

2

Axel Mendoza

--Axel Mendoza--
10228
| 7 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 9/9/15, 10:00 PM

You need to add permissions for model ir.attachment at least to read for the group portal assigned to the user

1

aneesh ATEES Infomedia Pvt Ltd

--aneesh ATEES Infomedia Pvt Ltd--
765
| 5 1 6
Thrissur, India
--aneesh ATEES Infomedia Pvt Ltd--

9995074692

aneesh ATEES Infomedia Pvt Ltd
On 9/10/15, 1:06 AM

hi

Add permission read |write  to the user.if it not solved comment the error

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)

Stats

Asked: 9/9/15, 6:35 PM
Seen: 802 times
Last updated: 9/10/15, 1:06 AM