Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
10915 มุมมอง

Hello,

how can i change the address format in customers form view? Can it be changed by configuration or i need a module for this? image description

Thank you.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Could you check the following possible configuration available for each country:

Sales->Configuration->Address Book->Localization->Countries

Open your country and edit

%(street)s
%(street2)s
%(city)s %(state_code)s %(zip)s
%(country_name)s

to

%(street)s
%(street2)s
%(zip)s %(state_code)s %(city)s
%(country_name)s

Will this help you?

PS. In reports use <display_address(o.partner_id)> when printing the address.

อวตาร
ละทิ้ง
ผู้เขียน

the address format at this place is right. if i change something there it will not change the form view...

คำตอบที่ดีที่สุด

That needs to be changed in the XML view declaration of the form. For a quick change you can enable developer mode, go to the form and click "Edit FormView", then swap the city and zip tags.

A much better solution is to create a module and inherit that view, then replace the city field with zip and the zip field with city.

อวตาร
ละทิ้ง
ผู้เขียน

i know that. but i want change the format in the customer form view...

I'm not sure what you mean by that. Change the order of the fields themselves when looking at a customer record?

ผู้เขียน

i updated my question with an image..

ผู้เขียน

ok, thank you very much. so there is no config for this and i need to create a module...

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มี.ค. 15
7935
1
มี.ค. 15
12376
1
ก.พ. 24
2269
1
ก.พ. 22
2302
1
ก.ค. 21
3066