Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0] datev_import_csv_dtvf semicolon as separator issue #132

Open
tv-openbig opened this issue Sep 7, 2023 · 1 comment
Open

[16.0] datev_import_csv_dtvf semicolon as separator issue #132

tv-openbig opened this issue Sep 7, 2023 · 1 comment
Labels
bug no stale Use this label to prevent the automated stale action from closing this PR/Issue.

Comments

@tv-openbig
Copy link
Contributor

File import with semicolon as field seperator leads to an error message

Module

datev_import_csv_dtvf

Describe the bug

Import of a file with filed separator "," works.
With separator ";" i get an error.

To Reproduce

Take the example file "datev_export.csv" and download it.
Install a german localisation with l10n_de_skr03 module installed.
Put the value "248675,12" in the line 93 of the example file included in the module.
define at least one analytic account with areference "4811".
Save it with field separator ";"
Go to Accounting > Imort DATEV Format .csv
Upload the file
Select the journal Miscelleanous
Force the date: 31.12.2022
Put a reference "test"
Click on "Run import"

Expected behavior
Import should finish and open the account move
The error message is:

File "/opt/odoo/build/odoo/odoo/api.py", line 448, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/opt/odoo/build/addons/datev_import_csv_dtvf/wizard/import_move.py", line 55, in run_import
pivot = self.genericcsv2pivot(fileobj)
File "/opt/odoo/build/addons/datev_import_csv_dtvf/wizard/import_move.py", line 176, in genericcsv2pivot
date_str = l["date"][0:2] + "/" + l["date"][-2:] + "/" + year_str
TypeError: 'NoneType' object is not subscriptable

@tv-openbig tv-openbig added the bug label Sep 7, 2023
Copy link

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Mar 10, 2024
@tv-openbig tv-openbig added the no stale Use this label to prevent the automated stale action from closing this PR/Issue. label Mar 11, 2024
@github-actions github-actions bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug no stale Use this label to prevent the automated stale action from closing this PR/Issue.
Projects
None yet
Development

No branches or pull requests

1 participant