[FIX] account: Fix cancelling a payment
[FIX] account: Fix cancelling a payment

This commit fixes a wrong condition since the new "cancel" state has been introduced in
journal entries.

issue: https://github.com/odoo/odoo/issues/35362#issuecomment-520641052

closes odoo/odoo#35911

Signed-off-by: Quentin De Paoli (qdp) <e3f4db239cf86136ad4659223e6cc0134ae205fb@openerp.com>
ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo