Computed Fields and @api Depends on Odoo 15 | Odoo 15 Development Tutorials

Опубликовано: 24 Январь 2022
на канале: Cybrosys Technologies
2,612
15

In this video, it discusses compute function and how to store value in a field using this functionality and @api.depends operation.

Odoo provides compute function which helps to calculate from some other fields. It is just like any other regular field along with an additional argument compute.

Video Contents
0:00 Introduction
0:36 Field declaring
1:41 Defining @api.depends operation
2:51 Define Compute function and compute the value
4:09 Adding field into XML files of view
4:31 Updating in UI

Which can be stored directly and retrieved directly from a database, and the api operation @api.depends helps to compute the value based on the change in the depends field.


Смотрите видео Computed Fields and @api Depends on Odoo 15 | Odoo 15 Development Tutorials онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Cybrosys Technologies 24 Январь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,612 раз и оно понравилось 15 людям.