[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) <vlst@odoo.com>
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user