Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
416 Представления

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
2056
3
окт. 18
4106
1
июл. 25
1281
3
июл. 25
4308
0
мая 25
882