Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
447 Переглядів

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.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
лют. 24
2100
3
жовт. 18
4117
1
лип. 25
1350
naked domain set up Вирішено
3
лип. 25
4393
0
трав. 25
916