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:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- Project
- MRP
신고된 질문입니다
1
회신
2571
화면
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
4월 21
|
4 | ||
|
1
4월 21
|
8 | ||
|
1
10월 21
|
5032 | ||
|
1
5월 21
|
7130 | ||
|
5
10월 24
|
12382 |