Upon installation of Bahmni 0.92, very first patient created without any visit shows one quotation with 3 orders in ODOO.
The issue above is due to using “default” bahmni. if you use “default” implementation, (you can change that in setup.yml), bahmni installer is going to use the default-config and also start with a default database, where essential metadata and some sample data (like Diagnosis, Tests) etc are loaded. But it does not/should not have any data.
data issue with base Odoo database dump for default - has a customer and order/order_line entries for that customer already.
When a patient is created in Clinical, the identifier for “bahmni patient identifier” probably from that number (default installation only)
When sync happens to Odoo, the existing customer, with same the identifier, is updated, resulting in the above scenario
remove the "order" for that customer
remove the "res_partner" table for the identified customer. clear of the "res_partner_attributes" for that customer first
take a dump of the database and use that for default implementation database for Odoo
On startup of Odoo, there should not be any order or customer