Caution: Please do not try this on production system. Its advisable that you test out first on your test/staging environments before you proceed with data migration.
We would advise that you look at Odoo as a completely different system and start afresh. There are significant changes in model and migrating data even if possible will require additional/custom scripting.
We would suggest
Plan for closure of OpenERP
Setup Odoo as described in configuration/setup pages
Import master data (using CSV or Excel) - export from OpenERP, cleanup, import in Odoo.
Not ready to upgrade to Odoo, what can I do?
There might be plenty of reasons for you not to upgrade to Odoo 10 yet. For example, you are middle of the Financial Year and you maintain your accounting in OpenERP.
Bahmni 0.92 works perfectly fine with OpenERP 7. So you can install Bahmni 0.92 in a separate machine (without Odoo) and then configure settings to connect to older OpenERP 7 running separately.
To connect to older OpenERP7, you need to change a few properties of "Bahmni ERP Connect".
In the new machine, where you have installed Bahmni 0.92, find and edit the file "/opt/bahmni-erp-connect/bahmni-erp-connect/WEB-INF/classes/erp-atomfeed.properties". Change the following properties
jdbc.url=jdbc:postgresql://[OpenERP Machine IP Address or FQDN]/openerp
openerp.port=8069
openerp.host=[OpenERP machine IP Address or FQDN of the ]
openerp.database=openerp
openerp.user=[openerp login user]
openerp.password=[openerp login user password]
NOTE: For "Bahmni-erp-connect" to talk to OpenERP7 running on another machine, you need to ensure
The old machine is visible from the new machine over HTTP
The old machine's port 8069 is allowed/accessible
Troubleshooting
Lots of things can go wrong if things are not configured properly. Below are some tips that will help you in investigating and troubleshooting issues.
Change Odoo log level
By default, upon installation, Odoo log level would be set to "error", meaning only errors would be logged. If you are trying to figure out, troubleshoot issues, change the log level to "debug" to get more information. For this,
Edit odoo configuration file - /etc/odoo.conf, and change log level to “debug”.
log_level = debug
After changing the file, you will need to restart Odoo
service odoo restart
Odoo log file can be found here - /var/log/odoo/odoo.log
Change erp-connect log level
A specific microservice "bahmni-erp-connect" is responsible for integration between OpenMRS & Odoo. You can get additional info by looking at this service's log and additionally changing the log level of this service.