PR https://github.com/odoo/odoo/pull/49964 fixed manual payment flow but broke automatic payment flow. This commit should allow both by raising the exception only for manual flow, giving only an error for automatic flows. FW-PORT of https://github.com/odoo/odoo/pull/50908/commits/46e977a21743644a2e98344e3491f0dd6fcbe892 closes odoo/odoo#52151 X-original-commit: a40089d67b66b593a09b0fa4c4cd24f6ce5fcc71 Signed-off-by: Toufik Benjaa (tbe) <tbe@odoo.com>