vanilla 18.0

This commit is contained in:
Ernad Husremovic 2025-10-08 10:48:09 +02:00
parent 5454004ff9
commit d7f6d2725e
979 changed files with 428093 additions and 0 deletions

View 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)),
)
)