Skip to content

Commit 445e67a

Browse files
committed
[FIX] payment_xendit: public user email
When there's a payment that involves public user, an error will occur when they've input the email 3789416 closes odoo#157261 X-original-commit: 0db66b3 Signed-off-by: Antoine Vandevenne (anv) <[email protected]>
1 parent 6f2be3e commit 445e67a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/payment_xendit/models/payment_transaction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def _xendit_prepare_invoice_request_payload(self):
6666
}
6767
# Extra payload values that must not be included if empty.
6868
if self.partner_email:
69-
payload['customer']['email'] = self.partner_id.email
69+
payload['customer']['email'] = self.partner_email
7070
if phone := self.partner_id.mobile or self.partner_id.phone:
7171
payload['customer']['mobile_number'] = phone
7272
address_details = {}

0 commit comments

Comments
 (0)