Skip to content

Instantly share code, notes, and snippets.

View temoctzin's full-sized avatar

Temoctzin temoctzin

View GitHub Profile
@temoctzin
temoctzin / pruebaserial.py
Created June 5, 2024 19:20 — forked from arkadoel/pruebaserial.py
Lectura de bascula mediante puerto serial y python
__author__ = 'https://github.com/arkadoel'
__date__ = '07-Ene-2015'
__license__ = 'GPL v2'
'''
Se trata de leer una bascula de pesar camiones
conectada al equipo mediante un puerto serial.
Fabricante bascula de servipesa
Con lector fisico de bascula
@temoctzin
temoctzin / odoo-sh.py
Created August 28, 2018 18:07 — forked from dreispt/odoo-sh.py
Odoo Shell: run Odoo commands without a server RPC connection
"""
Setup:
Assuming Odoo 8.0 sources at ~/odoo:
$ cp odoo-sh.py ~/odoo
$ cd ~/odoo
$ python -i odoo-sh.py
Usage example:
>>> env = connect('my-db-name')
>>> Users = env['res.users']