I made a doctype name device and link it to reading doctype but when I insert a record in reading the drop down of device field is a random value generated by frappe. How can I change it? I need to combine to fields and display it to the drop down for device see image. Is it possible?
You have to set Auto Name field on device doctype by which you want to save this form.
Example : field:device_name
Then your doctype saved by device name and in link dropdown you search device by device name.
Regards,
New Indictrans Technologies Pvt. Ltd.
1 Like
I you want to add two fields in naming series then you have to customize code for that in autoname method in device.py file. Try with this, may be it helps you -
def autoname(self):
self.name = self.device_name + '-' + self.device_pin
Regards,
New Indictrans Technologies Pvt Ltd
5 Likes