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

please help me in finding solution 

 i have two drop down  in Xml template  (using only controller not model.py )


Note : i am getting countries and states as follows using controller 


country = request.env['res.country'].search([])

state = request.env['res.country.state'].search([])

in first drop down when i  select country  india

then i want to see on states related with india in second drop down field


Thanks in advance

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 6 24
1705
1
thg 12 23
1410
1
thg 4 23
1581
1
thg 3 23
2406
0
thg 12 22
2001