mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-24 02:08:36 +00:00
Change CI to GitHub actions
Use copier template from oca/oca-addons-repo-template Target Python3.8 Apply linting Fix a missing call to super Ensure all modules have a 13.0.x.x.x version
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
from ..utils import is_enabled
|
||||
|
||||
if is_enabled():
|
||||
|
||||
@@ -3,15 +3,16 @@
|
||||
|
||||
import json
|
||||
import time
|
||||
from os import environ
|
||||
from collections import MutableMapping
|
||||
from contextlib import suppress
|
||||
from os import environ
|
||||
|
||||
from werkzeug.exceptions import HTTPException
|
||||
|
||||
from odoo import models
|
||||
from odoo.http import request as http_request
|
||||
from odoo.tools.config import config
|
||||
|
||||
|
||||
udp_dest = environ.get("ODOO_REQUESTS_LOGGING_UDP")
|
||||
if udp_dest:
|
||||
import socket
|
||||
@@ -25,6 +26,8 @@ if udp_dest:
|
||||
def output_method(data):
|
||||
data += "\n"
|
||||
sock.sendto(data.encode("utf-8"), (ip, port))
|
||||
|
||||
|
||||
else:
|
||||
import logging
|
||||
|
||||
|
||||
Reference in New Issue
Block a user