Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
4757 Переглядів

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?

Related Posts Відповіді Переглядів Дія
4
квіт. 23
16300
1
бер. 15
8378
0
бер. 15
5190
2
груд. 22
12772
0
трав. 22
3143