Last active
August 29, 2015 14:06
-
-
Save waltervargas/d0d138090c0bd615d8f8 to your computer and use it in GitHub Desktop.
openerp_models.py
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
""" show models | |
This script run in Debian with openerp 7 | |
For run: | |
1. su - openerp -s /bin/bash | |
2. python openerp_models.py | |
""" | |
import openerp | |
from pprint import pprint | |
def main(): | |
"""main function""" | |
dbname = 'test' | |
pool = openerp.pooler.get_pool(dbname) | |
pprint(pool.models) | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment