You don't say what avast version you have installed they don't all have the avast firewall) ?
If your paid version of avast has the firewall, you probably need to allow file and printer sharing to be able to share the printer across the network.
I use avast free without the avast firewall so I can't be helpful other than this has been seen in other forum topics.