Environment and Context in Odoo — a practical guide to Odoo env context with clear examples you can reuse in real projects.
Odoo Tutorial Series (36/112). Prefer one article? Read the complete Odoo tutorial.
Short description
Pass context with with_context(); switch company/user carefully with with_company/with_user.
env tip
self.env.user
self.env.company
self.with_context(lang='en_US').name