コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
11882 ビュー

Hello,

How i can exclude weekend from number of days in Leave Requests. ex: start day (from_dt) = 12/04/2013 end day (to_dt) = 15/04/2013 it should be display 2 days in Number of Days not 4 days

plz help

アバター
破棄
最善の回答

Try the this method of python,, Isoweekday() is a method of the DateTime class that tells the day of the given date. It returns an integer that corresponds to a particular day.

アバター
破棄
最善の回答

It seems like since 2013 and Odoo v6 -  this problems still wasn't fixed?

アバター
破棄
最善の回答

You need to modify this method '_get_number_of_days', defined in hr.holidays object by using some datetime attributes that will exclude weekend from number of days.

Thanks, Priyesh Solanki

アバター
破棄
関連投稿 返信 ビュー 活動
1
7月 17
4833
0
3月 15
3624
3
10月 22
5213
0
5月 18
4014
1
3月 15
4299