Need guidance removing validation

Hi All ,

I am trying to remove the barcode validation , I hope deleting this from the file would remove the validation , could anyone just let me know , if I am going wrong .

def validate_barcode(self):
		if self.barcode:
			duplicate = frappe.db.sql("""select name from tabItem where barcode = %s
				and name != %s""", (self.barcode,
			if duplicate:
				frappe.throw(_("Barcode {0} already used in Item {1}").format(self.barcode, duplicate[0][0]))

Thanks in advance

Well, just try it! Looks like the relevant code.

1 Like

Many thanks for the reply @vjFaLk . I will try