Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
387 Weergaven

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.

Avatar
Annuleer
Auteur

You are the best, Thanks

Beste antwoord

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.

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
feb. 24
2030
3
okt. 18
4086
1
jul. 25
1249
3
jul. 25
4243
0
mei 25
853