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

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.

アバター
破棄
著作者

You are the best, Thanks

最善の回答

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.

アバター
破棄
関連投稿 返信 ビュー 活動
1
2月 24
2089
3
10月 18
4110
1
7月 25
1328
3
7月 25
4347
0
5月 25
896