Trial balance - wrong account sort
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Camptocamp Financial Addons |
New
|
Undecided
|
Unassigned |
Bug Description
Hello,
I had bad sorted accounts on the trial balance.
The problem is the use of python method used to remove doubles : list(set(accounts))
This doest not preserve the order of the list
I just corrected it like this for now and it works fine (but no more doubles removing I guess) :
=== modified file 'addons/
--- addons/
+++ addons/
@@ -176,7 +176,8 @@
for account_id in account_ids:
- res_ids = list(set(accounts))
+ #res_ids = list(set(accounts))
+ res_ids = accounts
res_ids = self.sort_
if exclude_type or only_type or filter_report_type: