"Default" implementation installation shows an existing customer and an order associated

Description

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

Status

Assignee

Angshuman Sarkar

Reporter

Ramashish Joshi

Labels

None

Units

None

PercentDone

None

DueTime

None

Clients

None

External issue ID

None

UAT Assignee

None

Reviewer

None

Sprint

Fix versions

Configure