Skip to content

Fix Client restricted categories in the Sample add view form#2734

Draft
Bugerman58 wants to merge 27 commits into
senaite:2.xfrom
Bugerman58:fix-restricted-categories
Draft

Fix Client restricted categories in the Sample add view form#2734
Bugerman58 wants to merge 27 commits into
senaite:2.xfrom
Bugerman58:fix-restricted-categories

Conversation

@Bugerman58
Copy link
Copy Markdown
Contributor

@Bugerman58 Bugerman58 commented May 29, 2025

Description of the issue/feature this PR addresses

TODO comment from Client content type: Fix Client restricted categories are not considered in Add sample

Current behavior before PR

Does not impose a limitation on the choice of services when adding an Sample if the client has a limitation on categories

Desired behavior after PR is merged

Services cannot be selected if they are not contained in the Client categories

☝️Additional: For fasted getting Category title was be added column getCategoryTitle to metadata for Setup catalog

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

Comment thread src/bika/lims/browser/analysisrequest/add2.py Outdated
@Bugerman58
Copy link
Copy Markdown
Contributor Author

this PR is currently on pause because there was an upgrade earlier with the removal of the getCategoryTitle field from the metadata

I'm looking into it...

@ramonski
Copy link
Copy Markdown
Contributor

Hi Anton, is this still an issue or fixed already in recent versions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants