Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3937 Lượt xem

Is it possible to alter the domain on a field via a server action?

Let's say I create a server action to run when the product_id is updated for an sale.order.line. Is it possible to run python code in that server action that will adjust the domain on the route_id field in the view?

I can see in the documentation that programmatically this is possible:

https://www.odoo.com/documentation/10.0/reference/orm.html#odoo.api.onchange

But how would I accomplish the same thing via the Odoo UI Server Action tool?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 17
4355
2
thg 8 24
1475
0
thg 1 25
1359
2
thg 6 23
1760
0
thg 5 23
1814