Skip to content
Snippets Groups Projects
Commit 01eb02c8 authored by Rémi - Le Filament's avatar Rémi - Le Filament
Browse files

[FIX] pre-commit quoting

parent 0a142c9d
Branches
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ class JournalDatasExport(http.Controller):
("date", "<=", date_end),
("journal_id", "in", export_id.journal_ids.ids),
("company_id", "=", export_id.company_id.id),
('move_id.state', '=', 'posted')
("move_id.state", "=", "posted"),
]
if export_type == "empty":
domain += [("date_export", "=", False)]
......@@ -48,8 +48,8 @@ class JournalDatasExport(http.Controller):
for line in export_line_ids:
row = []
for field in export_id.fields_ids:
if field["field_name"].startswith('line.'):
value = safe_eval(field["field_name"], {'line': line}, mode="eval")
if field["field_name"].startswith("line."):
value = safe_eval(field["field_name"], {"line": line}, mode="eval")
else:
value = safe_eval(field["field_name"])
row.append(value)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment