Skip to content

Commit

Permalink
fix: create portal user for customer from shopping cart
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure committed Jan 16, 2024
1 parent fa960d8 commit 124672d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion webshop/setup/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def run_patches():

try:
for patch in patches:
frappe.get_attr(f"webshop.patches.after_install.{patch}.execute")()
frappe.get_attr(f"webshop.patches.{patch}.execute")()

finally:
frappe.flags.in_patch = False
Expand Down
2 changes: 2 additions & 0 deletions webshop/webshop/shopping_cart/cart.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,8 @@ def get_party(user=None):
}
)

customer.append("portal_users", {"user": user})

if debtors_account:
customer.update(
{
Expand Down

0 comments on commit 124672d

Please sign in to comment.