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:
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
0
เม.ย. 21
|
4 | ||
|
1
เม.ย. 21
|
8 | ||
|
1
ต.ค. 21
|
4901 | ||
How to add tags color for custom models
แก้ไขแล้ว
|
|
1
พ.ค. 21
|
7013 | |
|
5
ต.ค. 24
|
12146 |