コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4450 ビュー

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
1412
0
8月 21
2984
0
11月 24
1013
1
9月 17
5769
5
8月 25
9713