senaite.core icon indicating copy to clipboard operation
senaite.core copied to clipboard

If no Lab Analyse selected when submitting a AR, the system reports Field Analysis is required

Open leizhu1998 opened this issue 7 years ago • 1 comments

When a user does not have any Lab Analyses selected when submitting a AR, the system reports "Field 'Analysis' is required".

First all, when a brand new system is built up, there is no Lab Analyses set up yet, thus the "Lab Analyses" section (in blue background, located above "Subtotal" field) is not visible in AR form at all. New users will have no idea about what the error means and how to fix it.

Second, maybe the error message can be changed to something like "A minimum of one Analysis is required. If you have not done so, please go to "Site Setup > Analysis Services" to create at one Analysis Service".

Thanks a lot for your hard and excellent work! image

leizhu1998 avatar Jun 28 '18 07:06 leizhu1998

Hi, I stumbled upon that error, but I have one Analysis Service created and the error persists.

What I also had to create was an analysis profile and add at least one service to it. After that I was able to create the sample.

leonardorame avatar Mar 17 '21 11:03 leonardorame

With https://github.com/senaite/senaite.core/pull/2162 it is possible to create empty samples w/o analyses

ramonski avatar May 11 '23 14:05 ramonski