odoo.define('academy.field', (require) => {
const registry = require('web.field_registry');
const Widget = require('web.AbstractField');
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example config file for ansible -- https://ansible.com/ | |
# ======================================================= | |
# Nearly all parameters can be overridden in ansible-playbook | |
# or with command line flags. Ansible will read ANSIBLE_CONFIG, | |
# ansible.cfg in the current working directory, .ansible.cfg in | |
# the home directory, or /etc/ansible/ansible.cfg, whichever it | |
# finds first | |
# For a full list of available options, run ansible-config list or see the |
apt install nginx
apt install libnginx-mod-rtmp
apt install ffmpeg
apt install stunnel4
vim /etc/nginx/nginx.conf
- Remove http {} and mail {}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# Part of Odoo. See LICENSE file for full copyright and licensing details. | |
from odoo import api, models | |
from odoo.http import request | |
class Http(models.AbstractModel): | |
_inherit = 'ir.http' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.3' | |
services: | |
app: | |
build: | |
context: . | |
dockerfile: services/app/Dockerfile | |
ports: | |
- 5000:5000 | |
networks: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-*- coding: utf-8 -*- | |
# This scripts imports a JSON export made with `collective.jsonify` into | |
# ArangoDB (database: ugent, collection: portal by default) | |
import os | |
import json | |
import time | |
import pprint | |
import traceback |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from rest_framework import viewsets, status | |
from rest_framework.response import Response | |
from .models import * | |
from .serializers import * | |
class CancionesForAlbumViewSet(viewsets.ModelViewSet): | |
"""! | |
Vistas para registrar las canciones de un album | |
@author Rodrigo Boet (rudmanmrrod at gmail.com) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################# | |
# Para más información consulte este link: https://realpython.com/python-speech-recognition/ | |
# pip install SpeechRecognition | |
################## | |
# Importa las librerías necesarias | |
import speech_recognition as libreria_principal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# License LGPL-3.0 or later (http://www.gnu.org/licenses/LGPL). | |
from odoo.tests import common | |
class TestSecurityCommon(common.TransactionCase): | |
def setUp(self): | |
super(TestProjectEventCommon, self).setUp() | |