How to Add a Context and Domain in Odoo 15 | What Is a Context in Odoo | Odoo Development Tutorials
In this video, we will discuss How to add a context and domain in odoo15. The context in Odoo is a part of the environment of a record set.
#odoo15developmentvideos
Video Contents
--------------------------
00:05 Introduction
00:40 Adding a domain
03:15 Adding a context
It is basically a python dictionary that carries the session data. This data can be used on both the client-side user interface and also the ORM business logic in the case of the server-side.
So most importantly we can use the context to pass the specific data to a function in odoo. You may have seen that almost all methods in odoo use a context parameter. #odoo15technicaltutorials
Odoo domain is used to select records from a model or database table. It is a very common use case when you need to display a subset of all available records from an action, or to allow only a subset of possible records to be the target of a many2one relation.
The way to describe these filters in Odoo is called a domain. It can be defined as a list of operations that are used to filter your data or for searching. #odoo15tutorials
Connect With Us:
➡️Website: https://www.cybrosys.com/
➡️Email : info@cybrosys.com
➡️Twitter: https://twitter.com/cybrosys
➡️LinkedIn: https://www.linkedin.com/company/cybrosys/
➡️Facebook: https://www.facebook.com/cybrosystechnologies
➡️Instagram: https://www.instagram.com/cybrosystech/
➡️Pinterest: https://in.pinterest.com/cybrosys/