We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use case: run non-interactively a bunch of commands against Odoo...
This would allow things like:
#!bin/erppeek users = model('res.users').browse() for user in users: print user.login
The text was updated successfully, but these errors were encountered:
You can achieve it with a minimum of boilerplate in your script, to load the configuration and build the Client instance.
It assumes that you have an erppeek.ini file in your current directory with a section [demo]
erppeek.ini
[demo]
#! /usr/bin/env python import erppeek client = erppeek.Client.from_config('demo') model = client.model users = model('res.users').browse() for user in users: print(user.login)
Sorry, something went wrong.
No branches or pull requests
Use case: run non-interactively a bunch of commands against Odoo...
This would allow things like:
The text was updated successfully, but these errors were encountered: