File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,9 @@ def translation2jsonb_all_missing(cr):
157
157
"""
158
158
if not version_gte ("16.0" ):
159
159
raise UpgradeError ("JSONB translations are only available from Odoo 16" )
160
+ if not table_exists (cr , "_ir_translation" ):
161
+ _logger .getChild ("translation2jsonb_all_missing" ).info ("Missing `_ir_translation` table; skip." )
162
+ return
160
163
_env = env (cr )
161
164
fields = []
162
165
cr .execute (
@@ -207,8 +210,8 @@ def translation2jsonb(cr, *fields):
207
210
if not version_gte ("16.0" ):
208
211
raise UpgradeError ("JSONB translations are only available from Odoo 16" )
209
212
all_cleanup_queries = []
213
+ _logger .info ("Migrating translations for fields % r , fields )
210
214
for field in fields :
211
- _logger .info ("Migrating translations for field %s in model %s" , field .name , field .model_name )
212
215
(
213
216
migrate_queries ,
214
217
cleanup_queries ,
You can’t perform that action at this time.
0 commit comments