Skip to content

Instantly share code, notes, and snippets.

@eilst
eilst / odoo_security_tool.py
Created February 7, 2019 04:27
Methods to easily see which record rules and acls are applied to a user on a model
# 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()
@eilst
eilst / odoo-single-test
Last active April 11, 2019 13:56
Script for executing a single test case in odoo 11 (depends on anybox.recipe.odoo.runtime.session)
#!/usr/bin/python3
import sys
import os
import inspect
import ipdb
sys.path.append('/opt/odoodev/git/odoo')
sys.path.append('/opt/odoodev/git/tools/src/anybox.recipe.odoo')
from anybox.recipe.odoo.runtime.session import Session
import odoo
@eilst
eilst / install-docker.md
Created October 20, 2019 02:07 — forked from npearce/install-docker.md
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command
@eilst
eilst / kubernetes_cluster _init.sh
Created August 11, 2020 20:13
Building a basic kubernetes cluster
#!/bin/bash
#coomands were run on a ubuntu os
#Docker and Kubernetes repositories:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \