<filename>retail_management/api.py<gh_stars>0
import frappe
@frappe.whitelist()
def get_price(product_name):
    # print("assdsds")
    doc = frappe.db.get_value("RM Product", product_name,"price")
    return doc

<filename>retail_management/api.py<gh_stars>0
import frappe
@frappe.whitelist()
def get_price(product_name):
    # print("assdsds")
    doc = frappe.db.get_value("RM Product", product_name,"price")
    return doc

# print("assdsds")