Skip to content

Instantly share code, notes, and snippets.

Created July 3, 2014 08:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/bb16c70efdf4982a834b to your computer and use it in GitHub Desktop.
Save anonymous/bb16c70efdf4982a834b to your computer and use it in GitHub Desktop.
from proteus import config, Model, Wizard
config = config.set_trytond('db_name')
Module = Model.get('ir.module.module')
party_module, = Module.find([('name', '=', 'party')])
print party_module.state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment