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

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.