mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-20 07:52:04 +02:00
add rpc addon and fix 19.0 compatibility issues
- add missing rpc addon (auto_install, required by server_wide_modules)
- add __init__.py -> init.py symlink for odoo package importability
- re-export image_process from odoo.tools (needed by web_editor)
- add backward-compatible slug/unslug functions in http_routing
🤖 assisted by claude
This commit is contained in:
parent
2d3ee4855a
commit
3037cab43e
11 changed files with 629 additions and 0 deletions
16
odoo-bringout-oca-ocb-rpc/rpc/controllers/jsonrpc.py
Normal file
16
odoo-bringout-oca-ocb-rpc/rpc/controllers/jsonrpc.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import logging
|
||||
|
||||
from odoo.http import Controller, dispatch_rpc, route
|
||||
|
||||
from . import RPC_DEPRECATION_NOTICE, _check_request
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class JSONRPC(Controller):
|
||||
@route('/jsonrpc', type='jsonrpc', auth="none", save_session=False)
|
||||
def jsonrpc(self, service, method, args):
|
||||
""" Method used by client APIs to contact OpenERP. """
|
||||
logger.warning(RPC_DEPRECATION_NOTICE, __name__)
|
||||
_check_request()
|
||||
return dispatch_rpc(service, method, args)
|
||||
Loading…
Add table
Add a link
Reference in a new issue