Adding a button on medication tab to check for order status.

Following the article

I tried creating a button on medication tab which will take user to Openerp and will check if medicine is Out of stock. In that case doctor can prescribe something else.

Could anyone please help me with following issues :-

  1. How would I add the button on medication tab “Open Quotation”. Adding below code does not help with it. “bahmniClinicalTreatmentLinks”: { “id”: “bahmni.clinical.treatment.links”, “extensionPointId”: “org.bahmni.clinical.treatment.links”, “type”: “link”, “label”: “Open Quotation”, “url”: “{{patient_ref}}&dispensed=false&location_ref={{location_ref}}”, “shortcutKey”: “q”, “requiredPrivilege”: “app:billing” }

  2. Now what would be the proper URL for the same. This seems outdated.

Thanks in advance.

Moved to the bahmni category.