oca-technical/odoo-bringout-oca-iot-iot_input_oca/iot_input_oca/tests/models.py
2025-08-29 15:43:03 +02:00

10 lines
231 B
Python

from odoo import models
class ResPartner(models.Model):
_inherit = "res.partner"
def test_fake_iot_input(self, value):
partner = self.browse(value)
partner.message_post(body=str(value))
return {}