Fixed
Pinned fields
Click on the next to a field label to start pinning.
Details
Assignee
Angshuman SarkarAngshuman SarkarReporter
Ramashish JoshiRamashish JoshiSprint
NoneFix versions
Priority
Major
Details
Details
Assignee
Angshuman Sarkar
Angshuman SarkarReporter
Ramashish Joshi
Ramashish JoshiSprint
None
Fix versions
Priority
Created July 4, 2019 at 12:29 PM
Updated July 22, 2019 at 9:18 AM
Resolved July 22, 2019 at 9:18 AM
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.
Analysis
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
Solution
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
acceptance criteria
On startup of Odoo, there should not be any order or customer