Skip to content
Snippets Groups Projects
Commit db53038e authored by nda-odoo's avatar nda-odoo
Browse files

[FIX] base: do not restrict xml_id length in IrTranslationImport


Those constraints are an incorrect leftover from 0a42a9de which removed the size constraints on a
number of core tables including 'name' and 'model' of ir_model_data.

Temporary table tmp_ir_translation_import limits columns size (imd_name and imd_model).
Those columns are only used to match columns 'model' and 'name' in ir_model_data.

But in ir_model_data, columns 'model' and 'name' are VARCHAR, no reasons to restrict the temporary table.

opw-2983422

closes odoo/odoo#101144

Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
parent 706db8a7
No related branches found
No related tags found
No related merge requests found
......@@ -44,8 +44,8 @@ class IrTranslationImport(object):
# Note that Postgres will NOT inherit the constraints or indexes
# of ir_translation, so this copy will be much faster.
query = """ CREATE TEMP TABLE %s (
imd_model VARCHAR(64),
imd_name VARCHAR(128),
imd_model VARCHAR,
imd_name VARCHAR,
noupdate BOOLEAN
) INHERITS (%s) """ % (self._table, self._model_table)
self._cr.execute(query)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment