If you have selected that your product master should have product groupings and they do not display when you generate the invoice.
Try checking if you have the correct Invoice template selected.
Under Invoice template choose Portrait with product groupings.