What does with_context

If you want to extend existing context you should use with_context method. It will return the same recordset with extended context.

For example, if you want to add a new flag printed in the current context you should add following code in your method:

self.with_context(printed=True)

Now if you print the context it should contain the printed flag.

Share the knowledge!

2 Comments

Leave a Reply

Your email address will not be published.