In SENAITE 2.6 I found that the report signature gets stuck on the very first Lab Manager user account created.
When the original Lab Manager is deactivated and a new user is assigned the Lab Manager role, the PDF report still shows the old user in the signature section. The system does not update the signature to reflect the active Lab Manager.
The only way to change the name in the report was to edit the old user account and replace that user’s personal data (name, email, etc.) with the information of the new person. After doing this, the new name appeared in the PDF signature.
This behavior makes it look like the first Lab Manager account becomes permanently linked as the “laboratory responsible” for reports, and each time the person in charge changes, you must overwrite that account instead of simply disabling the old user and assigning the role to a new one.
Steps to Reproduce
-
Create a user with the role Lab Manager (e.g. User A).
-
Generate a PDF report → User A appears in the signature.
-
Deactivate User A.
-
Create another user and assign the Lab Manager role (User B).
-
Generate a PDF report again.
Expected Behavior
- The signature should show User B as the Lab Manager, because User A is deactivated.
Actual Behavior
-
The signature still shows User A (deactivated), and User B does not appear.
-
Only by editing User A’s account and replacing the personal data with User B’s data does the signature change.
Environment
-
SENAITE version: 2.6
-
Add-on: senaite.impress (default templates,
signatures.pt)