Get current login session data

Hi all,

How do i fetch the current user session detail? Let say a loged-in user1 want to print a document (Eg. Quotation) created by user2. The printed document should also includes user1’s details.

Thank you.


Note:

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

End of Note

You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/9982290a-df88-4583-8e43-9bfd8b841db1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi,

Which version are you using?

You can add cur_frm.add_fetch 

https://frappe.io/apps/erpnext/user-guide/customize-erpnext/custom-scripts/custom-script-examples/custom-script-fetch-values-from-master



@rushabh_mehta
https://erpnext.org

On 20-May-2014, at 8:47 pm, Nonnatee Kanjana <no...@ps-groups.com> wrote:

Hi all,

How do i fetch the current user session detail? Let say a loged-in user1 want to print a document (Eg. Quotation) created by user2. The printed document should also includes user1's details.

Thank you.

--
Note:

If you are posting an issue,
1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

End of Note
---
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/9982290a-df88-4583-8e43-9bfd8b841db1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/AAC75505-4C0D-4B26-A94E-C50194C30ABD%40gmail.com.

    For more options, visit https://groups.google.com/d/optout.