partner-contact/partner_firstname/hooks.py

11 lines
310 B
Python
Raw Normal View History

2021-03-23 19:36:29 +00:00
# Copyright 2017 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from flectra import api, SUPERUSER_ID
def post_init_hook(cr, _):
with api.Environment.manage():
env = api.Environment(cr, SUPERUSER_ID, {})
env['res.partner']._install_partner_firstname()