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 56ec36f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/helper/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ sed -i 's/redis_socketio:/# redis_socketio:/g' Procfile

bench get-app payments --branch ${BRANCH_TO_CLONE%"-hotfix"}
bench get-app https://github.com/frappe/erpnext --branch "$BRANCH_TO_CLONE" --resolve-deps
bench get-app https://github.com/frappe/webshop --branch "$BRANCH_TO_CLONE" --resolve-deps
bench setup requirements --dev

bench start &> bench_run_logs.txt &
CI=Yes bench build --app frappe &
bench --site test_site reinstall --yes

bench get-app webshop "${GITHUB_WORKSPACE}"
bench --site test_site install-app webshop
bench --site test_site set-config allow_tests true
bench setup requirements --dev
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 56ec36f

Please sign in to comment.