Skip to content
Snippets Groups Projects
Commit 496a28a7 authored by Thibaud - Le Filament's avatar Thibaud - Le Filament
Browse files

[IMP] Removed useless comments

parent fd2cfa6e
Branches 15.0
No related tags found
No related merge requests found
......@@ -45,13 +45,11 @@ class JournalDatasExport(JournalDatasExport):
if export_id.export_domain:
domain += safe_eval(export_id.export_domain)
export_line_ids = request.env["account.move.line"].search(domain)
# FIXME: Crappy could refactor to [[]] or {} to group by invoice name as key
export_line_grouped_by_invoice = {}
for el in export_line_ids:
if not export_line_grouped_by_invoice.get(el.move_id.name):
export_line_grouped_by_invoice[el.move_id.name] = []
export_line_grouped_by_invoice[el.move_id.name].append(el)
# export_line_grouped_by_invoice = export_line_ids.sorted(lambda l: l.move_id.name)
lines_to_export = []
initial_sum_line = ['' for _ in range(len(export_id.fields_ids))]
sum_line = initial_sum_line[:]
......@@ -82,7 +80,6 @@ class JournalDatasExport(JournalDatasExport):
enumerate(big_sum_line)]
sum_line = initial_sum_line[:]
else:
# lines_to_export.append(sum_line)
lines_to_export.append(big_sum_line)
filename_ = (
......
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