Mixins in the Odoo 15 & Its Features

Mixins are abstract models that provide useful features through inheritance. They do not have an actual representation in the database. Instead, they provide some set of features that can be mixed with other models. By default the Odoo addons provide several mixins, some of the commonly used mixins are, ‘mail.thread’, ‘mail.activity.mixin’, ‘rating.mixin’, etc. In this […]

Method Decorators in Odoo 15

In Odoo, the method decorators are used to do or add additional functionalities with the functions with which we have added the decorator. The method decorators are python functions defined in Odoo/api.py, which can be used with the other functions as wrapper functions. The method decorators in Odoo 15 are described below:  api.onchange The onchange […]

Method Decorators in Odoo 14

Decorators can be used to update the method environment. It is helpful for extending the characteristics of a function or adding functionality to a process that has specific requirements. These decorators explicitly pass parameters to the method. This allows you to write functions smoothly and avoid complexity. There are many types of decorators used in […]