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

Refactored Contacts listing #1012

Merged
merged 1 commit into from
Aug 30, 2018
Merged

Refactored Contacts listing #1012

merged 1 commit into from
Aug 30, 2018

Conversation

xispa
Copy link
Member

@xispa xispa commented Aug 30, 2018

Description of the issue/feature this PR addresses

Use of OrderedDict for columns and folderitems cleanup

--
I confirm I have tested this PR thoroughly and coded it according to PEP8
and Plone's Python styleguide standards.

Use of OrderedDict for columns and folderitems cleanup
@xispa xispa added the Cleanup 🧹 Code cleanup and refactoring label Aug 30, 2018
Copy link
Contributor

@ramonski ramonski left a comment

Choose a reason for hiding this comment

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

Thanks!

@ramonski ramonski merged commit 6fb82a2 into master Aug 30, 2018
@ramonski ramonski deleted the refactor-contacts-list branch August 30, 2018 19:33
xispa added a commit to senaite/senaite.health that referenced this pull request Aug 30, 2018
xispa added a commit to senaite/senaite.health that referenced this pull request Aug 31, 2018
)

* Filter doctors by current's user client

If the current user is a Client contact, only the doctors assigned
to the same client and those that do not have any client assigned are
displayed. If user is from the lab, no filtering is applied.

If the current context of the listing is Client, only doctors assigned
to same client are displayed.

* Cleanup folderitems function from Doctors view

* Cleanup Doctors listing view

Dependencies: senaite/senaite.core#1012

* Hide doctors from other clients when logged as client

* Don't display doctors from other clients in AR Add

Dependencies: senaite/senaite.core#1014

In AR Add form, do not display doctors from other client than the
one selected, but include those that do not have any client assigned

* Don't display doctors from other clients in AR Add

Dependencies: senaite/senaite.core#1014

In AR Add form, do not display doctors from other client than the
one selected, but include those that do not have any client assigned

* Do not display doctors from other clients in Case Add view

* Add Primary Referrer column in Doctor listings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cleanup 🧹 Code cleanup and refactoring
Development

Successfully merging this pull request may close these issues.

2 participants