Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
17 Trả lời
29588 Lượt xem

I believe I read somewhere that it should be possible to customize the postal address format, without making a new invoice layout.

Here in Norway we use the <postalcode> <city> format, like 1234 Cityname. Is it possible to configure this in OpenERP?

Ảnh đại diện
Huỷ bỏ

What is the OpenERP version you use ? V7 ? V6 ?

Tác giả

Sorry, it's V7.

Câu trả lời hay nhất

In V7, go to sale -> configuration -> address book -> localization -> country (make sure you have technical data right on your user account to see this menu).

Then choose your Country and setup address_format field.

eg:

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

Note:

There is a function fields_view_get_address for the format_address class in openerp/addons/base/res/res_parnter.py that inherit form view to change layout of address. Think it could be what you want to achieve.

Ảnh đại diện
Huỷ bỏ
Tác giả

Sorry for mixing up the thread, but this brings up another question: Why don't I have a config menu for the sales module? I have got it for the accounting module, and I am admin. Is there some configuration settings for disabling config menu?

Make sure your admin user has the technical features box checked to see all menus.

Tác giả

Thanks, this works like a charm. Next step is to update the invoice layout alltogether, but I'll leave that for another day.

Câu trả lời hay nhất

In Version 9.0 Community (and most probably also Enterprise) you'll find it under "Sales/Configuration/Contacts/Localization/Countries", select the country of your choice and edit the settings.

Ảnh đại diện
Huỷ bỏ

Thanks for adding this answer.

Câu trả lời hay nhất

How can I add phone to address format?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

How can I change the address format in odoo 9? There is no address book in sales

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

I tried this too, like answered above. But it changes also the way the fields are displayed. If I use the example above as format, my fields at the form are displayed as:

[Street ]

[Street2 ]

[ZIP ]

[City ]

[State ]

[Country ]

Instead of the wanted:

[Street ]

[Street2 ]

[ZIP ][City ]

[Country ]

How to change this? (Without editing the xml view manually).

Ảnh đại diện
Huỷ bỏ

Can you send a screenshot ? or send to me if you don't have enough karma ?

you should not remove the state field. Otherwise, you would never been able to record companies in other countries

@Fabien: If your company just have business in france for example, you don't need state. I think in most case (for my experience), i can work without state. So is there a solution or not ? that's just the question :)

@Fabien Pinckaers: I thought [Country] (country_name) defines the country?

@Nicolas JEUDY: I don't know how to send screenshots, you can find them via the links. 4 screenshots, standard localization (1) & how it appears (2), custom localization (3) & how it appears on the screen (4). (1) http://www.mijnalbum.nl/GroteFoto-YKJZSNH6.jpg, (2) http://www.mijnalbum.nl/GroteFoto-BR4URYER.jpg, (3) http://www.mijnalbum.nl/GroteFoto-4LL4VOUM.jpg, (4) http://www.mijnalbum.nl/GroteFoto-GQTG3IWF.jpg

Câu trả lời hay nhất

This worked for me. hope it helps.

%(street)s

%(street2)s

%(zip)s %(city)s

%(state_name)s

%(country_name)s

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 12 24
9449
3
thg 9 24
21600
5
thg 12 24
52900
4
thg 7 24
10560
7
thg 8 23
10903