Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
437 Lượt xem

I created a Many2one field in Sales Order named x_studio_releted_subscription (model: sale.order).

The field should show all subscription orders that have the same partner and allow me to select one.

How can I do this using a domain?

I tried using:

[("partner_id", "=", partner_id)]

but I get the error: Domain is invalid. Please correct it.

Ảnh đại diện
Huỷ bỏ
Tác giả

You are the best, Thanks

Câu trả lời hay nhất

You can set it [['partner_id', '=', 1]]  Then go to the view xml (Need devloper mode to be activated), and search for studio customization then find your domain in XML and replace 1 with partner_id then save.

Hope it helps.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 2 24
2092
3
thg 10 18
4110
1
thg 7 25
1332
naked domain set up Đã xử lý
3
thg 7 25
4351
0
thg 5 25
899