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

Hello,

I have created a function which filter the state according the country. But the problem is some country don't have states in Odoo database. Any solution please ? Thank you

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

Hello there, 

Well, some Countries are pre-filled with the States data, for other countries User have to manually add. The best way is to do that is under Contacts Menu -> Configuration (Need to install Contacts module if not already there.)



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

Hi,

As there is no states for some countries in the db, you can manually enter it to the db. While creating the states specify its country also.

For example you can create from the customer form view, then in the states field, click on the create and edit.

Thanks

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