mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-22 11:12:00 +02:00
Initial commit: Core packages
This commit is contained in:
commit
12c29a983b
9512 changed files with 8379910 additions and 0 deletions
13
odoo-bringout-oca-ocb-bus/bus/controllers/main.py
Normal file
13
odoo-bringout-oca-ocb-bus/bus/controllers/main.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
import json
|
||||
|
||||
from odoo.http import Controller, request, route
|
||||
|
||||
|
||||
class BusController(Controller):
|
||||
@route('/bus/get_model_definitions', methods=['POST'], type='http', auth='user')
|
||||
def get_model_definitions(self, model_names_to_fetch, **kwargs):
|
||||
return request.make_response(json.dumps(
|
||||
request.env['ir.model']._get_model_definitions(json.loads(model_names_to_fetch)),
|
||||
))
|
||||
Loading…
Add table
Add a link
Reference in a new issue