Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
4401 Tampilan

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.

Avatar
Buang
Jawaban Terbai

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.

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
0
Sep 22
1393
0
Agu 21
2926
0
Nov 24
968
1
Sep 17
5710
5
Agu 25
9450