odoo/upgrade-util#281

Created by Discuss, Sébastien Theys (seb)
Closed
label
seb-odoo:master-lang-week--seb
head
1231f07db6a6e7b6f969191f8639781e659b54ea
odoo/upgrade-util
master #281

[FIX] modules: avoid conflicts on ir_model_data in new_module

There is a condition for the ir_module_module to exist, but it is possible that while the module doesn't exist, the ir_model_data for this (module, name) do in fact exists, which leads to the unique key failing when attepting to insert these values again.

This was detected when upgrading from 11.0 to 18.0 in one run.