Skip to content

Instantly share code, notes, and snippets.

View gdalmau's full-sized avatar

Gerard Dalmau gdalmau

View GitHub Profile
@gdalmau
gdalmau / report.py
Created September 26, 2017 15:46 — forked from tinogis/report.py
Get and view an erp5 pdf report from command line
from erppeek import Client
import sys
import base64
from subprocess import call
import time
#report = 'giscedata.facturacio.factura'
#ids = [1513047, 1513049, 1513057, 1513042]
#ids = [1513042]
report = 'account.general.ledger.cumulative'
@gdalmau
gdalmau / generate_random_cups.py
Created August 10, 2017 08:36 — forked from mroig/generate_random_cups.py
Generate Random CUPS
# coding: utf-8
import random
cups_checksum_table = 'TRWAGMYFPDXBNJZSQVHLCKE'
cups_name_length = 12
def gen_checksum(cupsname):
"""Calcula el checksum d'un CUPS."""