Odoo product hierarchy is not respected while creating a product on sync from OpenMRS

Description

1) Product Category Hierarchy is not respected
Bahmni-odoo sync has some predefined hierarchies

  • Radiology: All/Services

  • Test: All/Services/Lab

  • Panel: All/Services/Panel

  • Drug: All/Saleable/Drugs
    Anything else should go to: All/Services/Others

Right now - this is not respected. since the root of hierarchy is wrongly defined as "All Products". The sync works because if a matching category hierarchy is not found, then it just creates one under the root "service".

2) If a category is not present, then it should create so. Currently this is not the case.

  • for any sellable product, if "category_name" is mentioned, then that should be created under "All/Services/Others".

Status

Assignee

Unassigned

Reporter

Angshuman Sarkar

Labels

None

Units

None

PercentDone

None

DueTime

None

Clients

None

External issue ID

None

UAT Assignee

None

Reviewer

None

Components

Sprint

Fix versions

Configure