If a payment request is made from a cron (e.g., Subscriptions' cron for recurring payments), the worker is not bound to an HTTP request and therefore the value of `request.httprequest.remote_addr` is an instance of the 'LocalProxy' object, which is not serializable. If we're in this scenario, don't send the customer IP address. task-2494916 closes odoo/odoo#71717 X-original-commit: e85464ad2281f25cbaf7ded0c1e5d7659a322696 Signed-off-by: Antoine Vandevenne (anv) <AntoineVDV@users.noreply.github.com> Co-authored-by: Toufik Ben Jaa <tbe@odoo.com>