oca-technical/odoo-bringout-oca-hr-hr_employee_firstname/hr_employee_firstname/hooks.py
2025-08-29 15:43:03 +02:00

10 lines
313 B
Python

# Copyright 2016-2019 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import SUPERUSER_ID
from odoo.api import Environment
def post_init_hook(cr, _):
env = Environment(cr, SUPERUSER_ID, {})
env["hr.employee"]._install_employee_firstname()