March 2018
Beginner to intermediate
336 pages
8h 22m
English
Not only can ERPpeek be used as a Python library, it is also a CLI that can be used to perform administrative actions on the server. Where the Odoo shell command provided a local interactive session on the host server, the erppeek library provides a remote interactive session for a client across the network.
Opening a command line, we can have a peek at the options available, as shown here:
$ erppeek --help
Let's see a sample session, as follows:
$ erppeek --server='http://localhost:8069' -d todo -u admin
Usage (some commands):
models(name) # List models matching pattern
model(name) # Return a Model instance
(...)
Password for 'admin':
Logged in as 'admin'
todo >>> model('res.users').count()
3
todo >>> rec = model('res.partner').browse(9) ...Read now
Unlock full access