Purchase receipt get item from Order

Hi to all,
When i create a new purchase receipt I’d like to import items from a purchase order.
My problem is that in the purchase order I have 100-200 while I receive 2/3 products for each receipt.

I want to fullfill the order without importing 100-200 rows and then cancel them manually, Is there the possibility to import for example only the raws for a certain item code?

I try filtering in the popup for the item code, but it import all the purchase order that cointain the item instead of only the raw with that the item code.

Thank to all for support.
Alessandro

@alaurucci Please Write custom code for this logic and create custom code for this functionality this type of functionality is not provide from frappe so build your custom logic

A custom built futuristic theme for Frappe might interest you. If you are interested let me know. I will share demo.

Ok, can you suggest me where is the correct file in wich I haev to write this new code?

If I understood weel, int purchase_receipt.js file there is the definition of Button get Items From->Purchase Order.

if(!this.frm.doc.is_return && this.frm.doc.status!="Closed") {
			if (this.frm.doc.docstatus == 0) {
				this.frm.add_custom_button(__('Purchase Order'),
					function () {
						if (!me.frm.doc.supplier) {
							frappe.throw({
								title: __("Mandatory"),
								message: __("Please Select a Supplier")
							});
						}
						erpnext.utils.map_current_doc({
							method: "erpnext.buying.doctype.purchase_order.purchase_order.make_purchase_receipt",
							source_doctype: "Purchase Order",
							target: me.frm,
							setters: {
								supplier: me.frm.doc.supplier,
								schedule_date: undefined
							},
							get_query_filters: {
								docstatus: 1,
								status: ["not in", ["Closed", "On Hold"]],
								per_received: ["<", 99.99],
								company: me.frm.doc.company
							}
						})
					}, __("Get Items From"));
			}

but maybe the best solution for me, is modify the popup that it’s opened clicking on that button

SO from heere, catch the filter on the item code and the order number selected when i click on get Items.
So can you suggest me what is the file that manage this request and how I can catch the filter value?

Thanks
Alessandro

@alaurucci your requirements are not achievable from any code u can create one custom report and then write your custom logic to create the purchase receipt from that report using rq job function with your specific requirements

This is ok, but can you give me some information, where I can copy the generation of this pop up, that then I will customize, in order to reuse for my specific case?