Some leftovers of https://github.com/odoo/odoo/commit/beaa30a3d1843de43a45f419bfbc1bfa7613a920. Fields have been renamed according to the following mapping: residual_signed -> amount_residual_signed reference -> ref State 'open' does not exist anymore, use 'posted' and combine it with 'invoice_payment_state' instead.