Browse Source

[MIG] base_location: Avoid error on null zip numbers

12.0
Pedro M. Baeza 5 years ago
parent
commit
111be4de1b
  1. 1
      base_location/migrations/12.0.1.0.0/post-migration.py

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

@ -25,6 +25,7 @@ def migrate(env, version):
FROM res_better_zip rbz
WHERE city_id IS NULL
AND rbz.country_id IS NOT NULL
AND rbz.name IS NOT NULL
GROUP BY city, state_id, country_id
ON CONFLICT DO NOTHING""",
)

Loading…
Cancel
Save