Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: SMS gateway

Entity: ir.actions.server

Compute Method: _compute_sms_method

Inputs Method Outputs
to_reset = self.filtered(lambda act: act.state != 'sms')
if to_reset:
            to_reset.sms_method = False
other = self - to_reset
if other:
            other.sms_method = 'sms'

Back to entity