mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
Running the migration script fails with:
AttributeError: 'psycopg2.extensions.cursor' object has no attribute 'ref'
@moduon
9 lines
300 B
Python
9 lines
300 B
Python
from openupgradelib import openupgrade
|
|
|
|
|
|
@openupgrade.migrate()
|
|
def migrate(env, version):
|
|
users_billing = env.ref("account.group_account_invoice").users
|
|
group = env.ref("account_move_force_removal.group_account_move_force_removal")
|
|
group.users = [(4, user.id) for user in users_billing]
|