Comment 5 for bug 707314

Revision history for this message
Nicolas Bessi - Camptocamp (nbessi-c2c-deactivatedaccount) wrote :

Hello,

I have found the source of the bug, the bug does not come from l10n_ch but for the reports. The reports have harcoded type but does not uses internal types but user_type of the account that can be manually overridden.

 types = [
            'expense',
            'income'
                ]

for typ in types:
            accounts_temp = []
            for account in accounts:
                if (account.user_type.report_type) and (account.user_type.report_type == typ):

The report should use internal types and not user type. This is clear we have defined and attributed account to swiss account user type.

xrg and qdp should review this bug.

Regards

Nicolas