Initial commit: OCA Technical packages (595 packages)

This commit is contained in:
Ernad Husremovic 2025-08-29 15:43:03 +02:00
commit 2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions

View file

@ -0,0 +1 @@
from . import iot_controller

View file

@ -0,0 +1,25 @@
# Copyright 2020 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import json
from odoo import http
class CallIot(http.Controller):
@http.route(
["/iot/<serial>/configure"],
type="http",
auth="none",
methods=["POST"],
csrf=False,
)
def configure_iot(self, serial, template, **kwargs):
request = http.request
if not request.env:
return json.dumps(False)
return json.dumps(
request.env["iot.device.configure"]
.sudo()
.configure(serial, template, **kwargs)
)