Hi All ,
I am trying to remove the barcode validation , I hope deleting this from the item.py 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, self.name))
if duplicate:
frappe.throw(_("Barcode {0} already used in Item {1}").format(self.barcode, duplicate[0][0]))
Thanks in advance