erpnext TabError: inconsistent use of tabs and spaces in indentation
You need to add Barcode at the instance of creating a new record; Let's say for example, you want to add a barcode automatically when creating a patient. First, create the Barcode field in the patient DocType. In this example, the field has a label 'Patient Barcode'
Get the details of the logged in user and store it in the added_by field