We have to set restriction in delivery note

we have using erpnext for our manufacturing company. now i want to restriction to delivery note that if any item group is not product, then delivery note can not be done.

if is it possible please give me the solution.

Do you mean that if an item does not have an item group product then it should not be a delivery note? Right?

Dear NCP,
please give me solution if you know about it.

You can do easily set the validation using server/client script:

for row doc.get('items'):
    if row.item_group!="Products":
        frappe.throw("set your message")

Dear NCP,
thanks for your reply.
can you give me details that where i using it, server or client script.

can you give me with picture.


You can set it in the server script. Please check it.