From de020a5ae8327dfe8a24e2dcdc2d0d3df031e416 Mon Sep 17 00:00:00 2001 From: roen-odoo Date: Wed, 31 Jan 2024 13:45:28 +0100 Subject: [PATCH] [FIX] pos_online_payment: Add missing phone number to kwargs Current behavior: When you try to pay with razorpay, you got an error saying the phone number was missing. Steps to reproduce: - Setup RazorPay - Set a phone number on admin - Go to the POS - Add a product to the cart - Click on the payment button - Select razorpay - Scan the QRCode with your phone (make sure you'r connected on the admin account) - Try to finalize the payment opw-3669600 closes odoo/odoo#152040 Signed-off-by: Vlad Stroia (vlst) --- addons/pos_online_payment/controllers/payment_portal.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/pos_online_payment/controllers/payment_portal.py b/addons/pos_online_payment/controllers/payment_portal.py index d77b561954c..1c9cf5ae116 100644 --- a/addons/pos_online_payment/controllers/payment_portal.py +++ b/addons/pos_online_payment/controllers/payment_portal.py @@ -194,6 +194,7 @@ class PaymentPortal(payment_portal.PaymentPortal): # Avoid tokenization for the public user. kwargs.update({ 'partner_id': partner_sudo.id, + 'partner_phone': partner_sudo.phone, 'custom_create_values': { 'pos_order_id': pos_order_sudo.id, },