This file contains 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
# we need some fixes from 14.10 | |
sudo add-apt-repository --enable-source ppa:libreoffice/libreoffice-4-3 | |
# fetch this repository | |
sudo apt-get update | |
# update your libreoffice installation | |
sudo apt-get install libreoffice | |
# get all build dependencies for libreoffice | |
sudo apt-get build-dep libreoffice | |
# that strangely enough doesn't come with the above | |
sudo apt-get install gcj-jdk python-dev |
This file contains 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
#!/bin/sh | |
set -e | |
if [ -z "$1" ]; then | |
echo i need to know which test to run | |
exit 1 | |
fi | |
TEST_TYPE=$1 |
This file contains 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
#!/usr/bin/env python2 | |
from argparse import ArgumentParser | |
parser = ArgumentParser( | |
description='Profile loading a model\'s data for a specific view in order ' | |
'to find bottlenecks') | |
parser.add_argument('odoo_basedir') | |
parser.add_argument('odoo_cfg') | |
parser.add_argument('odoo_db') |
This file contains 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
#!/usr/bin/env python2 | |
from argparse import ArgumentParser | |
parser = ArgumentParser() | |
parser.add_argument('odoo_basedir') | |
parser.add_argument('odoo_cfg') | |
parser.add_argument('odoo_db') | |
parser.add_argument('model') | |
args = parser.parse_args() |
This file contains 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
#!/usr/bin/env python2 | |
from argparse import ArgumentParser | |
parser = ArgumentParser() | |
parser.add_argument('odoo_basedir') | |
parser.add_argument('odoo_cfg') | |
parser.add_argument('odoo_db') | |
args = parser.parse_args() |
This file contains 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 -*- | |
# © 2016 Therp BV <http://therp.nl> | |
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | |
import json | |
from lxml import etree | |
from openerp import _, api, fields, models, SUPERUSER_ID | |
from openerp.osv import expression | |
class RestrictFieldAccessMixin(models.AbstractModel): |
This file contains 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
mkdir build_wkhtmltopdf_chroot | |
sudo debootstrap --include=git,python,ca-certificates stretch build_wkhtmltopdf_chroot | |
sudo chroot build_wkhtmltopdf_chroot | |
# add a deb-src line to /etc/apt/source.list | |
grep ^deb /etc/apt/sources.list | sed 's/^deb/deb-src/' >> /etc/apt/sources.list | |
apt-get update | |
apt-get build-dep wkhtmltopdf qt5-default | |
cd /root | |
git clone --recursive https://github.com/wkhtmltopdf/wkhtmltopdf.git -b 0.12.1 | |
cd wkhtmltopdf |
This file contains 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
:~$ python | |
Python 2.7.18 (default, Apr 20 2020, 20:30:41) | |
[GCC 9.3.0] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> class hunki(): | |
... def __repr__(self): | |
... return 'Enterprises' | |
... | |
>>> Hunki=hunki() | |
>>> Hunki |