Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add customer detail modal to admin order creator (SHUUP-2725) #559

Merged
merged 1 commit into from
Jun 27, 2016

Conversation

gurch101
Copy link
Contributor

Add new modal for admin order creation that shows detailed customer info,
order summary, and recent orders.

Refs SHUUP-2725

@anders-jenkins
Copy link

Refer to this link for build results (access rights to CI server needed):
http://spartacus.aintra:8080//job/shoop-ng-pull-requests/2052/
Test PASSed.

@anders-jenkins
Copy link

Refer to this link for build results (access rights to CI server needed):
http://spartacus.aintra:8080//job/shoop-ng-pull-requests/2055/
Test PASSed.

@anders-jenkins
Copy link

Refer to this link for build results (access rights to CI server needed):
http://spartacus.aintra:8080//job/shoop-ng-pull-requests/2058/
Test PASSed.

@@ -281,6 +293,12 @@ def is_all_seeing(self):
if self.user_id:
return getattr(self.user, 'is_superuser', False)

def get_orders(self):
order_q = Q(orderer=self) | Q(customer=self)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure you want to mix these together. IMO you don't need this get_orders. You can already get already get the orders for contact throug related manager. And you should probably always use customer orders, orderer_orders and orders_created separately.

Add new modal for admin order creation that shows detailed customer info,
order summary, and recent orders.

Refs SHUUP-2725
@tulimaki tulimaki merged commit d4d7edd into shuup:master Jun 27, 2016
@gurch101 gurch101 deleted the add-customer-detail-modal branch July 1, 2016 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants