For example a country has multiple cities ... when i pick a country from the first selection,i want my second select field to populate with the cities of the picked country.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
Can't be done directly in Odoo Studio, but it's quite easy to manually update the view created by Studio.
You need to go to Settings > Technical > Views > User Interface and search for "Studio". You should find the new view, which will only show the new fields or any other changes you have made (the View name will start with "Odoo Studio").
So in this example I am selecting based on another field I added in Studio
<field name="x_studio_field_1zo8y" domain="[('parent_id', '=', x_studio_field_KdnyA)]" />
In your example parent_id would be the country code field in the City table, and x_studio_field_KdnyA would be the country entered by the user.
Note that Studio will show this as an invalid domain so you have to directly edit the view to make any further changes. But if you mess things up you can always delete the Studio view and start again.
thanks for the response yeah But how i do that in studio ?
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 5 25
|
2856 | ||
|
2
thg 12 21
|
5849 | ||
Odoo studio icon is disabled
Đã xử lý
|
|
1
thg 4 25
|
4734 | |
|
0
thg 8 19
|
2852 | ||
|
1
thg 10 22
|
2894 |
I think you are talking about dependent drop down, have a look into: http://learnopenerp.blogspot.com/2016/10/onchange-many2one-filed-in-odoo.html