mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
This way, it will be easier to decide who can set discount or not. The current group scope is too broad.
11 lines
371 B
Python
11 lines
371 B
Python
# Copyright 2020 David Vidal
|
|
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
|
|
from openupgradelib.openupgrade import migrate
|
|
|
|
|
|
@migrate()
|
|
def migrate(env, version):
|
|
"""Put all partner managers as global discount managers"""
|
|
users = env.ref("base.group_partner_manager").users
|
|
env.ref("base_global_discount.group_global_discount").users = users
|