Search Here

Pages

Thursday, 2 August 2018

Get current logged in user id in odoo

In this article you will learn how to get active_id or current user login id. The question is why we need this id. The answer is that on the basis of current user we want to perform some action or show records/data on list or tree view, on odoo field or on odoo controller. In this tutorial I will show you different ways to get current user or logged in user id or active id.

Odoo Web Controller

Today I am gonna talk about odoo controller. By using odoo controller you can create front end or web pages that are integrated with our odoo modules. It means that instead of showing data on CRM or odoo typical form or tree view, you can show records or data on web pages. And we will achieve this using custom web controller or odoo controller.