mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-20 07:32:08 +02:00
vanilla 19.0
This commit is contained in:
parent
991d2234ca
commit
d1963a3c3a
3066 changed files with 1651266 additions and 922560 deletions
14
odoo-bringout-oca-ocb-web/web/controllers/model.py
Normal file
14
odoo-bringout-oca-ocb-web/web/controllers/model.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from json import loads, dumps
|
||||
from odoo.http import Controller, request, route
|
||||
|
||||
|
||||
class Model(Controller):
|
||||
@route("/web/model/get_definitions", methods=["POST"], type="http", auth="user")
|
||||
def get_model_definitions(self, model_names, **kwargs):
|
||||
return request.make_response(
|
||||
dumps(
|
||||
request.env["ir.model"]._get_definitions(loads(model_names)),
|
||||
)
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue