Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
332 Widoki

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.

Awatar
Odrzuć
Autor

You are the best, Thanks

Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lut 24
1986
3
paź 18
4065
1
lip 25
1184
3
lip 25
4133
0
maj 25
834