i have 2 selections fields in a one2many field. options for the 1st selection field is given in py file. and options of 2nd selection field depends on the value of 1st selection field. any idea? i had 1st initialized the 2nd selection field with an empty list , and on onchange of 1st selection i had updated the empty list but the updated empty list is not showing in the xml(in view). any idea? or any another method?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- 프로젝트
- MRP
신고된 질문입니다
2
답글
5716
화면
hi,
ok, thank you :)
Hi,
I think this method will not work, bcz the selection fields just populated when the form is loaded; so the onchange function will not fill the selections. You can make the second selection a many2one field to a new model that preserve your data, and the onchange function return just a domain to the desired ids in that many2one field.
Hope this could helps ...
| 관련 게시물 | 답글 | 화면 | 활동 | |
|---|---|---|---|---|
|
|
4
10월 18
|
4978 | ||
|
|
1
3월 15
|
5434 | ||
|
|
2
9월 23
|
6504 | ||
|
|
5
7월 22
|
6800 | ||
|
|
2
4월 18
|
13972 |