We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 511b653 commit 22086f1Copy full SHA for 22086f1
l10n_it_location_nuts/hooks.py
@@ -3,14 +3,11 @@
3
4
import logging
5
6
-from odoo import SUPERUSER_ID, api
7
-
8
_logger = logging.getLogger(__name__)
9
10
11
-def post_init_hook(cr, registry):
+def post_init_hook(env):
12
"""Define Italian specific configuration in res.country."""
13
- env = api.Environment(cr, SUPERUSER_ID, {})
14
italy = env.ref("base.it")
15
_logger.info("Setting Italy NUTS configuration")
16
italy.write({"state_level": 4})
0 commit comments