docker-odoo/16.0/extra-addons/partner_firstname/hooks.py
Arila Barnes 5594ca8d5d Added support for OpenEMS Odoo Add-ons
Signed-off-by: Arila Barnes <axmsoftware@Arilas-MacBook-Air-2.local>
2024-07-30 09:30:39 -07:00

10 lines
264 B
Python

# Copyright 2017 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import SUPERUSER_ID, api
def post_init_hook(cr, _):
env = api.Environment(cr, SUPERUSER_ID, {})
env["res.partner"]._install_partner_firstname()