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

Passing session_id from HTML form possible bug? OERP7

By
mike
on 7/19/13, 10:05 AM 617 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.

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

0 follower(s)

Stats

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