コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
4774 ビュー

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
16314
1
3月 15
8380
0
3月 15
5203
2
12月 22
12787
0
5月 22
3147