This file contains hidden or 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
| __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 |
This file contains hidden or 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
| """ | |
| 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'] |