A domain validation error is raised if a statement rule matches a cancelled invoices
The statement module adds a domain to invoices which allows only to select posted and paid invoices.
The statement rule searches invoices only using the invoice rec_name without taking in account the invoice state.
This search finds also invoices in cancelled state which causes a domain validation error when applying the rules on the statement.