Isn't that literally exactly what a strike is? No one crosses the picket line if a sufficient majority agreed to undertake the strike?
However, they can have volunteers fill the position: https://www.editions-tissot.fr/droit-travail/jurisprudence-s...