In Odoo, when there is a need to invoke a Python function, it can be achieved through ORM (Object-Relational Mapping) calls.
orm.call ('model', method, argument)
In the provided example, an ORM call was made to invoke the method defined in the current model. Upon calling the method, the ORM call returns the data generated by the method.