-
-
Notifications
You must be signed in to change notification settings - Fork 192
Allow manual selection of units on results entry #2201
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
5857368
Unit selection
RML-IAEA ecb0d4a
Copy of line error _on_method_change
RML-IAEA f16bb68
Update view.py (default listed first, text-nowrap unit)
RML-IAEA ac745f9
Implemented Corrections
RML-IAEA d9685c9
Merge branch '2.x' of github.com:senaite/senaite.core into unitSelection
xispa 9fc5b0c
Flake8
xispa ccac700
Flake8
xispa 48b8e28
Undo not related changes
xispa d930749
Adhere to new rule for i18n message declarations
xispa 3e7c2d8
Cleanup
xispa 9c5dbe2
Implemented xispa requested changes on Jan 19
RML-IAEA 1107ebf
Merge branch 'senaite:2.x' into unitSelection
NiallMurphy-IAEA d9f7033
Typo
xispa 8496b45
Remove whitespace line
xispa 8754300
Do not translate whitespace
xispa 004dc3a
Metadata column getUnitChoices in analysis catalog is not needed
xispa e449f17
Move changelog entry to top
xispa 1fffb6a
Better description
xispa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1507,3 +1507,4 @@ def validate_record(self, record): | |
|
|
||
|
|
||
| validation.register(ServiceConditionsValidator()) | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need this if you do it differently. Hint: You don't need a "UnitChoices" column, but a "Unit" column that becomes editable (with a choices list) when the analysis have multiple units set. Otherwise, the column "Unit" is not rendered.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed UnitChoice column. Unit it column is only rendered when needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can remove this function
_on_unit_choice_change, causeon_unit_changeis used insteadThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, removed.