Possibility of linking Item Manufacturer Doctype to Purchase Order Items

I have a new custom variable “item_testcertificate_manufacturer” which is a “Check” field type in the doctype “Item Manufacturer”.

Now my required behaviour from Purchase Order doctype is that it takes the Item_code + manufacturer name and gives me a 0 or 1 for the variable “item_testcertificate_manufacturer” in the custom HTML Jinja site we have made.

I encounter a ‘manufacturer’ not permitted in doctype error which I am trying to figure out. I believe this is a permission issue. But someone can give me a full understanding of this, it would be helpful.

I also understand from LLMs that a client side script has to be written to get the value combination Item_code + manufacturer_name and gives me the value back.

Should I edit the core code ?