跳至內容
選單
此問題已被標幟

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 

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
12月 23
45566
1
2月 24
5141
3
11月 21
25989
1
3月 17
28791
2
3月 16
3757