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:
Yannick Payot
2023-05-11 11:17:54 +02:00
parent 0000eab313
commit 71da584087
80 changed files with 1596 additions and 879 deletions
-1
View File
@@ -1,3 +1,2 @@
from . import utils
from . import models
+11 -10
View File
@@ -2,13 +2,14 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
{'name': 'Monitoring: Requests Logging',
'version': '13.0.1.0.0',
'author': 'Camptocamp,Numigi,Odoo Community Association (OCA)',
'license': 'AGPL-3',
'category': 'category',
'depends': ['base', 'web'],
'website': 'http://www.camptocamp.com',
'data': [],
'installable': True,
}
{
"name": "Monitoring: Requests Logging",
"version": "13.0.1.0.0",
"author": "Camptocamp,Numigi,Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "category",
"depends": ["base", "web"],
"website": "https://github.com/camptocamp/odoo-cloud-platform",
"data": [],
"installable": True,
}
@@ -1,4 +1,3 @@
from ..utils import is_enabled
if is_enabled():
+5 -2
View File
@@ -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
+2 -2
View File
@@ -6,5 +6,5 @@ from os import environ
def is_enabled():
env_val = environ.get('ODOO_REQUESTS_LOGGING')
return bool(strtobool(env_val or '0'.lower()))
env_val = environ.get("ODOO_REQUESTS_LOGGING")
return bool(strtobool(env_val or "0".lower()))