Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4441 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
zář 22
1410
0
srp 21
2972
0
lis 24
1001
1
zář 17
5762
5
srp 25
9687