Browse Source

[FIX] sudo

16.0
default 6 months ago
parent
commit
2d1d27e550
  1. 2
      crock_base/hooks.py

2
crock_base/hooks.py

@ -12,7 +12,7 @@ _logger = logging.getLogger(__name__)
def post_init_hook(cr, registry): def post_init_hook(cr, registry):
env = Environment(cr, SUPERUSER_ID, {}) env = Environment(cr, SUPERUSER_ID, {})
env.sudo().ref("base.main_partner").write(
env.ref("base.main_partner").write(
{ {
"association": True, "association": True,
"ffck_network": True, "ffck_network": True,

Loading…
Cancel
Save