osv_memory one2many list should be able to pass the parent id as a context
Registered by
Dukai Gábor
When the user clicks on the small 'New' button on a one2many list, the parent object should be able to pass it's id in a context to the new child object. This would help set the proper defaults for the child object.
This works for osv_osv objects, the one2many can use context = " {'something' : active_id} " This will pass the id of parent to the child(o2m) field for the saved record.
But this is a big problem in case of osv_memory wizards because they don't support passing the active_id. User defaults cannot be set depending on many2one fields since their ids change every time a user opens the wizard.
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- None
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- New
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
Related branches
Related bugs
Bug #388892: one2many list should be able to pass the parent id as a context | Invalid |
Bug #786498: pass context to one2many osv memory wizard | Confirmed |
Sprints
Whiteboard
(?)