How to set a context for a field in a O2M through Studio
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
If you want to set a context for a field of another model via a O2M, you have the possibility to set the context directly on this O2M and not in the related model.
An example would be to auto-fill the partner_id field of the timesheets (timesheet_ids) on a ticket. You can open Studio, select the timesheet_ids field and directly add the default value for the partner_id in the context of this field:
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
0
أبريل 21
|
4 | ||
|
1
أبريل 21
|
8 | ||
|
1
أكتوبر 21
|
4880 | ||
|
1
مايو 21
|
7005 | ||
|
5
أكتوبر 24
|
12136 |