Skip to content

Commit 8523af6

Browse files
Merge pull request #73 from hbrunn/14.0-630-restrict-activity-report-hours
[14.0][FIX] #630 restrict selection of actual day to uom hours
2 parents ae7548b + cb2a5ac commit 8523af6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ps_planning/models/ps_time_line_planning_report.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ def init(self):
3737
0 as days_contracted,
3838
0 as rate
3939
FROM ps_time_line
40+
WHERE
41+
product_uom_id=(
42+
SELECT res_id FROM ir_model_data WHERE
43+
model='uom' AND name='product_uom_hour'
44+
)
4045
UNION (
4146
WITH
4247
xmlid_month_range AS (

0 commit comments

Comments
 (0)