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

I tried a lot but unable to achieve this..my scenario is

I have 2 selection field in qweb one is for country selection and another is for states selection.

when user chooses a country then the second selection field should show only the states of the selected country.

my code is  working statically , not dynamically.


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

Hi,

You can achieve this by adding domain to second many2one field. Please refer this link for this concept.

you can also use many2one field as selection filed by using widget ="selection" in field definition in xml.

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