| Conditions | 1 |
| Total Lines | 12 |
| Code Lines | 2 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | # -*- coding: utf-8 -*- |
||
| 11 | def after_submit(obj): |
||
| 12 | """ |
||
| 13 | Method triggered after a 'submit' transition for the Worksheet passed in is |
||
| 14 | performed. |
||
| 15 | This function is called automatically by |
||
| 16 | bika.lims.workfow.AfterTransitionEventHandler |
||
| 17 | """ |
||
| 18 | # Submitting a Worksheet must never transition the analyses. |
||
| 19 | # In fact, a worksheet can only be transitioned to "to_be_verified" if |
||
| 20 | # all the analyses that contain have been submitted manually after |
||
| 21 | # the results input |
||
| 22 | wf.doActionFor(obj, 'attach') |
||
| 23 | |||
| 30 |