avo
avo copied to clipboard
Access parent record on child actions
Context
When running an action on an association there is no straightforward way to access the parent record.
Workaround
Passing parent record as argument as explained in detail here https://github.com/avo-hq/avo/discussions/3159#discussioncomment-10405595
Demo commit: https://github.com/avo-hq/avo/commit/b55d4e49e7e667ceb59e561222f12e5fc1eb117f
Approach
- Document the workaround OR
- Implement a way to access the parent record on actions
def fields
anddef handle
methods.