Edit address_display

Hi,

I wanted to edit the address_display. I edited the default address doctype to:

{{ customer.address_line1 }}<br>{% if customer.address_line2 %}{{ customer.address_line2 }}<br>{% endif -%}
{{ customer.pincode }}&nbsp;{{ customer.city }}
<br>{{ customer.country }

I also edited Sales Invoice >> address_display but that did not work.

Best,
Daniel

Your query is not clear enough. Why you have mentioned customer.address_line1 instead of address_line1? Please share your changes, have you pushed the code to github?

Hi,

thank you for your fast reply.
I have tried address_line1 as well…the output was:

{{ no such element: erpnext.accounts.doctype.sales_invoice.sales_invoice.SalesInvoice object['address_line1'] }}

Daniel

Sorry, but still I could not understand, what you want to achieve. Can you provide step-by-step details, you have done and actually what you want?

1 Like

Hi, actually my addresses look like the following in printout as I am bond to “address_display”:

Name
Line 1
Line 2
City
PIN CODE
Phone

And I want to change it to:

Name
Line 1
Line 2
PINCODE - CITY
Country

Best regards,
Daniel

You can close or delete it. Found it under:

Setup → Printing → Address Layout

Sorry got one’s wires crossed xD

1 Like