libreerp_ynh/conf/install_database.py

4 lines
208 B
Python
Raw Normal View History

2015-09-16 12:13:00 +02:00
#!/usr/bin/python
import oerplib
2015-09-16 12:28:32 +02:00
oerp = oerplib.OERP(server='localhost', protocol='xmlrpc', port=8069)
2015-09-16 12:29:18 +02:00
oerp.db.create_database('ADMIN_PASSWORD', 'DOMAIN_DATABASE', False, 'DATABASE_LANG', 'DATABASE_PASSWORD')