Description:
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. 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. 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.