Issue - Create SO - Send quote to customer - Customer pays via CC (payment should be in "done" stage and SO is confirmed) - Add shipping to the SO - Create invoice and send invoice via email Customer does not see a pay button in the preview, instead they see "pending". Cause Does not check if still residual amount in the invoice. Solution If still residual amount, show 'Pay button' and allow to pay. opw-2392401 closes odoo/odoo#63054 X-original-commit: 7fbea075e5803360a798455dee16a9cdaf0bf271 Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com> Signed-off-by: bon-odoo <nboulif@users.noreply.github.com>