Yes, I think the first condition in Odoo should be 'if kind == 'on_create'.