We're updating the issue view to help you get more done. 

New quotation is being created for second order even the first quotation is in draft mode for the first order for same patient

Description

Login to Bahmni->Consultation->Orders>Generate one radiology order Login to ODOO->Confirm that the order synced generating a new Quotation (in draft mode)

From Bahmni->Consultation->Orders>Place a different radiology order for the same patient

In ODOO a new Quotation is generated instead of adding a second order line item to the earlier draft quotation of the same patient.

In earlier version(openerp), if a patient’s quotation is in draft mode a new order will get added to the same quotation.

Could not find it in Odoo Feedback/Issues Doc

Debugging this 1 shows that it is searching for a sales order (draft mode) with

'origin', '=', 'ATOMFEED SYNC'
But the in database origin field in sale_order is blank after sync.

In earlier version the origin was getting set here 1 while creating new order which is missing in ODOO.

Talk thread link -> https://talk.openmrs.org/t/need-help-in-testing-odoo-app-integrated-with-bahmni-0-92-alpha-release/22512/56

Status

Assignee

Anand Patel

Reporter

Himabindu Thungathurty

Labels

None

Units

None

PercentDone

None

DueTime

None

Clients

None

External issue ID

None

UAT Assignee

Sravya Kanagarla

Reviewer

None

Components

Sprint

Fix versions