Is erpnext can generate Bar code automatically?

Hi,
I’ve an query related to bar code. Is there anyway that ERP generate unique bar code for any item by default after creating item?

This functionality is not available yet. You can input barcode in case your item comes with a barcode tag or enter a barcode into the system.

@Minhaj you can write custom code like before inserting the item set barcode value

def before_insert(self):
        self.barcode = frappe.generate_hash("item_name",10)
1 Like

@Mohammed_Redha can you please tell the reference file in which I can write custom code??

@Minhaj you have to write it here:

4 Likes

Thanks @Mohammed_Redha