콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3429 화면

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.

아바타
취소
관련 게시물 답글 화면 활동
1
6월 23
5433
0
3월 20
3220
0
3월 15
5387
0
3월 25
1288
3
6월 24
3569