exeption AttributeError: 'NoneType' object has no attribute 'cotisation_sociale'
himport -v -y 2023
Connect to the database...
dolibarr on host 127.0.0.1:13306 with the user dolibarr_ro ...
Found Dolibarr Version 19.0.0.
Retrieve the bank journal...
2144 entries found.
Retrieve the sell journal...
1725 entries found.
Retrieve the supplier journal...
799 entries found.
Retrieve the social journal...
28 entries found.
Check if missing account...
No missing account.
Write the ledger files...
Traceback (most recent call last):
File "/home/whilelm/gitoyen_doc/wiki/fonctionnement/financier/compta/./himport/venv/bin/himport", line 33, in <module>
sys.exit(load_entry_point('himport', 'console_scripts', 'himport')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/whilelm/himport/himport/cli.py", line 144, in main
do_sqlalchemy(options)
File "/home/whilelm/himport/himport/cli.py", line 128, in do_sqlalchemy
Writer.write("bank", bank_journal, options["years"])
File "/home/whilelm/himport/himport/dolibarrWriter.py", line 29, in write
f.write(entry.get_ledger())
^^^^^^^^^^^^^^^^^^
File "/home/whilelm/himport/himport/dolibarrAlchemyHledger.py", line 227, in get_ledger
thirdparty_code = self.get_thirdparty_code(self.e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/whilelm/himport/himport/dolibarrAlchemyHledger.py", line 151, in get_thirdparty_code
code = e.url_payment_sc.payment_sc.cotisation_sociale.type.code
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'cotisation_sociale'
J'ai cherché un peu si je trouvais de donnés invalides Dolibarr qui pourraient être à l'origine de ce problème, en vain.
J'ai comparé les cotisations sociales et leurs réglements, enregistré·es en 2023 avec celles de 2022 mais tout semble identique vu de Dolibarr.
Edited by whilelm