Robert Lewandowski will have groin surgery straight after Bayern Munich face Wolfsburg in the Bundesliga on Saturday.
The striker will be available to play at the Allianz Arena in the champions' final match of the first half of the league season.
Interim head coach Hansi Flick says Lewandowski will then have an operation with a view to being fully recovered when they play Hertha Berlin on January 19.
"Robert will undergo groin surgery straight after Saturday's game," Flick told reporters on Friday. "We don't want to waste any time. We'll have to see how the recovery process goes.
"In the situation we're in, we're glad to have him available. The downtime should be 10 to 14 days."
Lewandowski has already scored 30 goals in a remarkable first half of the season, with 19 of those coming in the opening 16 matches of the Bundesliga.
Flick is relieved to have the Poland international to call on given Bayern are likely only to have 11 senior players fit for Wolfsburg's visit.
With long-term absentee Nikas Sule not likely to return until April and both Lucas Hernandez and Kingsley Coman sidelined, the loss of Thiago Alcantara to suspension for this weekend is a blow to Bayern's thin squad.
Flick does at least hope to have David Alaba available, despite the defender having been hurt in the win at Freiburg.
"We have 11 healthy first-team players, plus five youngsters," he said.
"David got a knock on the ankle in Freiburg. He was training individually today [Friday], but he should be on board for tomorrow."
Bayern go into the Wolfsburg game in third place in the table, four points behind the top two of RB Leipzig and Borussia Monchengladbach.