We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d164646 commit d7303d3Copy full SHA for d7303d3
beam/beam/doctype/handling_unit/handling_unit.py
@@ -12,6 +12,8 @@ def autoname(self):
12
self.handling_unit_name = self.name = str(uuid.uuid4().int >> 64)
13
14
def validate(self):
15
+ if frappe.db.exists("Item Barcode", {"barcode": self.name, "parent": self.name}):
16
+ return
17
barcode = frappe.new_doc("Item Barcode")
18
barcode.parenttype = "Handling Unit"
19
barcode.barcode_type = "Code128"
0 commit comments