Retrieving Custom Address Field during Lookup from e.g. Sales Order

Dear Experts,

This is my scenario:
- Created a custom address field called address_line3
- Create a new sales order
- When retrieving the Shipping Address, upon selecting the desired shipping address from the list (shipping_address_name), I would like to retrieve the full address including address_line3 in the shipping_address field

Is this possible? I notice that the JSON returned when selecting the shipping address from the list does not include the custom field. If so, is there any place I can customize to have my desired output from the JSON?

Thank you.


Javier


  1. Please be kind and don't send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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/b28e4e2e-f745-43ab-9c3a-75d3638a4e25%40googlegroups.com.

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


On 23-Sep-2014, at 2:06 pm, Javier Wong <bo...@gmail.com> wrote:

Dear Experts,

This is my scenario:
- Created a custom address field called address_line3
- Create a new sales order
- When retrieving the Shipping Address, upon selecting the desired shipping address from the list (shipping_address_name), I would like to retrieve the full address including address_line3 in the shipping_address field


Maybe you can fix the Address Template ?

Setup > Printing and Branding > Address Template

Is this possible? I notice that the JSON returned when selecting the shipping address from the list does not include the custom field. If so, is there any place I can customize to have my desired output from the JSON?

Thank you.


Javier


  1. Please be kind and don’t send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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/b28e4e2e-f745-43ab-9c3a-75d3638a4e25%40googlegroups.com.

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


  1. Please be kind and don't send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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/65CD7DF9-41B2-4B9E-AAA3-9CA625F018B6%40gmail.com.

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

Thanks Rushabh, worked wonders.

Just for sharing, we successfully manage to create fields for C/O (Care Of) that is used for shipping addresses especially when dealing with trading companies (customers) whom want the goods to be delivered to their customers directly.

Here is our address template for sharing. It will only show the C/O names if the address is used for shipping. This template will affect all documents that use shipping addresses such as Sales Orders and Invoices (if you create custom fields for fetching).

Hope this helps.

@bohlian, you can fix the standard template and Address and send a pull-request.

Just one Care Of should be fine for 99.99 cases

thanks!