Hello Community,
I’d like to use serial numbers in ERPNext just for warranty and after-sales tracking—not for inventory management. Ideally, serials should be optional in Delivery Notes: if a serial is entered, it’s tracked for warranty, but if not, delivery proceeds without error.
Currently, I get the error “The Item {self.item_code} does not have Serial No or Batch No” when no serial is provided. I’ve found this check in serial_and_batch_bundle.py
.
I’m considering two options:
- Custom Script: Toggle
has_serial_no
only when a serial is needed, e.g., for warranty. - Override in Custom App: Override the
validate_serial_and_batch_no
function in my app, making serials optional in Delivery Notes.
Are these options safe regarding inventory transactions or system stability? Any advice or alternative ideas?
Thanks!