From fa2e5d5ab7f3b9ec79d8ca22640f685391a628a4 Mon Sep 17 00:00:00 2001 From: avc <94137451+git-avc@users.noreply.github.com> Date: Sat, 26 Aug 2023 14:57:42 +0200 Subject: [PATCH] fix: create portal user for customer from shopping cart (#36745) fix: create portal user for customer from shopping cart --- erpnext/e_commerce/shopping_cart/cart.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/e_commerce/shopping_cart/cart.py b/erpnext/e_commerce/shopping_cart/cart.py index 4c82393684..85d9a6585c 100644 --- a/erpnext/e_commerce/shopping_cart/cart.py +++ b/erpnext/e_commerce/shopping_cart/cart.py @@ -517,6 +517,8 @@ def get_party(user=None): } ) + customer.append("portal_users", {"user": user}) + if debtors_account: customer.update({"accounts": [{"company": cart_settings.company, "account": debtors_account}]})