Get User First , Middle, and Last Name

Dear

I created a field 'Created By on stock entry document by Setup -- Custom Field. I want to save user name who created document and want to print on print format report.

Can any body share idea and script


Thanks
MHI



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

To post to this group, send email to er...@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un...@googlegroups.com.

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

 

 

Hi,


You need not save the user's full name.

You can use this in your print format directly.
wn.user_info(doc.owner).fullname


thanks,
Anand.


On Tue, Oct 30, 2012 at 12:40 PM, stkitmanager <st…@gmail.com> wrote:

Dear

I created a field 'Created By on stock entry document by Setup -- Custom Field. I want to save user name who created document and want to print on print format report.


Can any body share idea and script



Thanks
MHI



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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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








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

To post to this group, send email to er...@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un...@googlegroups.com.

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

 

 

Dear

Your sent code is not working, printing email of user and how to print current date with time


thanks


On 30 October 2012 11:21, Anand Doshi <an...@iwebnotes.com> wrote:
Hi,

You need not save the user's full name.

You can use this in your print format directly.
wn.user_info(doc.owner).fullname


thanks,
Anand.


On Tue, Oct 30, 2012 at 12:40 PM, stkitmanager <st…@gmail.com> wrote:

Dear

I created a field 'Created By on stock entry document by Setup -- Custom Field. I want to save user name who created document and want to print on print format report.


Can any body share idea and script



Thanks
MHI



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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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








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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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








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

To post to this group, send email to er...@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un...@googlegroups.com.

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

 

 

Hi,


The code "wn.user_info(user).fullname" should work if the user has a fullname defined.

To print current date and time in user format:
dateutil.str_to_user(dateutil.get_today()) + " " + dateutil.get_cur_time()

Try this in your javascript console to check errors.
best,
Rushabh


On Thu, Nov 1, 2012 at 10:29 AM, stkitmanager <st...@gmail.com> wrote:
Dear

Your sent code is not working, printing email of user and how to print current date with time


thanks


On 30 October 2012 11:21, Anand Doshi <an...@iwebnotes.com> wrote:

Hi,


You need not save the user's full name.

You can use this in your print format directly.
wn.user_info(doc.owner).fullname


thanks,
Anand.


On Tue, Oct 30, 2012 at 12:40 PM, stkitmanager <st…@gmail.com> wrote:

Dear

I created a field 'Created By on stock entry document by Setup -- Custom Field. I want to save user name who created document and want to print on print format report.


Can any body share idea and script



Thanks
MHI



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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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








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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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








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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er...@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un...@googlegroups.com.

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

 

 

Dear Rushabh

Please explain how to define full name, In profile User first name, middle name and last name already defined.

Thanks
MHI
On 2 November 2012 08:31, Rushabh Mehta <rm...@gmail.com> wrote:
Hi,

The code "wn.user_info(user).fullname" should work if the user has a fullname defined.

To print current date and time in user format:
dateutil.str_to_user(dateutil.get_today()) + " " + dateutil.get_cur_time()
Try this in your javascript console to check errors.
best,
Rushabh


On Thu, Nov 1, 2012 at 10:29 AM, stkitmanager <st...@gmail.com> wrote:
Dear

Your sent code is not working, printing email of user and how to print current date with time


thanks


On 30 October 2012 11:21, Anand Doshi <an...@iwebnotes.com> wrote:

Hi,


You need not save the user's full name.

You can use this in your print format directly.
wn.user_info(doc.owner).fullname


thanks,
Anand.


On Tue, Oct 30, 2012 at 12:40 PM, stkitmanager <st…@gmail.com> wrote:

Dear

I created a field 'Created By on stock entry document by Setup -- Custom Field. I want to save user name who created document and want to print on print format report.


Can any body share idea and script



Thanks
MHI



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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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








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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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








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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er...@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un...@googlegroups.com.

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

 

 

If it is defined, then the code should work (it worked or me). When you run this in the javascript console, what output do you get?

Sent from mobile

On 03-Nov-2012, at 9:19 AM, stkitmanager <st...@gmail.com> wrote:

Dear Rushabh

Please explain how to define full name, In profile User first name, middle name and last name already defined.

Thanks
MHI
On 2 November 2012 08:31, Rushabh Mehta <rm...@gmail.com> wrote:
Hi,

The code "wn.user_info(user).fullname" should work if the user has a fullname defined.

To print current date and time in user format:
dateutil.str_to_user(dateutil.get_today()) + " " + dateutil.get_cur_time()
Try this in your javascript console to check errors.
best,
Rushabh


On Thu, Nov 1, 2012 at 10:29 AM, stkitmanager <st...@gmail.com> wrote:
Dear 

Your sent code is not working, printing email of user and how to print current date with time


thanks


On 30 October 2012 11:21, Anand Doshi <an...@iwebnotes.com> wrote:

Hi,


You need not save the user’s full name.

You can use this in your print format directly.
wn.user_info(doc.owner).fullname


thanks,
Anand.


On Tue, Oct 30, 2012 at 12:40 PM, stkitmanager <st…@gmail.com> wrote:

Dear

I created a field 'Created By   on stock entry document by Setup -- Custom Field. I want to save user name who created document and want to print on print format report.


Can any body share idea and script



Thanks
MHI



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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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

 

 




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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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

 

 




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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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

 

 




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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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

 

 




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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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

 

 



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

To post to this group, send email to er...@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un...@googlegroups.com.

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

 

 

Dear
Output is email id of created document user


On 3 November 2012 10:37, Rushabh Mehta <rm...@gmail.com> wrote:
If it is defined, then the code should work (it worked or me). When you run this in the javascript console, what output do you get?

Sent from mobile

On 03-Nov-2012, at 9:19 AM, stkitmanager <st...@gmail.com> wrote:

Dear Rushabh

Please explain how to define full name, In profile User first name, middle name and last name already defined.

Thanks
MHI
On 2 November 2012 08:31, Rushabh Mehta <rm...@gmail.com> wrote:

Hi,


The code "wn.user_info(user).fullname" should work if the user has a fullname defined.

To print current date and time in user format:
dateutil.str_to_user(dateutil.get_today()) + " " + dateutil.get_cur_time()

Try this in your javascript console to check errors.
best,
Rushabh


On Thu, Nov 1, 2012 at 10:29 AM, stkitmanager <st...@gmail.com> wrote:
Dear

Your sent code is not working, printing email of user and how to print current date with time


thanks


On 30 October 2012 11:21, Anand Doshi <an...@iwebnotes.com> wrote:

Hi,


You need not save the user's full name.

You can use this in your print format directly.
wn.user_info(doc.owner).fullname


thanks,
Anand.


On Tue, Oct 30, 2012 at 12:40 PM, stkitmanager <st…@gmail.com> wrote:

Dear

I created a field 'Created By on stock entry document by Setup -- Custom Field. I want to save user name who created document and want to print on print format report.


Can any body share idea and script



Thanks
MHI



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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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








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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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








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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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






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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er...@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un...@googlegroups.com.

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

 

 

Hi,


You can have a look at how it is used in erpnext's messages module:
https://github.com/webnotes/erpnext/blob/master/utilities/page/messages/messages.js#L129


I think the corresponding user's firstname and lastname must be missing.
If the fullnames are being shown in the list on the right side of messages module, it should ideally work.


Thanks,
Anand.

On Sat, Nov 3, 2012 at 2:31 PM, stkitmanager <st…@gmail.com> wrote:

Dear
Output is email id of created document user



On 3 November 2012 10:37, Rushabh Mehta <rm…@gmail.com> wrote:

If it is defined, then the code should work (it worked or me). When you run this in the javascript console, what output do you get?


Sent from mobile


On 03-Nov-2012, at 9:19 AM, stkitmanager <st…@gmail.com> wrote:

Dear Rushabh

Please explain how to define full name, In profile User first name, middle name and last name already defined.

Thanks
MHI
On 2 November 2012 08:31, Rushabh Mehta <rm...@gmail.com> wrote:

Hi,


The code "wn.user_info(user).fullname" should work if the user has a fullname defined.

To print current date and time in user format:
dateutil.str_to_user(dateutil.get_today()) + " " + dateutil.get_cur_time()

Try this in your javascript console to check errors.
best,
Rushabh


On Thu, Nov 1, 2012 at 10:29 AM, stkitmanager <st...@gmail.com> wrote:
Dear

Your sent code is not working, printing email of user and how to print current date with time


thanks


On 30 October 2012 11:21, Anand Doshi <an...@iwebnotes.com> wrote:

Hi,


You need not save the user's full name.

You can use this in your print format directly.
wn.user_info(doc.owner).fullname


thanks,
Anand.


On Tue, Oct 30, 2012 at 12:40 PM, stkitmanager <st…@gmail.com> wrote:

Dear

I created a field 'Created By on stock entry document by Setup -- Custom Field. I want to save user name who created document and want to print on print format report.


Can any body share idea and script



Thanks
MHI



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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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








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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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








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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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






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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er...@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un...@googlegroups.com.

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

 

 

Dear
Thanks for replying , for administrator, its printing name or first, last anme and for others , it printing email only


On 3 November 2012 13:08, Anand Doshi <an...@iwebnotes.com> wrote:
Hi,

You can have a look at how it is used in erpnext's messages module:

I think the corresponding user's firstname and lastname must be missing.
If the fullnames are being shown in the list on the right side of messages module, it should ideally work.


Thanks,
Anand.


On Sat, Nov 3, 2012 at 2:31 PM, stkitmanager <st…@gmail.com> wrote:

Dear
Output is email id of created document user



On 3 November 2012 10:37, Rushabh Mehta <rm…@gmail.com> wrote:

If it is defined, then the code should work (it worked or me). When you run this in the javascript console, what output do you get?


Sent from mobile


On 03-Nov-2012, at 9:19 AM, stkitmanager <st…@gmail.com> wrote:

Dear Rushabh

Please explain how to define full name, In profile User first name, middle name and last name already defined.

Thanks
MHI
On 2 November 2012 08:31, Rushabh Mehta <rm...@gmail.com> wrote:

Hi,


The code "wn.user_info(user).fullname" should work if the user has a fullname defined.

To print current date and time in user format:
dateutil.str_to_user(dateutil.get_today()) + " " + dateutil.get_cur_time()

Try this in your javascript console to check errors.
best,
Rushabh


On Thu, Nov 1, 2012 at 10:29 AM, stkitmanager <st...@gmail.com> wrote:
Dear

Your sent code is not working, printing email of user and how to print current date with time


thanks


On 30 October 2012 11:21, Anand Doshi <an...@iwebnotes.com> wrote:

Hi,


You need not save the user's full name.

You can use this in your print format directly.
wn.user_info(doc.owner).fullname


thanks,
Anand.


On Tue, Oct 30, 2012 at 12:40 PM, stkitmanager <st…@gmail.com> wrote:

Dear

I created a field 'Created By on stock entry document by Setup -- Custom Field. I want to save user name who created document and want to print on print format report.


Can any body share idea and script



Thanks
MHI



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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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








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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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








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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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






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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er...@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un...@googlegroups.com.

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

 

 

Hi,


Please go to setup > users. There click on those profiles and confirm if they have their first and last names mentioned.

Thanks,
Anand.

On Sat, Nov 3, 2012 at 3:36 PM, stkitmanager <st…@gmail.com> wrote:

Dear
Thanks for replying , for administrator, its printing name or first, last anme and for others , it printing email only



On 3 November 2012 13:08, Anand Doshi <an...@iwebnotes.com> wrote:
Hi,

You can have a look at how it is used in erpnext's messages module:

I think the corresponding user's firstname and lastname must be missing.
If the fullnames are being shown in the list on the right side of messages module, it should ideally work.


Thanks,
Anand.


On Sat, Nov 3, 2012 at 2:31 PM, stkitmanager <st…@gmail.com> wrote:

Dear
Output is email id of created document user



On 3 November 2012 10:37, Rushabh Mehta <rm…@gmail.com> wrote:

If it is defined, then the code should work (it worked or me). When you run this in the javascript console, what output do you get?


Sent from mobile


On 03-Nov-2012, at 9:19 AM, stkitmanager <st…@gmail.com> wrote:

Dear Rushabh

Please explain how to define full name, In profile User first name, middle name and last name already defined.

Thanks
MHI
On 2 November 2012 08:31, Rushabh Mehta <rm...@gmail.com> wrote:

Hi,


The code "wn.user_info(user).fullname" should work if the user has a fullname defined.

To print current date and time in user format:
dateutil.str_to_user(dateutil.get_today()) + " " + dateutil.get_cur_time()

Try this in your javascript console to check errors.
best,
Rushabh


On Thu, Nov 1, 2012 at 10:29 AM, stkitmanager <st...@gmail.com> wrote:
Dear

Your sent code is not working, printing email of user and how to print current date with time


thanks


On 30 October 2012 11:21, Anand Doshi <an...@iwebnotes.com> wrote:

Hi,


You need not save the user's full name.

You can use this in your print format directly.
wn.user_info(doc.owner).fullname


thanks,
Anand.


On Tue, Oct 30, 2012 at 12:40 PM, stkitmanager <st…@gmail.com> wrote:

Dear

I created a field 'Created By on stock entry document by Setup -- Custom Field. I want to save user name who created document and want to print on print format report.


Can any body share idea and script



Thanks
MHI



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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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








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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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








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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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






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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er...@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un...@googlegroups.com.

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

 

 

Dear

all user has first name mandatory and last name.


On 3 November 2012 14:11, Anand Doshi <an...@iwebnotes.com> wrote:
Hi,

Please go to setup > users. There click on those profiles and confirm if they have their first and last names mentioned.

Thanks,
Anand.


On Sat, Nov 3, 2012 at 3:36 PM, stkitmanager <st…@gmail.com> wrote:

Dear
Thanks for replying , for administrator, its printing name or first, last anme and for others , it printing email only



On 3 November 2012 13:08, Anand Doshi <an...@iwebnotes.com> wrote:
Hi,

You can have a look at how it is used in erpnext's messages module:

I think the corresponding user's firstname and lastname must be missing.
If the fullnames are being shown in the list on the right side of messages module, it should ideally work.


Thanks,
Anand.


On Sat, Nov 3, 2012 at 2:31 PM, stkitmanager <st…@gmail.com> wrote:

Dear
Output is email id of created document user



On 3 November 2012 10:37, Rushabh Mehta <rm…@gmail.com> wrote:

If it is defined, then the code should work (it worked or me). When you run this in the javascript console, what output do you get?


Sent from mobile


On 03-Nov-2012, at 9:19 AM, stkitmanager <st…@gmail.com> wrote:

Dear Rushabh

Please explain how to define full name, In profile User first name, middle name and last name already defined.

Thanks
MHI
On 2 November 2012 08:31, Rushabh Mehta <rm...@gmail.com> wrote:

Hi,


The code "wn.user_info(user).fullname" should work if the user has a fullname defined.

To print current date and time in user format:
dateutil.str_to_user(dateutil.get_today()) + " " + dateutil.get_cur_time()

Try this in your javascript console to check errors.
best,
Rushabh


On Thu, Nov 1, 2012 at 10:29 AM, stkitmanager <st...@gmail.com> wrote:
Dear

Your sent code is not working, printing email of user and how to print current date with time


thanks


On 30 October 2012 11:21, Anand Doshi <an...@iwebnotes.com> wrote:

Hi,


You need not save the user's full name.

You can use this in your print format directly.
wn.user_info(doc.owner).fullname


thanks,
Anand.


On Tue, Oct 30, 2012 at 12:40 PM, stkitmanager <st…@gmail.com> wrote:

Dear

I created a field 'Created By on stock entry document by Setup -- Custom Field. I want to save user name who created document and want to print on print format report.


Can any body share idea and script



Thanks
MHI



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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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








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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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








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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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






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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er...@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un...@googlegroups.com.

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

 

 

Hi,


Very strange. Are you using an older version? Is your system up to date from the latest master?

- Rushabh


On Sat, Nov 3, 2012 at 5:45 PM, stkitmanager <st…@gmail.com> wrote:

Dear

all user has first name mandatory and last name.


On 3 November 2012 14:11, Anand Doshi <an...@iwebnotes.com> wrote:

Hi,


Please go to setup > users. There click on those profiles and confirm if they have their first and last names mentioned.

Thanks,
Anand.



On Sat, Nov 3, 2012 at 3:36 PM, stkitmanager <st…@gmail.com> wrote:

Dear
Thanks for replying , for administrator, its printing name or first, last anme and for others , it printing email only



On 3 November 2012 13:08, Anand Doshi <an...@iwebnotes.com> wrote:
Hi,

You can have a look at how it is used in erpnext's messages module:

I think the corresponding user's firstname and lastname must be missing.
If the fullnames are being shown in the list on the right side of messages module, it should ideally work.


Thanks,
Anand.


On Sat, Nov 3, 2012 at 2:31 PM, stkitmanager <st…@gmail.com> wrote:

Dear
Output is email id of created document user



On 3 November 2012 10:37, Rushabh Mehta <rm…@gmail.com> wrote:

If it is defined, then the code should work (it worked or me). When you run this in the javascript console, what output do you get?


Sent from mobile


On 03-Nov-2012, at 9:19 AM, stkitmanager <st…@gmail.com> wrote:

Dear Rushabh

Please explain how to define full name, In profile User first name, middle name and last name already defined.

Thanks
MHI
On 2 November 2012 08:31, Rushabh Mehta <rm...@gmail.com> wrote:

Hi,


The code "wn.user_info(user).fullname" should work if the user has a fullname defined.

To print current date and time in user format:
dateutil.str_to_user(dateutil.get_today()) + " " + dateutil.get_cur_time()

Try this in your javascript console to check errors.
best,
Rushabh


On Thu, Nov 1, 2012 at 10:29 AM, stkitmanager <st...@gmail.com> wrote:
Dear

Your sent code is not working, printing email of user and how to print current date with time


thanks


On 30 October 2012 11:21, Anand Doshi <an...@iwebnotes.com> wrote:

Hi,


You need not save the user's full name.

You can use this in your print format directly.
wn.user_info(doc.owner).fullname


thanks,
Anand.


On Tue, Oct 30, 2012 at 12:40 PM, stkitmanager <st…@gmail.com> wrote:

Dear

I created a field 'Created By on stock entry document by Setup -- Custom Field. I want to save user name who created document and want to print on print format report.


Can any body share idea and script



Thanks
MHI



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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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








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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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








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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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






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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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

To post to this group, send email to er...@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un...@googlegroups.com.

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