Advertisement
Guest User

proteus code

a guest
May 29th, 2012
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. Module = Model.get('ir.module.module')
  2. (party,) = Module.find([('name', '=', 'party')])
  3. Module.install([party.id], pconfig.context)
  4. Wizard('ir.module.module.install_upgrade').execute('upgrade')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement