Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
4745 Lượt xem

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

Ảnh đại diện
Huỷ bỏ

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

Tác giả Câu trả lời hay nhất

Hello F.P.,

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

Ảnh đại diện
Huỷ bỏ

Hi,

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

How can i do it?

Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 4 23
16292
1
thg 3 15
8377
0
thg 3 15
5172
2
thg 12 22
12770
0
thg 5 22
3142