sudo usermod -a -G dialout only works if you have a dialout group anyway. I had the same issue; The group did not exist and in that case adding a user to a non-existing group doesn't do anything
If the group dialout doesn't exist, do with the uucp group.
Moreover, create a /etc/udev/rules.d/50-myusb.rules or, if a 50-* file exists edit it and write at the end of:
BorjaLive: The issue with the permissions for /dev/ttyACM0 can be permanantly solved by adding yourself to the dialout group. You will have to logout and then log back in before the group change is recognized. You can do this with sudo usermod -a -G dialout $USER