Browse Source

Fix migration when state_id is NULL

nj-12.0-partner_gogocarto_export_api
ypapouin 5 years ago
committed by default
parent
commit
09912a73a2
  1. 2
      base_location/migrations/12.0.1.0.0/post-migration.py

2
base_location/migrations/12.0.1.0.0/post-migration.py

@ -36,7 +36,7 @@ def migrate(env, version):
SET city_id = rc.id
FROM res_city rc
WHERE rc.name = rbz.city
AND rc.state_id = rbz.state_id
AND rc.state_id IS NOT DISTINCT FROM rbz.state_id
AND rc.country_id = rbz.country_id
AND rbz.city_id IS NULL""",
)

Loading…
Cancel
Save