Skip to content

Commit

Permalink
Merge pull request #4060 from ForgeFlow/16.0-fix-crm
Browse files Browse the repository at this point in the history
[16.0][FIX] crm: check falsy value in query
  • Loading branch information
MiquelRForgeFlow authored Jul 6, 2023
2 parents 21c54eb + 232ef7d commit 360c08c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openupgrade_scripts/scripts/crm/16.0.1.8/pre-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def res_partner_compute_team_id(env):
JOIN res_partner parent
ON p.parent_id = parent.id
WHERE p.team_id IS NULL
AND p.is_company='f'
AND NOT p.is_company
AND parent.team_id IS NOT NULL
) as res(partner_id, parent_team_id)
WHERE p.id = res.partner_id
Expand Down

0 comments on commit 360c08c

Please sign in to comment.