it should be simple I think.
all I want is just to show a context into a field.
ex:
<span>the active_id is {context.get('active_id', false)}</span>
or
<button string="the active_id is: {context.get('active_id',false)}" />
I have spent days to look for this, yet no answer has been found. Any help would be very much appreciated. Thanks
You have to add this field in model definition, for example:
context_active_id = fields.Char(default=lambda self: self.env.context.get('active_id', False), store=False, readonly=True)
and add that field to the view.
<field name='context_active_id' />