콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
4567 화면

I am using Website Form Builder module 12v

Also displaying res.partner model form in website by using Website Form Builder module.
But problem is i can't set domain in a field in website form.

Where have multiple Many2one field. like as division_id, district_id

district model is below:

name = fields.Char(required=True, size=100)
division_id = fields.Many2one('divisions', required=True, ondelete='cascade')

I need to set domain division_id in district model
by default district will be display empty. After select division, district value will be display based on division_id.

It would be grateful for me, if anyone can help me about this issue.

아바타
취소
베스트 답변

You will have to create change event in JS on the field and based on the selected value, you can set the another drop-down field.

아바타
취소
관련 게시물 답글 화면 활동
0
9월 22
1500
0
8월 21
3093
0
11월 24
1099
1
9월 17
5843
2
8월 25
546