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
返信
2483
ビュー
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
|
4942 | ||
|
1
5月 21
|
7033 | ||
|
5
10月 24
|
12181 |