Odoo Help


Passing session_id from HTML form possible bug? OERP7

on 7/19/13, 10:05 AM 1,079 views

In working on a custom module I needed to add some fields to the existing upload_attachment method. I copied it from main.py/Binary. One field I wanted to add session_id seems to cause a conflict in werkzeug.

{"message": "OpenERP WebClient Error", "code": 300, "data": {"debug": "Client Traceback (most recent call last):\n File \"/home/think/openerp/server/openerp/addons/web/http.py\", line 277, in dispatch\n r = method(self, **self.params)\nTypeError: upload_attachment() takes exactly 9 arguments (8 given)\n", "type": "client_exception"}}

This error is generated by werkzeug.exceptions.InternalServerError from within a catch-all except Exception block in http.py so it isn't easy to trace it back further. The problem is rectified if I change the name of the field to sid. It looks like a bug to me but before I report it I wanted to see if anybody else can shed light on this weirdness.

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 7/19/13, 10:05 AM
Seen: 1079 times
Last updated: 3/16/15, 8:10 AM