A vehicle comprising a powertrain, the powertrain comprising: at least one propulsion unit (4, 14, 16); a gearbox; and a control device, the gearbox comprising: a first main shaft; a second main shaft; an output shaft of the gearbox connected to drive wheels of the vehicle; a lay shaft connected to the first main shaft, the second main shaft and the output shaft of the gearbox; a first gear pair connected to the first main shaft and the lay shaft; a second gear pair connected to the second main shaft and the lay shaft; and at least one power consumer (PC1, PC2) connected to the powertrain, wherein the at least one propulsion unit comprises a first electrical machine and a second electrical machine, wherein the first electrical machine is connected to the first main shaft and the second electrical machine is connected to the second main shaft; wherein a connection shaft is connected to the first electrical machine; wherein the at least one power consumer (PC1, PC2) comprises a first power consumer connected to the first main shaft and/or a second power consumer connected to the connection shaft; characterized in that the gearbox further comprises a first planetary gear connected to the first main shaft; a second planetary gear connected to the first plane-tary gear and the second main shaft, wherein the first electrical machine is connected to the first main shaft via the first planetary gear, and the second electrical machine is connected to the second main shaft via the second planetary gear, and wherein the control device is configured to control the powertrain to provide uninterrupted propelling torque on the first main shaft and/or on the connection shaft during a stand still condition of the output shaft of the gearbox and/or during a transition from a stand still condition to a rotational condition of the output shaft of the gearbox, and/or during gear shifting from one gear to another gear in the gearbox. at least one propulsion unit (4, 14, 16); a gearbox; and a control device, a first main shaft; a second main shaft; an output shaft of the gearbox connected to drive wheels of the vehicle; a lay shaft connected to the first main shaft, the second main shaft and the output shaft of the gearbox; a first gear pair connected to the first main shaft and the lay shaft; a second gear pair connected to the second main shaft and the lay shaft; and at least one power consumer (PC1, PC2) connected to the powertrain, wherein the at least one propulsion unit comprises a first electrical machine and a second electrical machine, wherein the first electrical machine is connected to the first main shaft and the second electrical machine is connected to the second main shaft; wherein a connection shaft is connected to the first electrical machine; wherein the at least one power consumer (PC1, PC2) comprises a first power consumer connected to the first main shaft and/or a second power consumer connected to the connection shaft; characterized in that the gearbox further comprises a first planetary gear connected to the first main shaft; a second planetary gear connected to the first plane-tary gear and the second main shaft, wherein the first electrical machine is connected to the first main shaft via the first planetary gear, and the second electrical machine is connected to the second main shaft via the second planetary gear, and wherein the control device is configured to control the powertrain to provide uninterrupted propelling torque on the first main shaft and/or on the connection shaft during a stand still condition of the output shaft of the gearbox and/or during a transition from a stand still condition to a rotational condition of the output shaft of the gearbox, and/or during gear shifting from one gear to another gear in the gearbox.