It’s generally not best practice to do open_form
inside of an init method. Because the main form hasn’t loaded yet before you open a new one.
I would move this logic to a startup module which decides whether to open the ViewItem form based on the QR code, or open the main Supplier form.
Otherwise this is exactly what I’d do.
An example of a startup module
2 Likes