تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3929 أدوات العرض

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?

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أبريل 17
4351
2
أغسطس 24
1460
0
يناير 25
1338
2
يونيو 23
1749
0
مايو 23
1797