Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

Bonjour,

j'ai codé ça : 


for record in self:

    x_studio_dlai = (record.x_studio_fin - record.x_studio_dbut).total_seconds() /86400  if record.x_studio_dbut and record.x_studio_fin else 0

    record['x_studio_dlai'] = x_studio_dlai


cela me permet d'avoir le nombre de jour entre les deux dates définies.

cependant j'aimerai avoir seulement les jours ouvrés.

pouvez vous m'aidez ?

merci par avance 

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
gru 23
45472
1
lut 24
5035
3
lis 21
25904
1
mar 17
28680
2
mar 16
3683