@ced, I do not have a setup where two taxes are used for a line, I use the mds-trytond-account-de-skr04 package. I checked the constraint on the database with
SELECT *
FROM account_tax_line
WHERE on_cash_basis IS TRUE
AND period IS NULL;
I fixed two lines in the frontend, where I messed up the period, probably because of my other issue with the reporting with the tax_cash module. Bug in account_tax_cash - #7 by Gruenfischer Now I have ZERO lines where the exclude can hit, but still get the error. From my understanding the constraint might only be met inside the transaction where the change is applied.
Maybe I have a general misunderstanding, I am not that good at special database stuff.
My next guess is debugging with the logs, to see where the transactions is rolled back.
Regards Jakob