mirror of
https://github.com/bringout/oca-workflow-process.git
synced 2026-04-24 00:32:02 +02:00
10 lines
419 B
Python
10 lines
419 B
Python
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
from odoo import SUPERUSER_ID, api
|
|
|
|
|
|
def enable_multi_locations(cr, registry):
|
|
env = api.Environment(cr, SUPERUSER_ID, {})
|
|
ResConfig = env["res.config.settings"]
|
|
default_values = ResConfig.default_get(list(ResConfig.fields_get()))
|
|
default_values.update({"group_stock_multi_locations": True})
|
|
ResConfig.create(default_values).execute()
|