You can add a different order type but Bahmni’s ATOM Feed will sync only those orders having concept class set to Drug, Lab and Radiology orders as mentioned here.
Thanks for your reply but if am not wrong as of Feb 2019 you can add any order type see this here
Placing an Order
For setting up the functionality to place the order.
- To set up a new order type, you need to add the order type in the database. …
You are right about creating new order type, accepting orders and the subsequent order fulfillment but the page is silent about about syncing the products created under new order type with ERP / ODOO.
This code explains more.
To sync products of other order types (say Dental in your case), you may create those products in OpenMRS initially under concept class “Radiology” let all newly created products sync with ERP and then change the class to the new order type (say Dental) in OpenMRS for Bahmni UI to show it as different order type.
Thanks testing it out
and then change the class to the new order type (say Dental) in OpenMRS for Bahmni UI to show it as different order type.
After it sync, should I create a concept class called dental first (Because it does nt exist) then change from radiology to dental
Yes, after newly created products sync create a new concept class say “Dental” (same name as in your insert order_type statement) and then assign this class to those products.
Along with insert order_type in OpenMRS you also need to create order type to shop mapping in ERP.
First just create one product and test the entire cycle (product sync, change of concept class, place order - Bahmni UI should show separate order type along withe existing Radiology and Lab, syncing of this order with ERP), if it works then create other products.
Thanks @ramashish after sync using radiolgy class I executed the below scripts
insert into order_type (“name”, “description”, creator, uuid, “java_class_name”) values (“Dental Order”, “description”,1,uuid(),“org.openmrs.Order”);
insert into order_type_class_map (order_type_id, concept_class_id) values(, );
created a concept class called Dental Order and changed the products from radiology class to Dental Order, when I make a dental order from bahmni nothing sync to Odoo.
what might be the issue, did it work for you ?
The latest build is available on product-qa04.mybahmni.org for testing with installer http://repo.mybahmni.org.s3.amazonaws.com/rpm/bahmni/bahmni-installer-0.92-93.noarch.rpm
I have been testing this in a local server whenever power power goes off or whenever I power off the server and power on other services start on their own but odoo does not, how can I autostart the odoo like other services so I dont do it manaully each time power goes off
Assuming you are on CentOS, You can do it using chkconfig. https://www.geeksforgeeks.org/chkconfig-command-in-linux-with-examples/. Ideally bahmni installer should do it. Not sure if its not doing it for the new odoo.
@rajashri i tried spending some time testing. BAH-792 The sync (drug or lab order to quotation) is not happening right now. Tried doing the steps mentioned in the card but still not happening. Difficult to troubleshoot also. atomfeed-console is also not running it seems to check if there are failed events.
@ramashish Need a help as tested the Quotations of Drug, Lab and Radiology order both in my QA and http://product-qa04.mybahmni.org .All of them are sync to single quotations but the configuration of Order Type - Shop mapping with different location order pick type.
FYI, please follow the “Odoo configuration” document for setting up odoo and for the integration to work properly.
You can take the latest build (0.92-99) and try this out. Beware, the default implementation setup is still being worked out. The documentation mentioned above, is applicable for a fresh Odoo (done by Bahmni installation for a NON-DEFAULT implementation name), but if you go setup as per documentation, things work well.
how can we sync patient/doctor relationship from Openmrs to Odoo. I followed the documentation and can successfully sync attributes to odoo. I need those attributes to be displayed in sales quotation and print invoice . How can it be possible. Could you please help me out this. My main motive is to design department wise doctor sales report. So for that first i need to sync doctor from OpenMrs to Odoo
For version 092… whenever i try to stop/restart bahmni using
bahmni -i local stop
bahmni -i local restart
I get this error pastebin
Environment: product-qa04.mybahmni.org/ @utsavdeshar is right in mentioning that order type to shop mapping is not working properly if there is already a draft quotation originating from the same location as shown in the attached image. Place one order at a time from Bahmni for different order types with order types mapped to different shop.
This is mostly because this line of the code, where it is searching for the draft orders only based on location.
When compared with OpenERP code it was checking it based on shop so then it was working properly even if another there exists another draft quotation.
Hi, i updated 0.92-99 and installation was fine. when i tried to access clinical services the whole module is meshed up . what might be the issues. i have attached the screenshot! I tried linking previous default config of bahmni-0.92-93 still could not get it solved. I really in a big problem and i could not solve since long days. Please anyone can help me i would be thank full.
Also please find the log error.
[root@localhost openmrs]# tail -f openmrs.log 24-06-2019 17:27:22 [WARN ] DefaultListableBeanFactory - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘bahmniEncounterTransactionService’ defined in URL [jar:file:/opt/openmrs/.openmrs-lib-cache/bahmnicore/lib/bahmnicore-api-0.91-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean ‘bahmniEncounterTransactionServiceTarget’ while setting bean property ‘target’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘bahmniEncounterTransactionServiceTarget’ defined in URL [jar:file:/opt/openmrs/.openmrs-lib-cache/bahmnicore/lib/bahmnicore-api-0.91-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean ‘emrEncounterService’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name ‘emrEncounterService’: org.springframework.beans.factory.FactoryBeanNotInitializedException: FactoryBean is not fully initialized yet 24-06-2019 17:27:22 [WARN ] DefaultListableBeanFactory - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘bahmniEncounterTransactionService’ defined in URL [jar:file:/opt/openmrs/.openmrs-lib-cache/bahmnicore/lib/bahmnicore-api-0.91-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean ‘bahmniEncounterTransactionServiceTarget’ while setting bean property ‘target’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘bahmniEncounterTransactionServiceTarget’ defined in URL [jar:file:/opt/openmrs/.openmrs-lib-cache/bahmnicore/lib/bahmnicore-api-0.91-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean ‘emrEncounterService’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name ‘emrEncounterService’: org.springframework.beans.factory.FactoryBeanNotInitializedException: FactoryBean is not fully initialized yet 24-06-2019 17:27:22 [WARN ] DefaultListableBeanFactory - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘bahmniEncounterTransactionService’ defined in URL [jar:file:/opt/openmrs/.openmrs-lib-cache/bahmnicore/lib/bahmnicore-api-0.91-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean ‘bahmniEncounterTransactionServiceTarget’ while setting bean property ‘target’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘bahmniEncounterTransactionServiceTarget’ defined in URL [jar:file:/opt/openmrs/.openmrs-lib-cache/bahmnicore/lib/bahmnicore-api-0.91-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean ‘emrEncounterService’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name ‘emrEncounterService’: org.springframework.beans.factory.FactoryBeanNotInitializedException: FactoryBean is not fully initialized yet 24-06-2019 17:27:22 [WARN ] DefaultListableBeanFactory - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘bahmniEncounterTransactionService’ defined in URL [jar:file:/opt/openmrs/.openmrs-lib-cache/bahmnicore/lib/bahmnicore-api-0.91-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean ‘bahmniEncounterTransactionServiceTarget’ while setting bean property ‘target’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘bahmniEncounterTransactionServiceTarget’ defined in URL [jar:file:/opt/openmrs/.openmrs-lib-cache/bahmnicore/lib/bahmnicore-api-0.91-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean ‘emrEncounterService’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name ‘emrEncounterService’: org.springframework.beans.factory.FactoryBeanNotInitializedException: FactoryBean is not fully initialized yet 24-06-2019 17:27:22 [WARN ] DefaultListableBeanFactory - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘bahmniEncounterTransactionService’ defined in URL [jar:file:/opt/openmrs/.openmrs-lib-cache/bahmnicore/lib/bahmnicore-api-0.91-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean ‘bahmniEncounterTransactionServiceTarget’ while setting bean property ‘target’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘bahmniEncounterTransactionServiceTarget’ defined in URL [jar:file:/opt/openmrs/.openmrs-lib-cache/bahmnicore/lib/bahmnicore-api-0.91-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean ‘emrEncounterService’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name ‘emrEncounterService’: org.springframework.beans.factory.FactoryBeanNotInitializedException: FactoryBean is not fully initialized yet 24-06-2019 17:27:22 [WARN ] DefaultListableBeanFactory - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘bahmniEncounterTransactionService’ defined in URL [jar:file:/opt/openmrs/.openmrs-lib-cache/bahmnicore/lib/bahmnicore-api-0.91-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean ‘bahmniEncounterTransactionServiceTarget’ while setting bean property ‘target’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘bahmniEncounterTransactionServiceTarget’ defined in URL [jar:file:/opt/openmrs/.openmrs-lib-cache/bahmnicore/lib/bahmnicore-api-0.91-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean ‘emrEncounterService’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name ‘emrEncounterService’: org.springframework.beans.factory.FactoryBeanNotInitializedException: FactoryBean is not fully initialized yet 24-06-2019 17:27:32 [WARN ] SimpleUrlHandlerMapping - Neither ‘urlMap’ nor ‘mappings’ set on SimpleUrlHandlerMapping 24-06-2019 17:27:35 [WARN ] RefillIdentifierPoolsTask - Not running scheduled task. DaemonToken = null; enabled = false 24-06-2019 17:27:40 [WARN ] OpenmrsUtil - Unable to find a runtime properties file at /openmrs-runtime.properties 24-06-2019 17:27:40 [WARN ] OpenmrsUtil - Unable to find a runtime properties file at /openmrs-runtime.properties
I reinstalled using the installer .92-103 and saw that this bug had got fixed.
Environment local Bahmni using installer version .99-103
I followed instruction as mentioned in Odoo Configuration Document for creating Chart of Account for “Discounts", installed the add-on and created sub-accounts for discount header.
Issue #1 - Discount dropdown shows all Chart of Accounts

Issue #2
Applied ₹ 10 discount on ₹ 120 bill, total payable is ₹ 110

However, invoice shows Amount Due as ₹ 120

And similar problem seen when I register payment

So even after paying full (post discount) amount it shows payment difference. Here is what’s getting stored in the database account_invoice
I couldn’t configure Discount on QA service since the chart_of_account_hierarchy add-on is not installed on that.


