Commit fc5b908
committed
[FIX] util.move_model: modify email_template only if model column exists
In [move_model], we were always updating the `email.template` model,
even if the model is replaced by `mail.template` since OpenERP 9.0.
The problem is that it prevents users from creating a custom `email.template` model
even if it is not used in standard since version 8.0.
Related issue :
- [PR-specific](odoo/upgrade-specific#20818)
[move_model]: https://github.com/odoo/upgrade-util/blob/f97b7a28ef62fe4a7b0417854a904d132adc9882/src/util/modules.py#L12711 parent f97b7a2 commit fc5b908
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1268 | 1268 | | |
1269 | 1269 | | |
1270 | 1270 | | |
1271 | | - | |
1272 | | - | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
1273 | 1276 | | |
1274 | 1277 | | |
1275 | 1278 | | |
| |||
0 commit comments