Skip to content

Commit 22086f1

Browse files
VPAeLBati
authored andcommitted
[MIG] l10n-it-location-nuts: Migration to 18.0
1 parent 511b653 commit 22086f1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

l10n_it_location_nuts/hooks.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@
33

44
import logging
55

6-
from odoo import SUPERUSER_ID, api
7-
86
_logger = logging.getLogger(__name__)
97

108

11-
def post_init_hook(cr, registry):
9+
def post_init_hook(env):
1210
"""Define Italian specific configuration in res.country."""
13-
env = api.Environment(cr, SUPERUSER_ID, {})
1411
italy = env.ref("base.it")
1512
_logger.info("Setting Italy NUTS configuration")
1613
italy.write({"state_level": 4})

0 commit comments

Comments
 (0)