Thursday, October 22, 2020¶
The getlino test suite now also tries to install a voga application. And this
prep on the newly created site said:
lino_xl.lib.ledger.models.DoesNotExist: Problem installing fixture '/usr/local/lino/lino_local/voga1/env/lib/python3.7/site-packages/lino_xl/lib/finan/fixtures/payments.py': Journal matching query does not exist.
I reproduced this problem in the book by adding a new demo project
certain journals (SLC, PRC, PMO, …) only when
lino_xl.lib.vat.Plugin.declaration_plugin was set. And there is no
default value for this setting.
declaration_plugin is used e.g. in
lino_book.projects.pierre, which is an example of a freelancer who uses
Lino to just write invoices and has accounting done by an external expert.
Should getlino ask (or provide a default value) for it? No. The solution is much easier:
Fixing this revealed a secondary bug: the
lino_voga.lib.voga.settings.Sitewas yielding the
lino_xl.lib.bevatsplugin, this is done automatically when