- Change
__openerp__.py
addon name field - Change
README.rst
file
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 -*- | |
""" | |
Created on 09/11/2011 | |
@author: Carlo Pires <carlopires@gmail.com> | |
""" | |
import tnetstring | |
from werkzeug.contrib.sessions import SessionStore | |
SESSION_TIMEOUT = 60*60*24*7 # 7 weeks in seconds |
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 | |
# | |
# ******************************************* | |
# WARNING: this does *not* handle 3-way merges properly. | |
# Anything modified on the local branch since the common base will get ignored. | |
# | |
# FOR ANYONE LANDING HERE: | |
# This script is now updated as part of the git-whistles gem. | |
# https://github.com/mezis/git-whistles | |
# ******************************************* |
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
Deployment | |
La version 6.1 y 7.0 de openerp ahora soporta multihilo y depende de www.gunicorn.org que es el software que hace que use todos los cpus. | |
Dentro de la carpeta del server existe un archivo gunicorn.conf.py en donde se configura los parametros del sistema | |
Entonces ejecutamos la instruccion | |
gunicorn openerp:wsgi.core.application -c gunicorn.conf.py | |
desde le path del server y veremos como algunos hilos se ejecutan con el sistema automagicamente. | |
Probamos en el localhost:8069 y esta correcto. |
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
To get Git to diff between your odt/odp/ods files you will need to do the following things: | |
Install a conversion tool | |
$ sudo yum install odt2txt | |
Create your git config info directory if it's not already there | |
$ mkdir -p ~/.config/git/info | |
Add in attributes (you can paste this straight in or edit the file accordingly) | |
$ cat > ~/.config/git/info/attributes <<DELIM |
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
# Make mouse useful in copy mode | |
setw -g mode-mouse on | |
# Allow mouse to select which pane to use | |
set -g mouse-select-pane on | |
# Allow mouse dragging to resize panes | |
set -g mouse-resize-pane on | |
# Allow mouse to select windows |
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 bash | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
# Automatically update your CloudFlare DNS record to the IP, Dynamic DNS | |
# Can retrieve cloudflare Domain id and list zone's, because, lazy | |
# Place at: | |
# /usr/local/bin/cf-ddns.sh |
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
# -*- coding: utf-8 -*- | |
# based on this code | |
# http://code.activestate.com/recipes/577423-convert-csv-to-xml/ | |
# convert Odoo csv files in xml files | |
# csv is easy to maintain but xml data have noupdate feature | |
# Limitations: | |
# - relation field One2many is NOT supported | |
# - csv should have 'id' as first column |
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/python | |
import os | |
from werkzeug.contrib.sessions import FilesystemSessionStore | |
session_store = FilesystemSessionStore(os.path.expanduser('~/.local/share/Odoo/sessions')) | |
passwds = [] | |
for sid in session_store.list(): | |
session = session_store.get(sid) |
OlderNewer