This question has been flagged
1 Reply
3488 Views

Are there any modules facilitating printing out a weekly report from the 'Tasks' section under 'Projects'? Or any other apps providing additional functionality?

I can create a custom report and link it to the project.task object. This way I have a print button on the FormView of my tasks. Alternatively I can also select certain tasks under TreeView and print out multiple reports at once.

Now I'm lookin in to possible solutions to create a weekly schedule.

  • Use the "current week" filter, then selecting the checbox for 'all' under the TreeView and printing out all the reports in one report. This would rely on some code present in the action, or in .rml file, that specifies all selected objects must be printed within the same report. Rather than all of them being on separate pages.

  • Create a button that will automatically look at 'current_week' and print a report that includes all the tasks from 'current_week'. Add this button under CalendarView by adding it to the header section in FormView.

I found a filter for current_date, but haven't yet found a way to filter on current week. I also don't know how to use a function that will make a selection based on certain criteria (current week) and print said objects.

If anyone is aware of any similar functions, or has some feedback on this matter. I'd greatly appreciate your insight.

Thanks for taking the time to read this.

Avatar
Discard
Author Best Answer

Solution for filter:

[('date_start','>=', ((context_today()).strftime('%Y-%m-%d'))), ('date_start','<=', ((context_today()+datetime.timedelta(days=7)).strftime('%Y-%m-%d')))]
Avatar
Discard