Skip to content

Commit 966650f

Browse files
committed
[FIX] util._extract_data_as_attachment
Fix missin comma in the generated query. Oversight of 910d30c closes #261 Signed-off-by: Christophe Simonis (chs) <[email protected]>
1 parent b5787fa commit 966650f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ def _extract_data_as_attachment(cr, model, field, encoded=True, name_field=None,
918918
if not column_exists(cr, table, field):
919919
return
920920
name_query = cr.mogrify(
921-
format_query(cr, "COALESCE({}, CONCAT(%s, '(', id, ').', %s)", name_field if name_field else SQLStr("NULL")),
921+
format_query(cr, "COALESCE({}, CONCAT(%s, '(', id, ').', %s))", name_field if name_field else SQLStr("NULL")),
922922
[model.title().replace(".", ""), field],
923923
).decode()
924924

0 commit comments

Comments
 (0)