ERPNext Foundation ERPNext Cloud Chat Blog Discuss Frappé* Donate

Mapping docs like purchase order


#1

I have seen the same functionality to Purchase Receipt with the button ‘Get Items’ form Purchase Order. In the source code I see a erpnext.utils.map_current_doc that calls erpnext.buying.doctype.purchase_order.purchase_order.make_purchase_receipt and inside there i see from frappe.model.mapper import get_mapped_doc
Similar to the get items button i done my for my button in my py func but i shows a attribute error AttributeError: ‘module’ object has no attribute ’ ’
is the po method is been called or any solution in this?