mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
14 lines
415 B
Python
14 lines
415 B
Python
# coding: utf-8
|
|
# Copyright 2018 Opener B.V.
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
from odoo import SUPERUSER_ID, api
|
|
|
|
|
|
def post_init_hook(cr, pool):
|
|
""" Add everyone to the properties group by default upon installation
|
|
"""
|
|
env = api.Environment(cr, SUPERUSER_ID, {})
|
|
config = env['sale.config.settings'].create({})
|
|
config.group_mrp_properties = 1
|
|
config.execute()
|