from odoo import fields, models class TestAction(models.Model): _name = "test.action" name = fields.Char() def action_do_something(self): for record in self: record.name = "Something" return True