Skip to content

Commit

Permalink
[FIX] project: correct m2m table setup
Browse files Browse the repository at this point in the history
  • Loading branch information
MiquelRForgeFlow committed Nov 11, 2021
1 parent 46d22f4 commit e1facc0
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ def map_project_project_rating_status(env):

def _fill_res_users_m2m_tables(env):
# TODO: Take into account channels and task followers part of the old rule
# Remove temp table and re-create m2m table through ORM method
openupgrade.logged_query(env.cr, "DROP TABLE project_allowed_internal_users_rel")
openupgrade.logged_query(env.cr, "DROP TABLE project_allowed_portal_users_rel")
openupgrade.logged_query(env.cr, "DROP TABLE project_task_res_users_rel")
env.registry.init_models(
env.cr, ["project.project", "project.task"], env.context, install=False
)
openupgrade.logged_query(
env.cr,
"""
Expand Down

0 comments on commit e1facc0

Please sign in to comment.