Hi , i wonder how i can do like sales order , when im selected item_code in my new doctype , the item_name is fetched
Thanks
Hi , i wonder how i can do like sales order , when im selected item_code in my new doctype , the item_name is fetched
Thanks
Use custom script cur_frm.add_fetch to fetch value from master
cur_frm.add_fetch('item_Code','item_name','item_name')
If what i want is to add item name and description? is there any short way?..or i should create it twice?
Where you want item name?
If you want in form then create custom field
If you want in print format use this,
frappe.db.get_value('Item', doc.item_code, 'item_name')
i mean is… if i want when the item is selected than the item name and description is updated, what should i do?
create custom script, no shortcut to add all field.
cur_frm.add_fetch(‘item_Code’,‘item_name’,‘item_name’)
cur_frm.add_fetch(‘item_Code’,‘item_description’,‘item_description’)
thaaanks… that was great information