I've created an embedded kanban view in another tab of res.partner:
(had to show code as an image because this editor kept messing up my code)
Based on 'is_adding_pet_to_client', I make some fields invisible on the main res.partner form view.
Everything works fine when I click the Add button on the kanban view--it opens the view, passes context, and based on the is_adding_pet_to_client flag, hides the fields correctly.
Now, if there is a card in the kanban and I click it to open it, the context doesn't get passed. Here is the beginning of my kanban card template:
The global click works and the card opens. But the context from above never gets passed. I've tried changing the div as follows:
...based on some samples I found on the web. But t-attf-data-context doesn't seem to help. No matter what, clicking on the kanban card never changes the variable in my object.
Can someone please help me figure out how to pass context from the kanban card click?
Thanks.