1. Createa a supplier invoice and post it
2. Create an statement with a line to pay the supplier invoice
3. Cancel the invoice
4. Try to post the statement
A domain validation error is raised because the invoice is cancelled before posting.
I think the invoice should be cleared from statement line when cancelling.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
On 2020-10-16 17:28, Sergi Almacellas Abellana wrote:
> I proposed to clear the invoice because we already clear posted invoices:
>
> https://hg.tryton.org/modules/account_statement/file/1021ec9c9953/statement.py#l521
>
> So I'm wondering if we should also warn the user when cancelling a posted invoice that is contained in a draft statement.
>
> What do you think?
Indeed having the same behavior as for paid invoice will be good as it
warns the user and he will decide.