View README.md

Checklist

  • Create user replication in the master
sudo -u postgres psql -c "CREATE USER rep REPLICATION \
LOGIN ENCRYPTED PASSWORD 'thepassword';"
  • Modify postgresql.conf in the master
listen_address = # make sure we're listening as appropriate
wal_level = hot_standby
View poolwraper.py
1 2 3 4 5 6 7 8 9 10
"""
Use ERPPeek or OOOP interface compatible insed OpenERP.
Ex.
client = PoolWrapper(pool, cursor, uid)
client.ResPartner.search([])
partner_obj = client.ResPartner
partner_obj.write([1], {'name': 'Fooo!'})
"""
View install.py
1 2 3 4 5 6 7 8 9 10
import logging
import os
 
import click
from erppeek import Client
 
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger('installer')
 
def setup_peek(**peek_config):
View parse_comers.py
1 2 3 4 5 6 7 8 9 10
import os
 
print "Descarregant PDF comers..."
os.system('curl "http://simel.simel.ree.es/sep/PubServlet2?operacion=AccInfor&fichero=117_Comercializadores.pdf" > comers.pdf')
 
print "Transformant a TXT..."
os.system('pdftotext comers.pdf')
 
print "Creant diccionari..."
c = open('comers.txt', 'r').read()
View HookHandler.py
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env python
#-*- coding:utf-8 -*-
 
"""Credits to: https://gist.github.com/FiloSottile/7634541
"""
 
import os
import BaseHTTPServer
import sys
import time
View HookHandler.py
1 2 3 4 5 6 7 8 9
#!/usr/bin/env python
#-*- coding:utf-8 -*-
 
import BaseHTTPServer
import sys
import time
import urlparse
import json
 
View check_bank.py
1 2 3 4 5 6 7 8 9 10
@app.route('/_check_bank/<acc_number>')
def _check_bank(acc_number):
"""Funció AJAX per comprovar el número de compte bancari."""
O = app.config['OOOP']
spain = O.ResCountry.search([('code', '=', 'ES')])[0]
lang = '%s_ES' % get_locale()
vals = O.ResPartnerBank.onchange_banco([], acc_number, spain,
{'lang': lang})
res = {'message': '', 'status': False}
if 'warning' in vals:
View README.md

Sitecustomize

Fix for unicode can't decode ascii...

Something went wrong with that request. Please try again.