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

def exp_authenticate(db, login, password, user_agent_env):

 I have been using this 

from odoo.service import common

common.RPC_VERSION_3 = {

'server_version': 14,

'server_version_info': odoo.release.version_info,

'server_serie': odoo.release.serie,

'protocol_version': 1,

}

def exp_version():

return common.RPC_VERSION_3

common.exp_version = exp_version


but the method never been trigger

아바타
취소

same way you extend regular modules. import / override. i modified send_file function in

http.py end of file make sure you assign it like this:

from openerp import http

def send_file( .... )

# code here

http.send_file = send_file

작성자 베스트 답변

Hello F.P.,

Thank you very much for answering, I got success by doing that.

아바타
취소

Hi,

I need to add optional param in exp_authenticate method. i can't able to understand above solution.

How can i do it?

관련 게시물 답글 화면 활동
4
4월 23
16302
1
3월 15
8378
0
3월 15
5193
2
12월 22
12772
0
5월 22
3143