Hi,
Context
Context is a dictionary carrying session data. Context can be used in the server or the client side. In your view you can add new values like this:
<button name="apply" context="{'key': value}" />and get this value in the server side like this:
value = self.env.context.get('key')
attrs
attrs is a dictionary carrying some field option like invisible, required and readonly. attrs allow you to define condition for each option like this:
<field name="name" attrs="{'invisible': [('condition', '=', True)]}">The field name will be invisible if condition is true.
Best regards.